Clean up text

Count the words in a cell

=LEN(TRIM(A2))-LEN(SUBSTITUTE(TRIM(A2)," ",""))+1

How it works in Excel

The idea in general

Words have gaps between them, so you count the gaps.

What I assumed

Check the result on your own data before relying on it.

Related

Ask another question