+ Reply to Thread
Results 1 to 8 of 8

Having trouble using XLOOKUP between two spreadsheet files

  1. #1
    Registered User
    Join Date
    12-13-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    11

    Having trouble using XLOOKUP between two spreadsheet files

    I have two spreadsheet files: "Daily Report" and "IP List". Both are two column tables.

    "IP List" is a reference sheet that contains a list of all possible IP addresses and its associated user.

    IP List.xlsx

    "Daily Report" changes every day because it shows a list of the active IP addresses on that day. My goal with it is to find those IP addresses in "IP List" and display its associated user.

    Daily Report.xlsx

    I thought it would be a simple matter of entering the following formula into column two of the "Daily Report" by clicking on the cells in both sheets that will supply the needed arguments.

    What I mean is, I type =XLOOKUP( in B2 of "Daily Report".
    then click on A2 of the "Daily Report" to provide the "lookup_value"
    then click on A2 in the "IP List" table to provide the "lookup_array"
    then click on B2 in the "IP List" table to provide the "return_array"
    and complete the formula with "" for "if not found".

    Doing that creates the following formula:

    Please Login or Register  to view this content.
    I cannot post a screenshot of the result either, but only one person is displayed in "Daily Report", cell B2. The rest of the rows return blanks even though the IPs are valid.

    What am I doing wrong? (both spreadsheets are attached)

  2. #2
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    245

    Re: Having trouble using XLOOKUP between two spreadsheet files

    Hi twalp, In my attachment I have included two different formulas (VLOOKUP) that seem to work. I only put formulas in the Daily Report so I did not attach the other one. Both reports will need to be open at the same time. The second set of formulas are indirect formulas.
    As long as the IP list (IP List.xlsx) does not change names these should work.
    Squeaky.
    Attached Files Attached Files

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,495

    Re: Having trouble using XLOOKUP between two spreadsheet files

    With both files open, some options:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    12-13-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    11

    Re: Having trouble using XLOOKUP between two spreadsheet files

    Thank you for replying, Squeaky. I prefer to stick with mastering and using XLOOKUP because it's more flexible that VLOOKUP. But I do appreciate your response!

  5. #5
    Registered User
    Join Date
    12-13-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    11

    Re: Having trouble using XLOOKUP between two spreadsheet files

    Wow, TMS. Three different approaches - GREALY APPRECIATED! -- including a fix for my XLOOKUP formula.

    Removing the "At sign" from the two Named columns was the fix for my example "Daily Report" sheet.

    As you may have gathered from my post, I took the lazy approach of clicking on cells rather than manually entering the formula arguments. When I clicked on the two cells in "IP List" to get lookup_array and return_array the "At sign" was included, so I left it in because I don't know what the "At sign" indicates anyway !

    Should the take-away from this be that "clicking on cells to build a formula works, but remove the 'At signs'"? Can you explain why the "At sign" was inserted but should not be used? Pardon my ignorance (and inability to get that answer from Google -- maybe I should try Bing's AI ?)

    BONUS QUESTION: why does this forum block my submitting or even previewing this reply with the error message: "You are not allowed to post any kinds of links, images or videos until you post a few times." when I use the "At sign" in the text?!?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,495

    Re: Having trouble using XLOOKUP between two spreadsheet files

    Take this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    When you see, for example, Table1[Person], you are referring to the full column in another Table (or, at least, a column in a Table that the formula isn't in). When you see something like [@IP], this is referring to a cell in the current row of the column, in this case [IP].

    Clear?

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,495

    Re: Having trouble using XLOOKUP between two spreadsheet files

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon 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 those who helped.

  8. #8
    Registered User
    Join Date
    12-13-2020
    Location
    Texas
    MS-Off Ver
    2016
    Posts
    11

    Re: Having trouble using XLOOKUP between two spreadsheet files

    Wonderfully clear, TMS. Thank you!

+ 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 not working as well with sharepoint files
    By twaccess in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-28-2021, 05:31 AM
  2. trouble opening 2 spreadsheet at once.
    By Railcon in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 10-04-2016, 01:42 AM
  3. Trouble with Spreadsheet Compare tool
    By mobileone in forum Excel General
    Replies: 5
    Last Post: 03-07-2016, 03:21 PM
  4. [SOLVED] Trouble saving files as CSV
    By PAZResearch in forum Excel General
    Replies: 14
    Last Post: 06-21-2014, 05:49 PM
  5. Trouble with time(?) function in spreadsheet
    By toppity in forum Excel General
    Replies: 1
    Last Post: 06-26-2011, 02:22 AM
  6. trouble with time in/out spreadsheet
    By amper in forum Excel General
    Replies: 2
    Last Post: 10-19-2006, 11:17 AM
  7. Trouble Opening Large Files
    By Skoal in forum Excel General
    Replies: 0
    Last Post: 05-06-2005, 11:15 AM

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