EXCEL Find the number of special symbols appear in cell

 

Find the number of special symbols appear in cell

Formula written LEN (A2) -LEN (SUBSTITUTE (A2, ",", ""))

Using the principle subtitute () function to replace the specified symbol is empty, then compared with the old and new string length, the number of special symbols obtained.

 

    only (A1) LEN(A1)-LEN(SUBSTITUTE(A1,",",""))  
1,2,3,4,5   9 4  
1,3,5   5 2  
         
         
Published 383 original articles · won praise 45 · Views 100,000 +

Guess you like

Origin blog.csdn.net/xuemanqianshan/article/details/104037348