Closed Thread
Results 1 to 8 of 8

Xlookup return maximum value

  1. #1
    Registered User
    Join Date
    03-04-2014
    Location
    melbourne, australia
    MS-Off Ver
    365
    Posts
    2

    Question Xlookup return maximum value

    I want to do an xlookup where there are multiple matches and get excel to return the maximum value:

    e.g. My lookup value is "cat". My lookup range is column A and I want excel to return the max value from column b for "cat":

    Column A Column B
    Cat 3
    Dog 1
    Cat 12
    Cat 4

    Have attached spreadsheet. I'm sure there's a simple solution for this!

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Xlookup return maximum value

    Your profile must be out of date, as Excel 2010 did not have XLOOKUP, so please amend this in User CP.

    Why do you have to use XLOOKUP anyway? Surely MAXIF or MAXIFS would be easier.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Xlookup return maximum value

    Cat 12 has an extra space. If you want to return the max value based on a lookup value, try this formula =MAX(IF($A$2:$A$5="Cat",$B$2:$B$5)) and enter with CTRL + SHIFT + ENTER keys.

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Xlookup return maximum value

    I think you are probably using Office 365 - please update your forum profile accordingly. Thanks.

    Please refer to this link

    https://exceljet.net/formula/xlookup-date-of-max-value

  5. #5
    Registered User
    Join Date
    03-04-2014
    Location
    melbourne, australia
    MS-Off Ver
    365
    Posts
    2

    Re: Xlookup return maximum value

    Thanks JieJenn that has solved the problem!!

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Xlookup return maximum value

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'.

  7. #7
    Registered User
    Join Date
    06-16-2020
    Location
    Qatar
    MS-Off Ver
    MS Office2013
    Posts
    2

    Re: Xlookup return maximum value

    How about if there are multiple criteria?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Xlookup return maximum value

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] XLOOKUP to return cell based on multiple criteria in single column
    By mikehay08 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-24-2021, 02:59 PM
  2. [SOLVED] XLookup reusing "old" return value
    By norgaards in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-17-2021, 10:28 AM
  3. XLOOKUP with a dynamic return array
    By phrankndonna in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2020, 09:33 AM
  4. Xlookup - return blank IF contacts certain text
    By Tally04 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-23-2020, 09:44 AM
  5. [SOLVED] Using xlookup/vlookup formula into a validated cell to return a value into that cell
    By Questray in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-14-2020, 11:51 AM
  6. Xlookup blank cells - doesn't return error!
    By Jedab in forum Office 365
    Replies: 3
    Last Post: 02-11-2020, 06:05 PM
  7. [SOLVED] Sum to return maximum value
    By FatKidonaTrampolin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2017, 08:02 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1