=len(单元格A)-len(substitute(单元格A,某字符串,))
原理:将某字符串替换成空,前后字符串长即为减去的这个字符串长度,这个字符串出现个数=前后字符串长度之差/这个字符串长度
=substitute(substitute(单元格A,旧字符串1,新字符串a),旧字符串2,新字符串b)
原理:嵌套替换
Without summary,you can't master it.
=len(单元格A)-len(substitute(单元格A,某字符串,)) =substitute(substitute(单元格A,旧字符串1,新字符串a),旧字符串2,新字符串b)
Without summary,you can't master it.
|