Site icon ExcelNotes

How to Count the Number of Extra Spaces

Spaces are important to separate words in a sentence making it easier to read. However, one space between two words will be enough and all other spaces will be extra spaces. The following formula is to figure out how many extra spaces are in a particular cell.

Example: The column A contains a list of sentences, and each includes a number of spaces. You are asked to count the number of extra spaces in each cell.

Formula: How many extra spaces are in cell A3?

= LEN(A3)-LEN(TRIM(A3))

Explanation: 

Exit mobile version