Keyword count within one cell

pHil.PTI

New Member
Joined
Jan 13, 2011
Messages
3
So I am trying to determine the frequency of specific keywords within a cell containing marketing language to help understand product positioning. The example below is somewhat rudimentary but all formulas I've found thus far will only tell me whether "vitamin" is present or not. How do I get the formula to count "3" for the example below?

I don't care about words within words OR it being case sensitive.

Many, many thanks.
Phil

A1: "Product contains vitamin A, vitamin C and vitamin D."
B1: vitamin
C1: Formula??
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Maybe ...

=(len(a1) - len(substitute(A1, "vitamin", ""))) / len("vitamin")
 
Upvote 0
Thanks for the warm (and quick) welcome!

We are close to the formula... but what we have thus far is case sensitive. What would be the workaround?
 
Upvote 0
=(LEN(A1) - LEN(SUBSTITUTE(lower(A1), lower(B1), ""))) / LEN(B1)
 
Upvote 0

Forum statistics

Threads
1,215,363
Messages
6,124,505
Members
449,166
Latest member
hokjock

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