• 463K Members
• 9,734 Online
• 560K Conversations
SOLVED

## Vlookup - highest value

Occasional Contributor

# Vlookup - highest value

High all,

I have a table with 3 columns:

A text based column with a unique code, a product name column and a column with amounts.

The thing is that I have to search into this table on product name, select the row with the highest unique code. Then the formula has to return the amount of products of that specific row.

Attached you can find the excel with the 3 columns.

Example:

So we do a "vlookup" for product F.

There are 3 rows with PRODUCT F: 61.281, 61.281-1 and 61.281-2

The formula should return 33.846 because this is in row 61.281-2 which has clearly the highest value.

Thanks,

Dennis

2 Replies
Solution

# Re: Vlookup - highest value

Hi Dennis,

`=INDEX(\$C\$1:\$C\$24,MATCH(MAX(IF(F6=\$B\$1:\$B\$24,SUBSTITUTE(\$A\$1:\$A\$24,"-","")+0)),SUBSTITUTE(\$A\$1:\$A\$24,"-","")+0,0))`

Please note that you have to press Ctrl+Shift+Enter each time you enter this formula, and after you open it in the edit mode.

Hope that helps

Regards

# Re: Vlookup - highest value

Thanks Haytham,... this works like a charm!!!
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies