How to lookup for maximum value of a table with duplicate entries?

yabi100

Board Regular
Joined
Aug 10, 2013
Messages
62
Office Version
  1. 2016
Platform
  1. Windows
I have a two-column table, called Tbl1. First column called Number and 2nd value.

There are duplicate Numbers in first column.

In a separate column, I have lookup numbers. I want to lookup these numbers in Tbl1 and return max value of second column from Tbl1. If first column of Tbl1 consists of only unique value, that was a standard vlookup. But when lookup values are not unique, I don't know how to solve it? Is it possible?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
This may work for you:,

Excel Formula:
=MAX(IF(LookUpNumbersColum=LookUpValue,MaxValueColumn))

This code won't work if you hit Enter only after input. This is an array formula so you should press Ctrl+Shift+Enter together.
 
Upvote 0
Solution
Your welcome! Please mark the solution as answer if it worked for you :)
 
Upvote 0
Your welcome! Please mark the solution as answer if it worked for you :)
Dear Flashbond
Sorry I was unaware of that icon. I did it and learned it from you.
Thanks again for all your support and help.
 
Upvote 0

Forum statistics

Threads
1,214,886
Messages
6,122,093
Members
449,064
Latest member
Danger_SF

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