Index the value with the criteria and get the lowest with in the range

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
310
Office Version
  1. 365
Platform
  1. Windows
Id like to get the Position where it matches the criteria of Division Code, Subdivision, and Level with the lowest grade. In the source table below, I'm expecting to get the result of Position1 ((D2) where the grade is 11 compared to the other where grades are 99 & 15

ABCDE
1Division CodeSub Division CodeLevelresult
25008021050080220L1Position1
3
4PositionDivision CodeSub Division CodeLevelGrade
5Position15008021050080220L111
6Position45008021050080220L199
7Position55009175350092471L210
8Position65008021050080220L115
9
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Here's one way, but note that it will fail if the minimum grade that matches all criteria is not unique.

Book1
ABCDEF
1ABCDE
21Division CodeSub Division CodeLevelresult
325008021050080220L1Position1
43
54PositionDivision CodeSub Division CodeLevelGrade
65Position15008021050080220L111
76Position45008021050080220L199
87Position55009175350092471L210
98Position65008021050080220L115
Sheet2
Cell Formulas
RangeFormula
E3E3=INDEX(B6:F9,MATCH(MINIFS(F6:F9,C6:C9,B3,D6:D9,C3,E6:E9,D3),F6:F9,0),1)
 
Upvote 1
Here's one way, but note that it will fail if the minimum grade that matches all criteria is not unique.

Book1
ABCDEF
1ABCDE
21Division CodeSub Division CodeLevelresult
325008021050080220L1Position1
43
54PositionDivision CodeSub Division CodeLevelGrade
65Position15008021050080220L111
76Position45008021050080220L199
87Position55009175350092471L210
98Position65008021050080220L115
Sheet2
Cell Formulas
RangeFormula
E3E3=INDEX(B6:F9,MATCH(MINIFS(F6:F9,C6:C9,B3,D6:D9,C3,E6:E9,D3),F6:F9,0),1)
Thank you Myall_Blues, your right
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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