SUMPRODUCT Over Multiple Columns

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,013
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I am looking for help creating a single formula that will give me the SUM of multiple products that we offer. The sheet below is our Bill of Materials. This grabs the unique values from our input page and now I want to find the total quantity of products from our INPUT page, but they span over multiple columns. See the screenshot below the BOM page. (Please note, the current formula in column I will be removed, as the data is now coming from multiple hidden pages - I am trying to simplify).

v2024.38-1.xlsm
BIJ
3Mfg/ItemQuantityUnit Cost
4HALCO 10.5W LED 4ft T8 Lamp [4K]$3.75
5HALCO 8in LED Downlight [12W-MCCT]8$39.00
6HONYA LED 2ft 220W Linear Highbay [160W-MCCT]3$73.00
7MAXLITE 2X2 LED Flat Panel [18W-MCCT]361$25.81
8MAXLITE 2X2 LED Flat Panel [36W-MCCT]3$25.81
9MAXLITE 2x2 LED Troffer Retrofit [25W-MCCT]1$50.00
10MAXLITE 2X4 LED Flat Panel [27W-MCCT]66$36.56
11MAXLITE 8ft LED Value Strip Fixture [55W-MCCT]84$53.76
12MESTER 205W LED Linear Highbay [150W-MCCT-480V]12$131.64
13LM Steel Bullhorn with 2 Arms at 180 Degrees 4$1,500.00
14LM Tenon Arm for Wall Mounting 2$10.00
15ENVISIONLED Daylight & Bi-Level Motion Sensor28$0.67
16TBD 1/2-EMT Conduit 1/2-Inch x 10'15$500.00
17TBD U Channel Beam Clamp for Kindorf400$1,000.00
18ROSELLE Roll Off Dumpsters – 30 Yard2$2,000.00
19EASTERNHIGHREACH 19 ft. Scissor Lift, Electric, Narrow [M]1$3.90
20EASTERNHIGHREACH 24-26 ft. Scissor Lift, Electric, Wide [M]1$3.90
21VEOLIA Supply 4' Lamp Box14
22VEOLIA Supply U-Tube Box38
BOM
Cell Formulas
RangeFormula
B4:B22B4=LET(v,VSTACK('ECM (BOM)'!B4#,'Accessories (BOM)'!B4#,'Controls (BOM)'!B4#,'Materials (BOM)'!B4#,'Rental Equipment (BOM)'!B4:B26, 'Recycle (BOM)'!B43#),FILTER(v,v<>""))
I5:I22I5=IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(VLOOKUP(B5,ECM_BOM_Table,7,0),VLOOKUP(B5,CONTROLS_BOM_TABLE,7,0)),VLOOKUP(B5,ACCESSORIES_BOM_TABLE,7,0)),VLOOKUP(B5,MATERIALS_BOM_TABLE,7,0)),VLOOKUP(B5,RENTAL_EQUIPMENT_BOM_TABLE,7,0)),VLOOKUP(B5,Recycle_BOM_Table,7,0)),"")
Dynamic array formulas.


This is our INPUT page.
The products from our BOM page can be found in columns: R, W, Y, AA, AC, AE, AG
The quantities from our BOM page can be found in columns: U, X, Z, AB, AD, AF, AH

Any help is appreciated as I hope I have been clear in what I am trying to accomplish!


v2024.38-1.xlsm
PQRSTUVWXYZAAABACADAEAFAGAH
2ECMAccessory 1Accessory 2ControlMaterials 1Materials 2Add. Labor
3ProductECMECM SubCategoryOverrideOverride QtyECM QTYLabor QtyAccessory NameQTYAccessory NameQTYControl NameQTYMaterial NameQTYMaterial NameQTYAdd. LaborQTY
4FixtureFlat PanelMAXLITE 2X2 LED Flat Panel [18W-MCCT]22LM Steel Bullhorn with 2 Arms at 180 Degrees 2LM Tenon Arm for Wall Mounting 2ENVISIONLED Daylight & Bi-Level Motion Sensor14TBD U Channel Beam Clamp for Kindorf200TBD 1/2-EMT Conduit 1/2-Inch x 10'15Re-wire existing2
Input
Cell Formulas
RangeFormula
U4U4=IFERROR(IFS(R4="EMA No Measure", 0, S4="Yes", T4, P4="Lamp", Helper!G4 * J4, TRUE, J4),"")
V4V4=IFS(R4="EMA No Measure", 0, S4="Yes", T4,S4="",J4)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I might be misunderstanding, but it sounds like you want to count the number of products you offer, but those products are listed across the rows in the Input sheet. Is that right? And you would like to do something with the QTY columns, too? I'm not sure how you want to SUM these, when it seems like you're after a COUNT for the products.
 
Upvote 0
I might be misunderstanding, but it sounds like you want to count the number of products you offer, but those products are listed across the rows in the Input sheet. Is that right? And you would like to do something with the QTY columns, too? I'm not sure how you want to SUM these, when it seems like you're after a COUNT for the products.

correct. I was able to figure it out using a VSTACK formula. Thank you.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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