+ Reply to Thread
Results 1 to 11 of 11

LOOKUP where there are approximate matches with the lookup value - how to achieve?

  1. #1
    Registered User
    Join Date
    12-15-2021
    Location
    Newcastle, England
    MS-Off Ver
    M365
    Posts
    10

    LOOKUP where there are approximate matches with the lookup value - how to achieve?

    I am trying to use XLOOKUP to return the value of Cell J2 into Cell D2 based on the value of B2. This will work for this line as both B2 and I2 are an exact match.

    How would I use XLOOKUP for the other cells as the cells in the rest of column B do not match exactly with column I?

    Am I going about this the wrong way and should I be using some other formula to achieve the end result?
    Attached Files Attached Files
    Last edited by AliJay64; 01-15-2022 at 10:02 AM. Reason: Mark as solved

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,540

    Re: Is XLOOKUP the right formula to use?

    1. Your ttitle should tell us what you are trying to do with the formula.
    2. Your attachment should show us the results you are looking for.

    As it stands, I cannot answer your question because I have no idea wht you think is wrong with what you have done.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-15-2021
    Location
    Newcastle, England
    MS-Off Ver
    M365
    Posts
    10

    Re: Is XLOOKUP the right formula to use?

    Hi AliGW,

    I have amended the title and uploaded the example again. Hopefully this meets the requirements you mentioned.
    Last edited by AliGW; 01-13-2022 at 07:05 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,540

    Re: Can XLOOKUP Do This Task?

    Thanks for the title change, but it's still not telling me what you want to do.

    Forget XLOOKUP - just say what the issue is that you are trying to solve. Then answer my questions, please.

    EDIT: I've done it for you - please take note for future reference.
    Last edited by AliGW; 01-13-2022 at 07:09 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,540

    Re: Can XLOOKUP Do This Task?

    Based on your NEW attachment, I suggest you provide a definitive list of variants - for example, provide a list of the software WITHOUT version numbers and any variations (e.g. where words can be used instead of numbers as in 360). This will need to be elsewhere in the workbook. Once done, post the workbook again.

  6. #6
    Registered User
    Join Date
    12-15-2021
    Location
    Newcastle, England
    MS-Off Ver
    M365
    Posts
    10

    Re: Can XLOOKUP Do This Task?

    Quote Originally Posted by AliGW View Post
    Based on your NEW attachment, I suggest you provide a definitive list of variants - for example, provide a list of the software WITHOUT version numbers and any variations (e.g. where words can be used instead of numbers as in 360). This will need to be elsewhere in the workbook. Once done, post the workbook again.
    Thanks for your help on this. Unfortunately I have no option but to use the application names as they are. These are provided to me by another team so cannot amend them.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,903

    Re: LOOKUP where there are approximate matches with the lookup value - how to achieve?

    I believe that you may misunderstand what AliGW is asking you to do.
    In the attached file:
    1. Set up a range of list of software in XFD2:XFD7 based on what I feel AliGW suggests.
    2. Use a formula in column L to match the data in column XFD to that in column B (Note that the formula in column may be moved and/or that column hidden for aesthetic purposes).
    The formula in column L is: =INDEX(XFD$2:XFD$7,AGGREGATE(15,6,(ROW(XFD$2:XFD$7)-ROW(XFD$1))/(SEARCH(XFD$2:XFD$7,B2)),1))
    3. Sort the data in columns I:J alphabetically (based on column I).
    The formula that populates column is: =SUMIFS(J$2:J$7,I$2:I$7,L2&"*")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: LOOKUP where there are approximate matches with the lookup value - how to achieve?

    Try this
    In D2 copied down

    Please Login or Register  to view this content.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  9. #9
    Registered User
    Join Date
    12-15-2021
    Location
    Newcastle, England
    MS-Off Ver
    M365
    Posts
    10

    Re: LOOKUP where there are approximate matches with the lookup value - how to achieve?

    Many thanks to all for helping with this one. It will save a lot of work for me as this report is run monthly.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,540

    Re: LOOKUP where there are approximate matches with the lookup value - how to achieve?

    Thanks for the feedback.

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,903

    Re: LOOKUP where there are approximate matches with the lookup value - how to achieve?

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. XLookup array formula will not fill down
    By botoole54 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-07-2022, 04:40 AM
  2. [SOLVED] Help with complex formula, with XLOOKUP
    By sanspm in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-23-2021, 01:46 AM
  3. Xlookup Formula Won't Recognize Data in Another Sheet
    By Dan1027 in forum Excel General
    Replies: 2
    Last Post: 09-09-2021, 02:06 AM
  4. Help on XLOOKUP formula with multiple criteria
    By lyzas in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-22-2021, 05:06 AM
  5. Multiple criteria for XLOOKUP formula
    By mikehk in forum Excel General
    Replies: 1
    Last Post: 06-28-2021, 05:50 PM
  6. [SOLVED] XLOOKUP not picking up table references while constructing a formula
    By Questray in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2021, 12:31 PM
  7. Using Dropdown Menu to adjust Xlookup formula
    By Tim418 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-22-2020, 11:10 PM

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