countifS notice the 'S'

eddiegnz1

New Member
Joined
Jun 5, 2012
Messages
40
in Excel 2010, how can i use countifS to count the number of times column 'B' has initials "EG" AND column 'D' has the word "yes". The problem is that column D has the word "yes" along with other characters such as "TR/yes".

my formula is currently =COUNTIFS(B10:B3000,I1,D10:D3000,"yes")

column B has many initials and column D has any number of different characters with sometimes the word yes in column D.

not working

kindest thanks,
Eddie
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try:
=COUNTIFS(B10:B3000,I1,D10:D3000,"*yes")
 
Upvote 0
If "yes' occurs at the end of the text string, try..

Code:
=COUNTIFS(B10:B3000,I1,D10:D3000,"*yes")

or

=COUNTIFS(B10:B3000,I1,D10:D3000,"*"&G2)
If "yes" can occur anywhere within the text string, try...

Code:
=COUNTIFS(B10:B3000,I1,D10:D3000,"*yes*")

or

=COUNTIFS(B10:B3000,I1,D10:D3000,"*"&G2&"*")
...where G2 contains "yes".

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,216,729
Messages
6,132,382
Members
449,723
Latest member
Ghufran

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