count terms in a cell

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi Zvika_1:

Do you mean how many items are in a range of cells? If you do mean within a cell, then do you mean how many characters are within a particular cell?

Please clarify.

Regards!

Yogi
 
Upvote 0
Thanks Yogi
I mean how many words in 1 cell.
example: Cell A1 contain the words: Mr Excel Message Board (4 words).
 
Upvote 0
Hi Zvika_1:

Use ...

=Len(A1)-Len(Substitute(A1," ",""))+1

if A1 houses Mr Excel Message Board, the result will be 4.

Regards!

Yogi
 
Upvote 0
Hi there

Just a thought, if you have extraneous spaces you might like to add Trim to Yogi's formula

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

regards
Derek
 
Upvote 0
Hi Yogi & Derek
Is it possible now to point to any ward in a cell and switch between words ?
Example: A1 houses "Mr Excel Message Board"
New order: "Mr Excel Board Message"
Regards
Zvika
 
Upvote 0

Forum statistics

Threads
1,214,377
Messages
6,119,183
Members
448,872
Latest member
lcaw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top