Count the words in a cell

Premium

In B2, count the words in A2. There is one more word than there are spaces, and LEN(A2) minus the length without spaces, LEN(SUBSTITUTE(A2," ","")), is the number of spaces.

B2
ABCDEF
1Headline Words
2Fast free shipping on every order
3
4
5
6
7
8

Premium lesson

Unlock FIND and SEARCH and every other lesson

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:Joining text with & and TEXTJOINSUBSTITUTE, TEXTBEFORE and TEXTAFTER
Need help?