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 | ||