Site icon ExcelNotes

How to Count Number of Spaces in a Cell

Spaces are important to separate words in a sentence making it easier to read. If you need to figure out the cells that are spaces, please check here. The following formula is to figure out how many spaces are in a particular cell.

Example: The text "Count the number of spaces in a cell" is in cell A1, and you need to figure out how many spaces in the sentence.

Formula: To count how many spaces in cell A1

= LEN(A1)-LEN(SUBSTITUTE(A1," ",""))

Exit mobile version