+ Reply to Thread
Results 1 to 8 of 8

LOOKUP Issues

  1. #1
    Registered User
    Join Date
    10-02-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2016 / Office: 365
    Posts
    37

    LOOKUP Issues

    Hi Experts,

    I have a table format with numbers stored as text and number to do lookups.
    Please can you help me with this small sample, so that I can take this to my work]

    -- Sample file Attached.
    I am trying to do XLOOKUP and VLOOKUP and tried with concatenating lookup value with " " but still did not get desired result

    2020-12-23_14h00_53.png

    The name of the table is Test.


    XLOOKUP(F2 & "",Test[[#All],[ID]:[ID2]],Test[[#All],[Flag]]) Does not work
    XLOOKUP($F$2&" ",Test[ID],Test[[Flag]:[ID2]]) Does not work
    XLOOKUP($G$2,Test[ID],Test[[Flag]:[ID2]]) Working
    VLOOKUP(F2,Test[[ID]:[ID2]],3)
    VLOOKUP(F2&" ",Test[[ID]:[ID2]],2) Wrong and Does not change
    VLOOKUP($G$2,Test,2) Working

    Your help in both these functions and some explanation or links why it is not working will be appreciated.
    Attached Files Attached Files
    Last edited by protocoder; 12-23-2020 at 12:27 AM.

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

    Re: LOOKUP Issues

    Are you sure you can execute the function XLOOKUP in EXCEL 2016 ? It is best to upload samples so that everyone can help you solve the problem

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2016 / Office: 365
    Posts
    37

    Re: LOOKUP Issues

    @wk9128
    Thanks a lot. Oh I am in office and using office 365. I have just edited the first post and attached the file. (sorry, I missed that)
    Note: xlookup when for test, changed the format, worked and so is vlookup

    Let me try github:https://github.com/acerNZ/PowerBI.git
    filename: LookupIssues.xlsx

    Please can you confirm, if you can access the file.

    Best Regards
    Last edited by protocoder; 12-23-2020 at 12:07 AM.

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: LOOKUP Issues

    I am not using 365, but this is some info that may help:
    to lookup a Value and Value-stored astext, there are 2 options:

    1)
    unique to value
    F2 to value: F2+0 (F2 can be either value or text)
    Column A4:A15 to value: A4:A15+0
    Then match: =MATCH(F2+0,INDEX(A4:A15+0,),0)
    Then get "Flag":
    =INDEX(B4:B15,MATCH(F2+0,INDEX(A4:A15+0,),0))

    2)
    Unique to text
    F2&"" (F2 can be either value or text; "" is null with lenght=0, not " "(lenght=1))
    A4:D15&""
    Then:
    =VLOOKUP(F2&"",INDEX(A4:D15&"",),2,0)
    (INDEX to avoid array formula, without it, must be confirmed with Ctrl-shift-enter)
    Quang PT

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

    Re: LOOKUP Issues

    Because I don’t have MO 365, I can’t use the XLOOKUP function, so I can only use other functions. I don’t know if it is acceptable? Please refer to it.

    H2 cell , array formula, and then Drag down and accross

    HTML Code: 

  6. #6
    Registered User
    Join Date
    10-02-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2016 / Office: 365
    Posts
    37

    Re: LOOKUP Issues

    @bebo021999 and @wk9128
    Thank you very much. I created another tab and converted the text to numbers and proceeded along. I did try concat with "0" hmm wasn't working.
    @Wk9128, did you code your fomula to print 'Show ?" Sorry for the confusion. "show?" i added to mark the change in row.

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

    Re: LOOKUP Issues

    This is the attachment, please see where I highlighted it with yellow color
    Attached Files Attached Files

  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,809

    Re: LOOKUP Issues

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.

+ 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] Lookup Formula Issues
    By FranAgrippina in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-08-2015, 03:33 PM
  2. [SOLVED] V-lookup issues
    By Redfeather in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-11-2014, 03:18 PM
  3. Lookup Issues
    By Rock_boy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2014, 01:30 AM
  4. [SOLVED] Lookup Issues
    By mumbles_Scott in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2014, 10:16 AM
  5. [SOLVED] Lookup issues
    By Bryony309 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-15-2014, 06:01 AM
  6. Date lookup Issues
    By dcgrove in forum Excel General
    Replies: 2
    Last Post: 06-26-2009, 03:26 PM
  7. IF and Lookup issues
    By jenm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2009, 07:54 PM

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