Lookup Max value formula

naseerrahaman

New Member
Joined
Nov 25, 2012
Messages
8
Office Version
  1. 2019
Hi Team,

I am looking for the formula where if lookup value matches the lookuparray then formula should pick the max value for the match and return corresponding value.

for better understanding please refer the attached excel file.
Max value lookup.xlsx
ABCDEFGHIJK
1Lookup valueVookup ArrayMatchedResult from column EBased on Max Value
2RehamanRehaman20ARehamanB90
3NaseerRehaman90BNaseerH100
4Rehaman80C
5Rehaman30D
6Naseer1E
7Naseer2F
8Naseer8G
9Naseer100H
10Naseer67I
11Xyz9J
12Xyz8K
13Xyz10L
Sheet1


Note: cross posted here

I request you to kindly look into this and advise.

Thank you.

Regards,
Rehaman
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try this

Book1
ABCDEFGHI
1Lookup valueVookup ArrayMatchedResult from column EBased on Max Value
2RehamanRehaman20ARehamanB90
3NaseerRehaman90BNaseerH100
4Rehaman80C
5Rehaman30D
6Naseer1E
7Naseer2F
8Naseer8G
9Naseer100H
10Naseer67I
11Xyz9J
12Xyz8K
13Xyz10L
Sheet1
Cell Formulas
RangeFormula
H2:H3H2=INDEX($E$2:$E$13,MATCH(MAXIFS($D$2:$D$13,$C$2:$C$13,G2),$D$2:$D$13,0),1)
 
Upvote 0
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’)
 
Upvote 0
Try this

Book1
ABCDEFGHI
1Lookup valueVookup ArrayMatchedResult from column EBased on Max Value
2RehamanRehaman20ARehamanB90
3NaseerRehaman90BNaseerH100
4Rehaman80C
5Rehaman30D
6Naseer1E
7Naseer2F
8Naseer8G
9Naseer100H
10Naseer67I
11Xyz9J
12Xyz8K
13Xyz10L
Sheet1
Cell Formulas
RangeFormula
H2:H3H2=INDEX($E$2:$E$13,MATCH(MAXIFS($D$2:$D$13,$C$2:$C$13,G2),$D$2:$D$13,0),1)

Hi earthworm,​


Formula working fine and thank you so much for all your help and support.

Regards,
Rehaman.
 
Upvote 0
Try this

Book1
ABCDEFGHI
1Lookup valueVookup ArrayMatchedResult from column EBased on Max Value
2RehamanRehaman20ARehamanB90
3NaseerRehaman90BNaseerH100
4Rehaman80C
5Rehaman30D
6Naseer1E
7Naseer2F
8Naseer8G
9Naseer100H
10Naseer67I
11Xyz9J
12Xyz8K
13Xyz10L
Sheet1
Cell Formulas
RangeFormula
H2:H3H2=INDEX($E$2:$E$13,MATCH(MAXIFS($D$2:$D$13,$C$2:$C$13,G2),$D$2:$D$13,0),1)
Hi Earthworm,

Is it possible to achieve the same result without using the Maxifs as in other version maxifs is not available.

Please advise.

Thank you.

Regards,
Rehaman.
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFGHI
1Lookup valueVookup ArrayMatchedResult from column EBased on Max Value
2RehamanRehaman20ARehamanB90
3NaseerRehaman90BNaseerH100
4Rehaman80C
5Rehaman30D
6Naseer1E
7Naseer2F
8Naseer8G
9Naseer100H
10Naseer67I
11Xyz9J
12Xyz8K
13Xyz10L
Summary
Cell Formulas
RangeFormula
H2:H3H2=INDEX($E$2:$E$13,MATCH(1,($C$2:$C$13=G2)*($D$2:$D$13=I2),0))
I2:I3I2=AGGREGATE(14,6,$D$2:$D$13/($C$2:$C$13=G2),1)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABCDEFGHI
1Lookup valueVookup ArrayMatchedResult from column EBased on Max Value
2RehamanRehaman20ARehamanB90
3NaseerRehaman90BNaseerH100
4Rehaman80C
5Rehaman30D
6Naseer1E
7Naseer2F
8Naseer8G
9Naseer100H
10Naseer67I
11Xyz9J
12Xyz8K
13Xyz10L
Summary
Cell Formulas
RangeFormula
H2:H3H2=INDEX($E$2:$E$13,MATCH(1,($C$2:$C$13=G2)*($D$2:$D$13=I2),0))
I2:I3I2=AGGREGATE(14,6,$D$2:$D$13/($C$2:$C$13=G2),1)
Press CTRL+SHIFT+ENTER to enter array formulas.
Hi Earthworm,

Excellent, it's working fine.

Thank you so much for all your help and support.

Regards,
Rehaman.
 
Upvote 0
I'm Fluff, not earthworm. ;)

Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,242
Messages
6,123,830
Members
449,127
Latest member
Cyko

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