SUMPRODUCT formula not working

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,015
Office Version
  1. 365
Platform
  1. Windows
Can someone help identify why this formula is NOT returning a value of 14?

=SUMPRODUCT(('Recycle (BOM)'!$B$43:$B$46=$B$20)*'Recycle (BOM)'!$H$43:$H$46)

v2024.38-1.xlsm
B
20VEOLIA Supply 4' Lamp Box
BOM


Here is 'Recycle (BOM)' tab:


v2024.38-1.xlsm
BCDEFGHIJKLMT
42Mfg/ItemItemProduct TypeProduct SubgroupManufacturerPart #QTY MaterialsUnit Cost ($) MaterialsExtended Cost MaterialsMargin % MaterialsUnit Price MaterialsExtended Price MaterialsNotes
43VEOLIA Supply 4' Lamp BoxSupply 4' Lamp BoxRecyclingRecycleVEOLIASUPPLY-00214$4.14$57.960.00%$4.14$57.96
44VEOLIA Supply U-Tube BoxSupply U-Tube BoxRecyclingRecycleVEOLIASUPPLY-00538$4.14$157.320.00%$4.14$157.32
45 0000 $0.00    
46 0000 $0.00    
Recycle (BOM)
Cell Formulas
RangeFormula
B43:B44B43=SORT(UNIQUE(FILTER('Helper 2'!F6:F505,('Helper 2'!F6:F505<>"")*('Helper 2'!G6:G505<>0))))
C43:C46C43=IFERROR(RIGHT(B43,LEN(B43)-FIND(" ",B43)),"")
D43:D46D43=IFERROR((XLOOKUP(B43,Tbl_Area[MaskedPartNumber],Tbl_Area[Product_Type],XLOOKUP(B43,Tbl_Decorative[MaskedPartNumber],Tbl_Decorative[Product_Type],XLOOKUP(B43,Tbl_Downlight[MaskedPartNumber],Tbl_Downlight[Product_Type],XLOOKUP(B43,Tbl_Exit_and_Emergencies[MaskedPartNumber],Tbl_Exit_and_Emergencies[Product_Type],XLOOKUP(B43,Tbl_Flat_Panel[MaskedPartNumber],Tbl_Flat_Panel[Product_Type],XLOOKUP(B43,Tbl_Flood_Light[MaskedPartNumber],Tbl_Flood_Light[Product_Type],XLOOKUP(B43,Tbl_Garage_and_Canopy[MaskedPartNumber],Tbl_Garage_and_Canopy[Product_Type],XLOOKUP(B43,Tbl_Highbay[MaskedPartNumber],Tbl_Highbay[Product_Type],XLOOKUP(B43,Tbl_Linear[MaskedPartNumber],Tbl_Linear[Product_Type],XLOOKUP(B43,Tbl_Lowbay[MaskedPartNumber],Tbl_Lowbay[Product_Type],XLOOKUP(B43,Tbl_Strip[MaskedPartNumber],Tbl_Strip[Product_Type],XLOOKUP(B43,Tbl_Troffer[MaskedPartNumber],Tbl_Troffer[Product_Type],XLOOKUP(B43,Tbl_Vapor_Tight[MaskedPartNumber],Tbl_Vapor_Tight[Product_Type],XLOOKUP(B43,Tbl_Wall_Mount[MaskedPartNumber],Tbl_Wall_Mount[Product_Type],XLOOKUP(B43,Tbl_Wrap[MaskedPartNumber],Tbl_Wrap[Product_Type],XLOOKUP(B43,Tbl_A_Lamp[MaskedPartNumber],Tbl_A_Lamp[Product_Type],XLOOKUP(B43,Tbl_BR_Lamp[MaskedPartNumber],Tbl_BR_Lamp[Product_Type],XLOOKUP(B43,Tbl_Candle_Lamp[MaskedPartNumber],Tbl_Candle_Lamp[Product_Type],XLOOKUP(B43,Tbl_CFL_Lamp[MaskedPartNumber],Tbl_CFL_Lamp[Product_Type],XLOOKUP(B43,Tbl_Filament_Lamp[MaskedPartNumber],Tbl_Filament_Lamp[Product_Type],XLOOKUP(B43,Tbl_Globe_Lamp[MaskedPartNumber],Tbl_Globe_Lamp[Product_Type],XLOOKUP(B43,Tbl_HID_Lamp[MaskedPartNumber],Tbl_HID_Lamp[Product_Type],XLOOKUP(B43,Tbl_MR_Lamp[MaskedPartNumber],Tbl_MR_Lamp[Product_Type],XLOOKUP(B43,Tbl_Par_Lamp[MaskedPartNumber],Tbl_Par_Lamp[Product_Type],XLOOKUP(B43,Tbl_Linear_Lamp[MaskedPartNumber],Tbl_Linear_Lamp[Product_Type],XLOOKUP(B43,Tbl_Materials[MaskedPartNumber],Tbl_Materials[Product_Type],XLOOKUP(B43,Tbl_Rental[MaskedPartNumber],Tbl_Rental[Product_Type],XLOOKUP(B43,Tbl_Accessory[MaskedPartNumber],Tbl_Accessory[Product_Type],XLOOKUP(B43,Tbl_Controls[MaskedPartNumber],Tbl_Controls[Product_Type],XLOOKUP(B43,Tbl_Recycling[MaskedPartNumber],Tbl_Recycling[Product_Type]))))))))))))))))))))))))))))))),"")
E43:E46E43=IFERROR((XLOOKUP(B43,Tbl_Area[MaskedPartNumber],Tbl_Area[Product_Subgroup],XLOOKUP(B43,Tbl_Decorative[MaskedPartNumber],Tbl_Decorative[Product_Subgroup],XLOOKUP(B43,Tbl_Downlight[MaskedPartNumber],Tbl_Downlight[Product_Subgroup],XLOOKUP(B43,Tbl_Exit_and_Emergencies[MaskedPartNumber],Tbl_Exit_and_Emergencies[Product_Subgroup],XLOOKUP(B43,Tbl_Flat_Panel[MaskedPartNumber],Tbl_Flat_Panel[Product_Subgroup],XLOOKUP(B43,Tbl_Flood_Light[MaskedPartNumber],Tbl_Flood_Light[Product_Subgroup],XLOOKUP(B43,Tbl_Garage_and_Canopy[MaskedPartNumber],Tbl_Garage_and_Canopy[Product_Subgroup],XLOOKUP(B43,Tbl_Highbay[MaskedPartNumber],Tbl_Highbay[Product_Subgroup],XLOOKUP(B43,Tbl_Linear[MaskedPartNumber],Tbl_Linear[Product_Subgroup],XLOOKUP(B43,Tbl_Lowbay[MaskedPartNumber],Tbl_Lowbay[Product_Subgroup],XLOOKUP(B43,Tbl_Strip[MaskedPartNumber],Tbl_Strip[Product_Subgroup],XLOOKUP(B43,Tbl_Troffer[MaskedPartNumber],Tbl_Troffer[Product_Subgroup],XLOOKUP(B43,Tbl_Vapor_Tight[MaskedPartNumber],Tbl_Vapor_Tight[Product_Subgroup],XLOOKUP(B43,Tbl_Wall_Mount[MaskedPartNumber],Tbl_Wall_Mount[Product_Subgroup],XLOOKUP(B43,Tbl_Wrap[MaskedPartNumber],Tbl_Wrap[Product_Subgroup],XLOOKUP(B43,Tbl_A_Lamp[MaskedPartNumber],Tbl_A_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_BR_Lamp[MaskedPartNumber],Tbl_BR_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_Candle_Lamp[MaskedPartNumber],Tbl_Candle_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_CFL_Lamp[MaskedPartNumber],Tbl_CFL_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_Filament_Lamp[MaskedPartNumber],Tbl_Filament_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_Globe_Lamp[MaskedPartNumber],Tbl_Globe_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_HID_Lamp[MaskedPartNumber],Tbl_HID_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_MR_Lamp[MaskedPartNumber],Tbl_MR_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_Par_Lamp[MaskedPartNumber],Tbl_Par_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_Linear_Lamp[MaskedPartNumber],Tbl_Linear_Lamp[Product_Subgroup],XLOOKUP(B43,Tbl_Materials[MaskedPartNumber],Tbl_Materials[Product_Subgroup],XLOOKUP(B43,Tbl_Rental[MaskedPartNumber],Tbl_Rental[Product_Subgroup],XLOOKUP(B43,Tbl_Accessory[MaskedPartNumber],Tbl_Accessory[Product_Subgroup],XLOOKUP(B43,Tbl_Controls[MaskedPartNumber],Tbl_Controls[Product_Subgroup],XLOOKUP(B43,Tbl_Recycling[MaskedPartNumber],Tbl_Recycling[Product_Subgroup]))))))))))))))))))))))))))))))),"")
F43:F46F43=IFERROR((XLOOKUP(B43,Tbl_Area[MaskedPartNumber],Tbl_Area[Brand],XLOOKUP(B43,Tbl_Decorative[MaskedPartNumber],Tbl_Decorative[Brand],XLOOKUP(B43,Tbl_Downlight[MaskedPartNumber],Tbl_Downlight[Brand],XLOOKUP(B43,Tbl_Exit_and_Emergencies[MaskedPartNumber],Tbl_Exit_and_Emergencies[Brand],XLOOKUP(B43,Tbl_Flat_Panel[MaskedPartNumber],Tbl_Flat_Panel[Brand],XLOOKUP(B43,Tbl_Flood_Light[MaskedPartNumber],Tbl_Flood_Light[Brand],XLOOKUP(B43,Tbl_Garage_and_Canopy[MaskedPartNumber],Tbl_Garage_and_Canopy[Brand],XLOOKUP(B43,Tbl_Highbay[MaskedPartNumber],Tbl_Highbay[Brand],XLOOKUP(B43,Tbl_Linear[MaskedPartNumber],Tbl_Linear[Brand],XLOOKUP(B43,Tbl_Lowbay[MaskedPartNumber],Tbl_Lowbay[Brand],XLOOKUP(B43,Tbl_Strip[MaskedPartNumber],Tbl_Strip[Brand],XLOOKUP(B43,Tbl_Troffer[MaskedPartNumber],Tbl_Troffer[Brand],XLOOKUP(B43,Tbl_Vapor_Tight[MaskedPartNumber],Tbl_Vapor_Tight[Brand],XLOOKUP(B43,Tbl_Wall_Mount[MaskedPartNumber],Tbl_Wall_Mount[Brand],XLOOKUP(B43,Tbl_Wrap[MaskedPartNumber],Tbl_Wrap[Brand],XLOOKUP(B43,Tbl_A_Lamp[MaskedPartNumber],Tbl_A_Lamp[Brand],XLOOKUP(B43,Tbl_BR_Lamp[MaskedPartNumber],Tbl_BR_Lamp[Brand],XLOOKUP(B43,Tbl_Candle_Lamp[MaskedPartNumber],Tbl_Candle_Lamp[Brand],XLOOKUP(B43,Tbl_CFL_Lamp[MaskedPartNumber],Tbl_CFL_Lamp[Brand],XLOOKUP(B43,Tbl_Filament_Lamp[MaskedPartNumber],Tbl_Filament_Lamp[Brand],XLOOKUP(B43,Tbl_Globe_Lamp[MaskedPartNumber],Tbl_Globe_Lamp[Brand],XLOOKUP(B43,Tbl_HID_Lamp[MaskedPartNumber],Tbl_HID_Lamp[Brand],XLOOKUP(B43,Tbl_MR_Lamp[MaskedPartNumber],Tbl_MR_Lamp[Brand],XLOOKUP(B43,Tbl_Par_Lamp[MaskedPartNumber],Tbl_Par_Lamp[Brand],XLOOKUP(B43,Tbl_Linear_Lamp[MaskedPartNumber],Tbl_Linear_Lamp[Brand],XLOOKUP(B43,Tbl_Materials[MaskedPartNumber],Tbl_Materials[Brand],XLOOKUP(B43,Tbl_Rental[MaskedPartNumber],Tbl_Rental[Brand],XLOOKUP(B43,Tbl_Accessory[MaskedPartNumber],Tbl_Accessory[Brand],XLOOKUP(B43,Tbl_Controls[MaskedPartNumber],Tbl_Controls[Brand],XLOOKUP(B43,Tbl_Recycling[MaskedPartNumber],Tbl_Recycling[Brand]))))))))))))))))))))))))))))))),"")
G43:G46G43=IFERROR((XLOOKUP(B43,Tbl_Area[MaskedPartNumber],Tbl_Area[PartNumber],XLOOKUP(B43,Tbl_Decorative[MaskedPartNumber],Tbl_Decorative[PartNumber],XLOOKUP(B43,Tbl_Downlight[MaskedPartNumber],Tbl_Downlight[PartNumber],XLOOKUP(B43,Tbl_Exit_and_Emergencies[MaskedPartNumber],Tbl_Exit_and_Emergencies[PartNumber],XLOOKUP(B43,Tbl_Flat_Panel[MaskedPartNumber],Tbl_Flat_Panel[PartNumber],XLOOKUP(B43,Tbl_Flood_Light[MaskedPartNumber],Tbl_Flood_Light[PartNumber],XLOOKUP(B43,Tbl_Garage_and_Canopy[MaskedPartNumber],Tbl_Garage_and_Canopy[PartNumber],XLOOKUP(B43,Tbl_Highbay[MaskedPartNumber],Tbl_Highbay[PartNumber],XLOOKUP(B43,Tbl_Linear[MaskedPartNumber],Tbl_Linear[PartNumber],XLOOKUP(B43,Tbl_Lowbay[MaskedPartNumber],Tbl_Lowbay[PartNumber],XLOOKUP(B43,Tbl_Strip[MaskedPartNumber],Tbl_Strip[PartNumber],XLOOKUP(B43,Tbl_Troffer[MaskedPartNumber],Tbl_Troffer[PartNumber],XLOOKUP(B43,Tbl_Vapor_Tight[MaskedPartNumber],Tbl_Vapor_Tight[PartNumber],XLOOKUP(B43,Tbl_Wall_Mount[MaskedPartNumber],Tbl_Wall_Mount[PartNumber],XLOOKUP(B43,Tbl_Wrap[MaskedPartNumber],Tbl_Wrap[PartNumber],XLOOKUP(B43,Tbl_A_Lamp[MaskedPartNumber],Tbl_A_Lamp[PartNumber],XLOOKUP(B43,Tbl_BR_Lamp[MaskedPartNumber],Tbl_BR_Lamp[PartNumber],XLOOKUP(B43,Tbl_Candle_Lamp[MaskedPartNumber],Tbl_Candle_Lamp[PartNumber],XLOOKUP(B43,Tbl_CFL_Lamp[MaskedPartNumber],Tbl_CFL_Lamp[PartNumber],XLOOKUP(B43,Tbl_Filament_Lamp[MaskedPartNumber],Tbl_Filament_Lamp[PartNumber],XLOOKUP(B43,Tbl_Globe_Lamp[MaskedPartNumber],Tbl_Globe_Lamp[PartNumber],XLOOKUP(B43,Tbl_HID_Lamp[MaskedPartNumber],Tbl_HID_Lamp[PartNumber],XLOOKUP(B43,Tbl_MR_Lamp[MaskedPartNumber],Tbl_MR_Lamp[PartNumber],XLOOKUP(B43,Tbl_Par_Lamp[MaskedPartNumber],Tbl_Par_Lamp[PartNumber],XLOOKUP(B43,Tbl_Linear_Lamp[MaskedPartNumber],Tbl_Linear_Lamp[PartNumber],XLOOKUP(B43,Tbl_Materials[MaskedPartNumber],Tbl_Materials[PartNumber],XLOOKUP(B43,Tbl_Rental[MaskedPartNumber],Tbl_Rental[PartNumber],XLOOKUP(B43,Tbl_Accessory[MaskedPartNumber],Tbl_Accessory[PartNumber],XLOOKUP(B43,Tbl_Controls[MaskedPartNumber],Tbl_Controls[PartNumber],XLOOKUP(B43,Tbl_Recycling[MaskedPartNumber],Tbl_Recycling[PartNumber]))))))))))))))))))))))))))))))),"")
H43:H46H43=IFERROR(ROUNDUP(IFERROR(IF(SUMPRODUCT(--('Helper 2'!$F$6:$F$505=B43),'Helper 2'!$G$6:$G$505)=0,"",SUMPRODUCT(--('Helper 2'!$F$6:$F$505=B43),'Helper 2'!$G$6:$G$505)),0),0),"")
I43:I46I43=XLOOKUP(B43,Tbl_Recycling[MaskedPartNumber],Tbl_Recycling[Cost],0)
J43:J46J43=IFERROR(H43*I43,"")
K43:K46K43=IF(B43<>"", 'Project Items '!$E$16, "")
L43:L46L43=IFERROR(((I43/(1-K43))-I43)+I43,"")
M43:M46M43=IFERROR(H43*L43,"")
Dynamic array formulas.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I'm not sure,. because I'm getting 14 from that same formula. What are you getting?

