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," ",""))+1Computed by a real spreadsheet engine on the sample data below.
| Text |
| Hello world |
| This is a test. |
| Multiple spaces here |
| Line break |
=LEN(A2)-LEN(SUBSTITUTE(A2," ",""))+1→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.
Adjust the formula to account for multiple spaces by using TRIM and SUBSTITUTE functions to normalize spacing.
The formula counts punctuation as part of the word. To exclude punctuation, additional string manipulation functions would be needed.
No, line breaks are not considered as word separators in this formula. You may need to modify the formula to include CHAR(10) for line breaks.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: