Counting words in cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way of counting the number of words in a cell, basically an Excel version of the NUMWORD field in Word
If not, if there a clever trick I can use to end up with the same result?
 
Hi
try the following to count word
=LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1
 
Try the following formula:

=IF(TRIM(A1)="",0,LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1)," ",""))+1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


BeechBoy said:
Is there a way of counting the number of words in a cell, basically an
Excel version of the NUMWORD field in Word?
 
Brilliant! Both work equally well (although Frank's returns 1 for empty cells - not a problem for me though)
Thanks very much for your quick replies
Cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top