COUNT number of times 2 or more values appear in a cell

uk747

Well-known Member
Joined
Jul 20, 2011
Messages
832
Office Version
  1. 365
Platform
  1. Windows
Hi

Need to count how many times the word cat and red appear in list below Range (B2:B8) Result should be 3. The word can appear any where in the cell
Result should be 3

doesn't matter if cat appears within a word as long as it appears its fine i.e. scatty red dog would count as well

cat sheep dog
blue dog black
cat man red
red cat
cat blue
dog red
cat badger red
 

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.
How about
Fluff.xlsm
ABCD
1
2cat sheep dogcat3
3blue dog blackred
4cat man red
5red cat
6cat blue
7dog red
8cat badger red
Main
Cell Formulas
RangeFormula
D2D2=SUM((ISNUMBER(SEARCH(C2,A2:A8)))*(ISNUMBER(SEARCH(C3,A2:A8))))
 
Upvote 0
Solution
Another possibility

22 07 26.xlsm
ABCD
1
2cat sheep dogcat3
3blue dog blackred
4cat man red
5red cat
6cat blue
7dog red
8cat badger red
Count
Cell Formulas
RangeFormula
D2D2=COUNTIFS(A2:A8,"*"&C2&"*",A2:A8,"*"&C3&"*")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,869
Members
449,054
Latest member
juliecooper255

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