Excel - using Index and Match - adjusting the Match function's array input

JLoewen

New Member
Joined
Jun 20, 2018
Messages
29
This is a complicated question to ask and I am not sure exactly how to ask it. I am attempting to make a pipe sizing tool to speed up one of my work processes. The procedure is pretty straight forward. Do some math to figure out GPM going to drain (done elsewhere) and then look up the pipe size required for the pipe slope specified. We use the table below (Plumbing Code).

I need to have the spreadsheet pick the appropriate column for pipe slope (typically 1/8" per foot), and then use the MATCH -1 function to pick the first row that is greater than the required GPM capacity calculated elsewhere in the spreadsheet. From there, it needs to index and pick out the pipe size.

I am not sure how to tell MATCH to pick a specific array to match to based on a dynamic input (pipe slope). Any suggestions?

Table 1106.2
Storm Drain Pipe Sizing
12345
Capacity (GPM)
Pipe Size (inches)Slope of Horizontal Drain
Vertical1/16" per foot1/8" per foot1/4" per foot1/2" per foot
915"55432508354650167093
812"32721480209329604187
710"2050927131118552623
68"111750571410101429
56"538243344487689
45"311117165234331
34"18081115163231
23"87395579111
12"3415223144

<colgroup><col span="3"><col><col span="3"></colgroup><tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Something like


Excel 2013/2016
ABCDEFGHI
1Pipe Size (inches)Slope of Horizontal Drain
2Vertical1/16" per foot1/8" per foot1/4" per foot1/2" per footSlope1/8" per foot
3915"55432508354650167093GPM45
4812"32721480209329604187Pipe4"
5710"2050927131118552623
668"111750571410101429
756"538243344487689
845"311117165234331
934"18081115163231
1023"87395579111
1112"3415223144
Data
Cell Formulas
RangeFormula
I4=INDEX(B3:B11,MATCH(I3,INDEX(C3:G11,0,MATCH(I2,C2:F2,0)),-1))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,831
Members
449,051
Latest member
excelquestion515

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