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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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!
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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