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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Yogi Anand

MrExcel MVP
Joined
Mar 12, 2002
Messages
11,454
Hi Peter100:

You can use the following SUMPRODUCT formula

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

Regards!

Yogi
 

Peter100

Well-known Member
Joined
Apr 21, 2002
Messages
765

ADVERTISEMENT

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"
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You can use ISNUMBER to exclude blank cells, like this:

=SUMPRODUCT((A15:A74=0)*ISNUMBER(A15:A74)*(G15:G74<>"LEFT"))
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209

ADVERTISEMENT

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?
 

Forum statistics

Threads
1,144,741
Messages
5,726,017
Members
422,653
Latest member
mntsiki

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
Top