Find a maximum value using XLOOKUP

Shippior

New Member
Joined
May 22, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I want to find the maximum value in column B that corresponds to "abc" in column A. Column B has it's data in any possible order but the combination of column A and Column B is always unique. Next to that Colum B is exported as text and not as number.

Column AColumn B
abc3
abc2
def6
abc5
def4
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
By the way I do not want to use XLOOKUP per se but it was the solution direction I was getting into as MAXIFS does not work with VALUE as far as I have tried.
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=TAKE(SORT(FILTER(B2:B6,A2:A6="abc"),,-1),1)
 
Upvote 1
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=TAKE(SORT(FILTER(B2:B6,A2:A6="abc"),,-1),1)
Thanks, this works. Apparently SORT isn't limited to numbers and I was too focused on MAX. Is there a way to change the title? The title does not represent the problem so if someone else also has this problem they will never find this answer.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,311
Members
449,152
Latest member
PressEscape

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