# CountIF with multiple criteria

#### kjsab

##### Board Regular
I need assistsance with 2 different formulas.

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.

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 <>""

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?

They coerce the TRUE/FALSE values to 1 and 0 respectively as SUMPRODUCT works with numbers.

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 -- ?

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.

Hotpepper
Thanks for the explanation - I'll give it a try.

Thanks to both of you. I learned some great new stuff out of this !!!

Replies
4
Views
444
Replies
8
Views
824
Replies
5
Views
889
Replies
20
Views
470
Replies
1
Views
447

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.

### Which adblocker are you using?

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

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