Count if only when a cell contains 2 specific words

chanman

New Member
Joined
Oct 14, 2008
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Example
Specific words: Size, Medium

A1- Hello I am a size small
B1- Hello I am a size medium
C2- Size medium

D2- expected return = 2
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi there...

Something like this maybe?

Book1
ABCD
1Hello I am a size smallHello I am a size medium5
2Size medium
3Hello Size Large
4Size Medium
5
6Size LargeHi am size MEDIUMsize medium
7
8size small
9
10
Sheet1
Cell Formulas
RangeFormula
D1D1=COUNTIF(A1:C10, "*Size*Medium*")
 
Upvote 0
Solution
Glad it works and we could assist... thanks for the feedback... And don't worry... sometimes I also miss something simple...😎
 
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,402
Members
449,156
Latest member
LSchleppi

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