Need help with error

DKRbella0814

Board Regular
Joined
Aug 10, 2008
Messages
155
Can someone help me understand why the first formula works fine and the second is returning an error? (#REF!)

SUMPRODUCT(('OnTime (2)'!$A$2:$A$9981=$A5)*('OnTime (2)'!$G$2:$G$9981<>"")*('OnTime (2)'!$G$2:$G$9981="Aug-10"))



ERROR:

SUMPRODUCT(('OnTime (2)'!$A$2:$A$9981=$A5)*('OnTime (2)'!$G$2:$G$9981<>"")*('OnTime (2)'!$G$2:$G$9981="Aug-10")*('OnTime (2)'!$N$2:$N$9981="On Time"))
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I ahvent run the formulas but should the last reference be

$N$2:$G$9981="On Time"))

You have N in second part

$N$2:$N$9981="On Time"))
 
Upvote 0
The only difference between the 2 formulas is the last argument in the 2nd
('OnTime (2)'!$N$2:$N$9981="On Time")

And the 1st formula works, the 2nd returns #REF!

Therefor, the only reasonable explaination is there are other formulas within the range
'OnTime (2)'!$N$2:$N$9981
That result in #REF!

Hope that helps.
 
Upvote 0
No, Column N is the only column that has "On Time" or "late"

I basically want a formula that will add the number of "On Time" occurrences (col N (N2:N4000) if it also matches the designated month (Aug-10) which is in col G (g2:g4000) and if it also matches the correct vendor in col A (a2:a4000)

*Range has been simplified
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,766
Members
452,940
Latest member
rootytrip

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