Countif not null?

capnqwest

New Member
Joined
Sep 8, 2003
Messages
32
Hello,

I'm trying to write a quick formula to count only items in column O that have a specific value in column S. For example, I'm asking Excel to tell me how many items are there in column O where column S is "ASGN" and there is something in column O (meaning not blank).

I'm trying:
Code:
=SUMPRODUCT((S1:S961="ASGN")*(O1:O961<>"NULL"))

But it keeps coming up as 0. The problem might be with how I'm expressing a blank cell. Is this the proper way?

Thanks
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

capnqwest

New Member
Joined
Sep 8, 2003
Messages
32
Thanks! This worked. I had tried leaving the value blank inside the quotes for null but it hadn't worked because I was referencing the wrong range. Doh!
 

Forum statistics

Threads
1,136,345
Messages
5,675,219
Members
419,553
Latest member
hanahass

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