=Len(A1)-Len(Substitute(A1,"B",""))
用Substitute函数删除原字符中的所有B,然后相减。
=Len(A1)-Len(Substitute(Upper(A1),"B",""))
用Substitute函数删除原字符中的所有B,然后相减。
=Len(A1)-Len(Substitute(Upper(A1),"B",""))
=(LEN(A1)-LEN(SUBSTITUTE(A1,B1,"")))/LEN(B1)
转载于:https://blog.51cto.com/mlibra/215398