Counting a word in a column when cells have multiple values...

webster33

New Member
Joined
Apr 24, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to figure out the best way to COUNT how many times a word appears within a column. However, the column has several cells where there are multiple values separated by semicolons.

As an example, what would be the best way to write the formula to count the word "alpha" from this sample data set?

1713995163564.png



Thank you!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try:
Book1
ABC
1ae
2a; b0
3a
4a
5a; b ; c
6a; b; c; d
Sheet6
Cell Formulas
RangeFormula
C2C2=LET(list,TRIM(TEXTSPLIT(TEXTJOIN(";",,A1:A6),,";")),IFERROR(ROWS(FILTER(list,list=C1)),0))
 
Upvote 0
Or Countif?
Book1
ABC
1alpha6
2alpha; bravo
3alpha
4alpha
5alpha; bravo; charlie
6alpha; bravo; charlie; delta
7
Sheet1
Cell Formulas
RangeFormula
C1C1=COUNTIF(A1:A6,"*alpha*")
 
Upvote 0
One draw back with COUNTIF is if the words are repeated in the same cell, they won't get counted.
 
Upvote 0
Or Countif?
Book1
ABC
1alpha6
2alpha; bravo
3alpha
4alpha
5alpha; bravo; charlie
6alpha; bravo; charlie; delta
7
Sheet1
Cell Formulas
RangeFormula
C1C1=COUNTIF(A1:A6,"*alpha*")
Thanks @kevin9999! That did the trick by adding the * on each side of the desired lookup value. Much appreciated!
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,986
Members
452,541
Latest member
haasro02

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