Sumproduct data on different sheets and multiple criteria

TiaanvC

New Member
Joined
Sep 9, 2022
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
I have a design sheet where I enter a quantity of fittings in the pipeline.
In a second sheet there is a standard table containing design adjustment factors for a wide variety of fittings. To calculate what the equivalent straight pipe length would be for the various fittings in the pipe section, I have to multiply the number of fitting (per size) with the respective adjustment factors and add it together.

At the moment I am using an elaborate Vlookup but as fitting types is added the maintenance of the formula is cumbersome.

I know the correct solution is SUMPRODUCT but I just cannot get the correct way to select the array from the EQ_factor sheet. I tried the following but it doesn't work
Excel Formula:
=SUMPRODUCT($B7:$J7,INDEX(EQ_factor!$B$3:$J$20,MATCH(EQ_factor!$A$3:$A$20,Design_Sheet!$A7,0)))
(see cell M7 where I tried this)

Pipe Des.xlsx
ABCDEFGHIJKLM
1Nominal Diameter (mm)90° Ellbow45° EllbowTee RunTee BranchGlobe ValveGate ValveAngle ValveSwing Check ValveButterfly ValveUser Defined (Reducers etc)Straight Length (m)Equivalent Length (m)
2
3250416693.7
4250416693.7
520051115142.6
610021519.0
78037.9#N/A
Design_Sheet
Cell Formulas
RangeFormula
L3:L4L3=2.5+28.5+25+10
L5L5=11+30+64+10
M3:M6M3=L3+(B3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,2,FALSE))+(C3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,3,FALSE))+(D3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,4,FALSE))+(E3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,5,FALSE))+(F3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,6,FALSE))+(G3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,7,FALSE))+(H3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,8,FALSE))+(I3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,9,FALSE))+(J3*VLOOKUP($A3,EQ_factor!$A$3:$J$16,10,FALSE))
L7L7=0.4+3.8+3.7
M7M7=SUMPRODUCT($B7:$J7,INDEX(EQ_factor!$B$3:$J$20,MATCH(EQ_factor!$A$3:$A$20,Design_Sheet!$A7,0)))
Cells with Data Validation
CellAllowCriteria
A3:A7List=INDIRECT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(XFC3&XFD3," ",""),".",""),"(",""),")",""))


The second sheet with the design adjustment factors:
Pipe Des.xlsx
ABCDEFGHIJ
1SizeLe (m)
290° Ellbow45° EllbowTee RunTee BranchGlobe ValveGate ValveAngle ValveSwing Check ValveButterfly Valve
3150.3750.20.250.954.40.11.951.3
4200.50.2750.351.2255.8250.152.5751.725
5250.6250.350.4251.57.4250.1753.2752.175
6320.950.450.5751.8259.7750.2254.3252.875
74010.5250.6752.111.40.2755.0253.35
8501.4250.651314.650.356.454.31.8
9651.7250.7751.2253.67550.4257.7255.152.1
10801.97511.5254.121.7250.59.66.3753.1
111002.851.2751.9755.528.50.67512.5758.43.7
121504.17523.0758.17543118.9512.6253.1
132005.252.653.512.2556.51.32524.958.3253.7
142506.53.3754.37514.25711.67531.2510.455.8
1530083.875516.7584.5237.2512.4256.4
163509.254.56.2519.5932.24113.675
1740010.7556.7522106.252.54715.625
1845013.255.75826.75119.54.22552.517.575
1950014.56.258.7529.5133.253.12558.7519.6
2060016.757.510.534.25160.253.77570.7523.575
EQ_factor
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=SUMPRODUCT($B7:$J7,INDEX(EQ_factor!$B$3:$J$20,MATCH(A7,EQ_factor!$A$3:$A$20,0),))+L7
 
Upvote 0
Solution
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=SUMPRODUCT($B7:$J7,INDEX(EQ_factor!$B$3:$J$20,MATCH(A7,EQ_factor!$A$3:$A$20,0),))+L7
Thanks for the simple solution. I updated my account details as well
 
Upvote 0
Glad to help & thanks for the feedback.
Thanks also for updating your profile. (y)
 
Upvote 0

Forum statistics

Threads
1,213,520
Messages
6,114,101
Members
448,548
Latest member
harryls

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