Error on Countif

klynshoe

Board Regular
Joined
Jun 17, 2010
Messages
176
Hello,

I have a countif formula where I've tested each individual criteria and they all work. However, when I put them all together they don't (I get a #VALUE! error) What am I doing wrong??

=COUNTIFS(Floor,2,Final_Product,$A4,Occupant_Proper,"<>Open")

These work just fine!!!

=COUNTIFS(Floor,2)
=COUNTIFS(Final_Product,$A4)
=COUNTIFS(Occupant_Proper,"<>Open")





USING EXCEL 2007
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hello,

I have a countif formula where I've tested each individual criteria and they all work. However, when I put them all together they don't (I get a #VALUE! error) What am I doing wrong??

=COUNTIFS(Floor,2,Final_Product,$A4,Occupant_Proper,"<>Open")

These work just fine!!!

=COUNTIFS(Floor,2)
=COUNTIFS(Final_Product,$A4)
=COUNTIFS(Occupant_Proper,"<>Open")





USING EXCEL 2007
Are all of the named ranges the same size?
 
Upvote 0
Yes they are all the same size:

Occupant_Proper =Floor_Data!$F$4:$F$8462
Final_Product =Floor_Data!$O$5:$O$8462
Floor = =Floor_Data!$B$4:$B$8462
 
Upvote 0
Yes they are all the same size:

Occupant_Proper =Floor_Data!$F$4:$F$8462
Final_Product =Floor_Data!$O$5:$O$8462
Floor = =Floor_Data!$B$4:$B$8462
Hmmm...

Does this array formula** give the correct result:

=SUM(IF(Floor=2,IF(Final_Product=$A4,IF(Occupant_Proper<>"Open",1))))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Yes they are all the same size:

Occupant_Proper =Floor_Data!$F$4:$F$8462
Final_Product =Floor_Data!$O$5:$O$8462
Floor = =Floor_Data!$B$4:$B$8462

Is that a typo or is Final_product 1 row less than the other ranges?
 
Upvote 0
njijack -

You are right it was one row less - I must be blind. I fixed it and woolaa it worked!!!!!

THANKS!!!!!!!!!!!!!!!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,283
Members
452,902
Latest member
Knuddeluff

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