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,"a",""))Computed by a real spreadsheet engine on the sample data below.
| Sentence |
| banana split |
| abracadabra |
| hello world |
| aardvark |
| spreadsheet |
=LEN(A2)-LEN(SUBSTITUTE(A2,"a",""))→3
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.
Each removal of a two-character substring 'ab' shrinks the string by 2, not 1. Dividing by LEN("ab") corrects for this.
Yes. =LEN(TRIM(A2))-LEN(SUBSTITUTE(TRIM(A2)," ",""))+1 gives an approximate word count.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: