COUNTIF AND

Peter100

Well-known Member
Joined
Apr 21, 2002
Messages
765
I want to count two ranges a15:a74 and g15:g74 as long as the first range contains "YES" and the second range contains "YES"

can one combine multiple countif statements ?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi Peter100:

You can use the following SUMPRODUCT formula

=SUMPRODUCT((A15:A74="Yes")*(G15:G74="Yes"))

Regards!

Yogi
 
Upvote 0
Hi Again

Aladins formula is great, but it appears to include any blank cells in the range
The actual criteria I'm evaluating is either
"LEFT" & 0

where I want to do acount of the range that includes zeros but not if the other range has a corresponding "LEFT"
 
Upvote 0
You can use ISNUMBER to exclude blank cells, like this:

=SUMPRODUCT((A15:A74=0)*ISNUMBER(A15:A74)*(G15:G74<>"LEFT"))
 
Upvote 0
On 2002-10-21 03:29, Peter100 wrote:
Hi Again

Aladins formula is great, but it appears to include any blank cells in the range
The actual criteria I'm evaluating is either
"LEFT" & 0

where I want to do acount of the range that includes zeros but not if the other range has a corresponding "LEFT"

Peter,

I'm a bit lost...

Are you saying that you want to count the co-occurrences of a real 0 in one range and anything else but the word LEFT in other range?
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,027
Members
448,543
Latest member
MartinLarkin

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