S
samcannet1
Is there a way to count the number of words in just a cell? If so,
how?
Thanks
Samantha
how?
Thanks
Samantha
Pete_UK said:Paul,
use TRIM to try to enforce your assumptions.
Pete
If the words are separated by a single space then you can compare the
length of the cell with the length of the cell after spaces have been
removed and add one. Like this:
=LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1)," ",""))+1
If you had "Mary had a lamb" in A1, then this formula will return 4.
Hope this helps.
Pete