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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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,979
Messages
6,122,550
Members
449,088
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