Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=LEN(A2)-LEN(SUBSTITUTE(A2,"x",""))Computed by a real spreadsheet engine on the sample data below.
| header | header |
| example text | another example |
| xxx | xx |
| test | testing |
=LEN(A2)-LEN(SUBSTITUTE(A2,"x",""))→2
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
Yes, replace 'x' in the formula with a space (' ').
The formula counts each occurrence, including consecutive ones.
Yes, any character can be counted, including special characters like '@', '#', etc.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: