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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

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,171,962
Messages
5,878,503
Members
433,346
Latest member
new2excel__12

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