CountIF with multiple criteria

kjsab

Board Regular
Joined
Mar 16, 2007
Messages
63
I need assistsance with 2 different formulas.

In my spreadsheet,
Column A = Status
Column B = Assignee Individual.

Formula One...I need to calculate how many rows meet the criteria of Status = Active, and Assignee Individual is blank.

Formula Two...I need to calculate how many rows meet the criteria of Status = Active, and Assignee Individual is NOT blank.

Thanks!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I need assistsance with 2 different formulas.

In my spreadsheet,
Column A = Status
Column B = Assignee Individual.

Formula One...I need to calculate how many rows meet the criteria of Status = Active, and Assignee Individual is blank.

Formula Two...I need to calculate how many rows meet the criteria of Status = Active, and Assignee Individual is NOT blank.

Thanks!

Try,

=SUMPRODUCT(--(A2:A100="Active"),--(B2:B100=""))

For problem 2 change ="" to <>""
 
Upvote 0
Thank you

First off, thank you very much for the quick reply, this seemed to have worked but it was using a statement i have never seen before. What do the -- mean in the formula?
 
Upvote 0
They coerce the TRUE/FALSE values to 1 and 0 respectively as SUMPRODUCT works with numbers.
 
Upvote 0
Hotpepper

I've been in the habit of doing it like this -

=SUMPRODUCT((A2:A100="Active")*(B2:B100=""))

Does the * operator have the same effect as -- ?

kjsab - sorry for hijacking your thread a bit
 
Upvote 0
My understanding is the -- format will calculate a bit faster.

This makes sense to me, as the native format of SUMPRODUCT is to work with arrays. The -- format, using the example above, creates two arrays that SUMPRODUCT can immediately work with, using * creates the additional calculation to create a single array from the two before SUMPRODUCT can work with it.
 
Upvote 0

Forum statistics

Threads
1,218,746
Messages
6,144,255
Members
450,533
Latest member
xoxo1998

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