Formula to count instances of a word
I have a sheet that is referencing another sheet to provide counts on instances of certain values in different columns.
What I'm stuck on is counting how many times a single word is used if other text is in the same cell.
For example if I have a column call Fruit and I want to know how many cells contain the word "apple" or "orange" but the cells might have red apple, green apple, granny smith apple, etc... I just want to know how many apples there are without having to have a formula for every variety of apple.
Comments
-
Hi,
Try this.
This formula will count all cells containing the word "Apple"
=COUNTIF(Fruit:Fruit; FIND("Apple"; @cell) > 0)
The same version but with the below changes for your and others convenience.
=COUNTIF(Fruit:Fruit, FIND("Apple", @cell) > 0)
Depending on your country you’ll need to exchange the comma to a period and the semi-colon to a comma.
I hope this helps you!
Have a fantastic week!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
That worked, thank you so much!
-
Great!
Happy to help!
Best,
Andrée
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 422 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!