vlookup w/ multiple values, returning max

fotoman

New Member
Joined
Mar 20, 2011
Messages
1
Ok, I've scoured the search results and haven't quite run across what I'm looking to do :(

I have a long list of entries: names & numbers. There will be multiple entries for each name in the list, but I only want to return the max value for one that matches.

A 3
B 6
C 8
D 4
A 6
D 1

I need to lookup the first column, and return the max value associated with it. Neither column is sorted, and I will be looking up quite a lot of items in column 'A'. Oh, sorting the results is not really an option.

So, if I lookup 'A' it should return 6.

Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Welcome to the board!

Maybe something on the lines of
Excel Workbook
ABCDE
1A3
2B6A6
3C8B6
4D4C8
5A6D4
6D1
Sheet


will help?
 
Upvote 0
Thank you so much, jasonb75. I had been wrestling with this for a very long time! Saved me a ton of work. You rock! :laugh:


Welcome to the board!

Maybe something on the lines of

*ABCDE
A***
B*A
C*B
D*C
A*D
D***

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:16px;"><col style="width:14px;"><col style="width:64px;"><col style="width:16px;"><col style="width:14px;"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="align: right"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]

[TD="align: right"]6[/TD]

[TD="align: right"]6[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="align: right"]8[/TD]

[TD="align: right"]6[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="align: right"]4[/TD]

[TD="align: right"]8[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="align: right"]6[/TD]

[TD="align: right"]4[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="align: right"]1[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
E2{=MAX(IF($A$1:$A$6=D2,$B$1:$B$6))}
E3{=MAX(IF($A$1:$A$6=D3,$B$1:$B$6))}
E4{=MAX(IF($A$1:$A$6=D4,$B$1:$B$6))}
E5{=MAX(IF($A$1:$A$6=D5,$B$1:$B$6))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> http://www.excel-jeanie-html.de/index.php?f=1" target="_blank"> Excel Jeanie HTML 4

will help?
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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