+ Reply to Thread
Results 1 to 13 of 13

XLOOKUP gives N/A

  1. #1
    Registered User
    Join Date
    08-22-2022
    Location
    Finland
    MS-Off Ver
    Microsoft 365
    Posts
    9

    XLOOKUP gives N/A

    =XLOOKUP(Toke!AI2;Info!Q2:Q13;Info!R2:R13)

    Why this formula gives me an answer N/A? How I can make it work? Any other formula?
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Hexdax; 08-23-2022 at 03:49 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: XLOOKUP gives N/A

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet complete with an explanation and some expected results.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,324

    Re: XLOOKUP gives N/A

    You have a mismatch of data types, probably - attach a workbook, NOT a picture.
    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.

  4. #4
    Registered User
    Join Date
    08-22-2022
    Location
    Finland
    MS-Off Ver
    Microsoft 365
    Posts
    9

    Re: XLOOKUP gives N/A

    It says I cannot add picture but I can see picture in my post. Anyway.. I try to find right quarter

    Toke!AI2 = 2022-01
    Info!Q2 = 2022-01
    Info!R2 = Q1

    Datatypes are General
    Last edited by Hexdax; 08-23-2022 at 03:43 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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,324

    Re: XLOOKUP gives N/A

    We want you to attach the workbook.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

  6. #6
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,324

    Re: XLOOKUP gives N/A

    Datatypes are General
    That's formatting, not data type. We need to see the workbook. You clearly have some items that are dates and some that are not, hence the mismatch, but we can't work out which is which from a picture.

  7. #7
    Registered User
    Join Date
    08-22-2022
    Location
    Finland
    MS-Off Ver
    Microsoft 365
    Posts
    9

    Re: XLOOKUP gives N/A

    Now the is sample workbook.

  8. #8
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,324

    Re: XLOOKUP gives N/A

    You are trying to find 2021 quarters in a 2022 list - no matches!!!

  9. #9
    Registered User
    Join Date
    08-22-2022
    Location
    Finland
    MS-Off Ver
    Microsoft 365
    Posts
    9

    Re: XLOOKUP gives N/A

    Sorry, list is short. It continues with 2022-01 and same results

  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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,324

    Re: XLOOKUP gives N/A

    Try this:

    =LOOKUP(--RIGHT(A2,2),{1,4,7,10},"Q"&{1,2,3,4})

    You may need to change commas to semi-colons for your locale.

    Sorry, list is short. It continues with 2022-01 and same results
    You need to provide realistic sample data! Bear this in mind in future.
    Attached Files Attached Files

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: XLOOKUP gives N/A

    Change Info A13 to: 2021-12

    there were NO matches in your sample.

  12. #12
    Registered User
    Join Date
    08-22-2022
    Location
    Finland
    MS-Off Ver
    Microsoft 365
    Posts
    9

    Re: XLOOKUP gives N/A

    =LOOKUP(--RIGHT(A2;2);{1\4\7\10};"Q"&{1\2\3\4})

    That works. What that lookup vector ;{1\4\7\10} means?

  13. #13
    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. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,324

    Re: XLOOKUP gives N/A

    It is looking up the month part against the starting months of each quearter (Jan, Apr, Jul & Oct) to return the correct quarter. It's an approximate match, so finds the nearest lower or equal to the lookup value.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. [SOLVED] if and xlookup
    By pickslides in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2022, 07:24 AM
  2. [SOLVED] XLOOKUP assistance
    By doneauprobst in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-24-2022, 02:26 PM
  3. If this do this XLOOKUP otherwise do this XLOOKUP
    By MattKoleczko in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2022, 08:14 AM
  4. [SOLVED] Xlookup in PQ
    By Excelski in forum Excel General
    Replies: 7
    Last Post: 09-09-2021, 07:15 AM
  5. Two-way Xlookup
    By Ballet4ever in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-28-2021, 10:11 PM
  6. [SOLVED] Xlookup with VBA, need some help!
    By CSimm in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-19-2021, 03:14 PM
  7. Xlookup & sum
    By lynusann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-19-2020, 11:04 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