This seems like an easier formula to use in this case:
Excel Formula:
=SUMIFS($H$43:$H$46, $B$43:$B$46, $B$20)
 
Upvote 0
Solution
I'm getting #VALUE

I was trying to add that last array to this formula, which is why i was using SUMPRODUCT:

=SUMPRODUCT((Input!$R$4:$R$503=B4)*Input!$U$4:$U$503)+SUMPRODUCT((Input!$W$4:$W$503=B4)*Input!$X$4:$X$503)+SUMPRODUCT((Input!$Y$4:$Y$503=B4)*Input!$Z$4:$Z$503)+SUMPRODUCT((Input!$AA$4:$AA$503=B4)*Input!$AB$4:$AB$503)+SUMPRODUCT((Input!$AC$4:$AC$503=B4)*Input!$AD$4:$AD$503)+SUMPRODUCT((Input!$AE$4:$AE$503=B4)*Input!$AF$4:$AF$503)+SUMPRODUCT((Input!$AI$4:$AI$503=B4)*Input!$AJ$4:$AJ$503)+SUMPRODUCT((Input!$AG$4:$AG$503=B4)*Input!$AH$4:$AH$503)
 
Upvote 0
Adding the SUMIFS to that list should work just as well, I believe. If it doesn't match, it just returns 0.
 
Upvote 0
Adding the SUMIFS to that list should work just as well, I believe. If it doesn't match, it just returns 0.

i added your recommendation and the formula works, but I am not getting any value. It's just blank.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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