Returning Smallest/Largest Value of Multiple Matches With Index-Match

Bluemartini810

New Member
Joined
Jul 19, 2012
Messages
4
I am working on a pressure loss calc worksheet and need to have an index match formula return the smallest/largest value from the matches.

I have replicated what a typical sheet would look like below.

Each Pressure In cell has the formula
=IFERROR(INDEX(PressureOutList,MATCH(A7,FeedsIntoList,0)),$H$2)

With H2 just being a set pressure value for pipes with an open end
PressureOutList and FeedsIntoList are dynamic ranges that include only the numbers in each of those columns
Unique ID
Pressure In
Pressure Out
Feeds Into
1
100
100.109
2
2
100.109
100.118
3
3
100.118
100.228
4
4
100.228
100.446
8
5
100
100.032
6
6
100.032
100.034
7
7
100.034
100.067
8
8
100.446
100.894
9
9
100.894
101.786

<TBODY>
</TBODY>


I have highlighted the value that is the problem in red.
There are two entries that feed into #8 and I want the formula to return the smallest value in this situation
(In other situations I will need the largest value)
The Value in red should come out to be 100.067 and then the values in orange will automatically update.

Hopefully that is enough information to understand what is going on.

Any help would be much appreciated!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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