Formula for counting individual words.

Marcílio_Lobão

Well-known Member
Joined
Oct 7, 2013
Messages
825
Office Version
  1. 2007
Platform
  1. Windows
Good morning to all colleagues participating in this noble forum.

I have a seemingly simple question but I'm not getting success.
I would like to count on the usual kindness of all of you.

Question:
I have a list of fruit/dessert names, with several names in the cells.

I need to count how many times a certain fruit/dessert name appears in the interval.
Sometimes the name of the fruit is compounded into other names.

I want to count only individual names.

Name-Search.png

I'm using at E2 cell:
Excel Formula:
=SUMPRODUCT(LEN($A$1:$A$5)-LEN(SUBSTITUTE($A$1:$A$5 ;$C2; "")))/ LEN($C2)

Please, it is only possible to use formulas. No VBA in this Excel 2016 worksheet.

Any help will be greatly appreciated. ;)

Have a great day.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
How about
Excel Formula:
=SUMPRODUCT(LEN(" "&$A$1:$A$5&",")-LEN(SUBSTITUTE(" "&$A$1:$A$5&"," ;" "&$C2&","; "")))/(LEN($C2)+2)
 
Upvote 0
Solution
Fluff, Good morning.

Thank You very much(y)
Your suggestion solved my question.

Have a great weekend.

Greetings from Brazil 🌅
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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