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

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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,333
Messages
6,124,317
Members
449,153
Latest member
JazzSingerNL

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