p4nny

Board Regular
Joined
Jan 13, 2015
Messages
246
Hi

I would like to count how many instances cells within column C do not equal a named range with a second criteria,

something like this:

=countifs(C:C,"<>"&NamedRange, D:D,"1")

Is this possible?

Many thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Did you try it? It seems to work fine for me.
Is your NamedRange a single cell?
 
Upvote 0
Hi
Thanks for trying trying. My named range is in cells A1:A10.

I think the formula works when the NamedRange is a single cell.
 
Upvote 0
Thanks for trying trying. My named range is in cells A1:A10.

I think the formula works when the NamedRange is a single cell.
That is correct, because that is how COUNTIFS typically works - your criteria is a single value.

What exactly are you trying to do with a multi-range criteria? If it was equals, I would think that maybe you are trying to see if the value in column C is any one of those values.
But you are using "<>". So I am really not sure what it is that you are trying to do.

You may be better off to just post your data and explain what it is that you are trying to do.
 
Upvote 0
Hi

I would like to count how many instances cells within column C do not equal a named range with a second criteria,

something like this:

=countifs(C:C,"<>"&NamedRange, D:D,"1")

Is this possible?

Many thanks

Either enter

=SUMPRODUCT(--ISNA(MATCH(NamedRange,$C$2:$C$2000,0)),--($D$2:$D$2000=1))

Or control+shift+enter

=SUM(IF(ISNA(MATCH(NamedRange,$C$2:$C$2000,0)),IF($D$2:$D$2000=1,1)))
 
Upvote 0

Forum statistics

Threads
1,216,176
Messages
6,129,316
Members
449,501
Latest member
Amriddin

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