=SUMPRODUCT not working

StuartM1

Board Regular
Joined
Oct 6, 2010
Messages
115
Hi folks,
I'm trying to add up the figures from a data dump that are a certain Brand, Warehouse, and Receipt Month.

I know my arrays named Brand, Warehouse, Receipt Month and Rec Units are all the correct matching sizes.

Any idea why this formula returns "#VALUE!" ???


=SUMPRODUCT((Brand=$C$3)*(Warehouse=$A9)*(Rcpt_Mo=AA$4)*Rec_Units)

Any ideas are appreciated. I have a similar formula that works fine. I've checked the values in C3, A9 etc. I cant see why it's not working.

Thanks!!!!!!!!!!!!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Excel 2010
ABCDEF
160
260
3NWNabiscoAugust1-Aug-1860
4WarehouseBrandRcpt_MoR_DateRec_Units
5NWNabiscoAugust20-Aug-1810
6SWKraftJuly5-Jul-1820
7NWNabiscoJuly10-Jul-1830
8SWKraftAugust10-Aug-1840
9NWNabiscoAugust5-Aug-1850
10SWKraftJuly31-Jul-1860
4c
Cell Formulas
RangeFormula
F1=SUMPRODUCT(--(Brand=$C3),--(Warehouse=A3),--(R_Date-DAY(R_Date)+1=E3),Rec_Units)
F2=SUMPRODUCT(--(Brand=$C$3),--(Warehouse=A3),--(Rcpt_Mo=D3),Rec_Units)
F3=SUMPRODUCT((Brand=$C$3)*(Warehouse=A3)*(Rcpt_Mo=D3)*Rec_Units)
Named Ranges
NameRefers ToCells
Brand='4c'!$C$5:$C$10
R_Date='4c'!$E$5:$E$10
Rcpt_Mo='4c'!$D$5:$D$10
Rec_Units='4c'!$F$5:$F$10
Warehouse='4c'!$A$5:$A$10


Review the mini examples above.
You did not show an example.

What is in the Rcpt_Mo?
 
Last edited:
Upvote 0
Hi,

Is it possible that you have Text Values in your Rec_Units range thereby causing the #VALUE error?
 
Last edited:
Upvote 0
Let me check.
I wonder if the arrays have to be right next to each other for it to work. ?
The Rcpt_Mo array just has year/months such as 2018/01 etc.
Thanks guys very much!
 
Upvote 0

Excel 2010
ABCDEF
1
260
3NWNabisco2018/0860
4WarehouseBrandRcpt_MoRec_Units
5NWNabisco2018/0810
6SWKraft2018/0720
7NWNabisco2018/0730
8SWKraft2018/0840
9NWNabisco2018/0850
10SWKraft2018/0760
4cc
Cell Formulas
RangeFormula
F2=SUMPRODUCT(--(Brand=$C$3),--(Warehouse=A3),--(Rcpt_Mo=D3),Rec_Units)
F3=SUMPRODUCT((Brand=C3)*(Warehouse=A3)*(Rcpt_Mo=D3)*Rec_Units)
Named Ranges
NameRefers ToCells
'4cc'!Brand='4cc'!$C$5:$C$10
'4cc'!Rcpt_Mo='4cc'!$D$5:$D$10
'4cc'!Rec_Units='4cc'!$F$5:$F$10
'4cc'!Warehouse='4cc'!$A$5:$A$10


I wonder if the arrays have to be right next to each other for it to work. ? No
The Rcpt_Mo array just has year/months such as 2018/01 etc. As text?
 
Upvote 0
You may have "Text" in your data range "Rec_Units".

Check with =ISNUMBER(F5)
 
Upvote 0
Got it. Thanks everybody!!! My darn named range included the LABEL above all the values - such as the word Brand, warehouse, etc.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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