+ Reply to Thread
Results 1 to 5 of 5

How to use INDIRECT and XLOOKUP in a formula in order to fetch a value from DIFFERENT work

  1. #1
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    How to use INDIRECT and XLOOKUP in a formula in order to fetch a value from DIFFERENT work

    In the main WS I want to use the list of WS names in C3:C6 to find the correct numbers in AR3:AR6
    So hatever name I am keying in B11, the correct path is worked out, and the values in that particular WS is shown in C11.

    Se attached WB

    B5 is the lookup value (Barbare Gordon)
    B3:B6 is the search cloumn (Potatoes)
    C3:C6 is the name of the WS (Potatoes!)
    AR3:AR6 is the range in any of those WS's where the wanted values lies.
    So ... when cell B11 in the main WS contains a tekst string, I want to go to a certain one of those other WS and fetch the correct value from that WS's AR3:All

    I tried almost everything, but not the correct method it seems.
    All combinations with the use of qoutationmarks and ampersands, I guess ...
    Nothing works, so far.

    Anyone have an idea of what I'm doing wrong?
    Attached Files Attached Files

  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 2403
    Posts
    44,101

    Re: How to use INDIRECT and XLOOKUP in a formula in order to fetch a value from DIFFERENT

    Try:

    =IFERROR(VLOOKUP(B11,INDIRECT("'"&C11&"'!B1:AR100"),43,FALSE),"Not Found")

    Please note C11 was altered, too. The females do not exist on any of the source sheets.
    Attached Files Attached Files
    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 Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: How to use INDIRECT and XLOOKUP in a formula in order to fetch a value from DIFFERENT

    Use this formula in D12:

    =INDIRECT("'"&VLOOKUP($B11,$B$3:$C$6,2,0)&"'!AR"&COLUMNS($A:D)-1)

    copy across into E12:G12.

    You may need to use semicolons ( ; ) instead of commas ( , ) in the formulae.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    08-30-2015
    Location
    Tresfjord, Norway
    MS-Off Ver
    365
    Posts
    169

    Re: How to use INDIRECT and XLOOKUP in a formula in order to fetch a value from DIFFERENT

    Thank you guys ...
    With your help I managed to get it to work, and customize the formula completely to my needs.


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

    Re: How to use INDIRECT and XLOOKUP in a formula in order to fetch a value from DIFFERENT

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Using Indirect Function + Xlookup + 2 Criteria!!!???
    By Lacany in forum Excel General
    Replies: 14
    Last Post: 03-17-2023, 10:10 AM
  2. [SOLVED] XLOOKUP using INDIRECT with named range to search across multiple dynamic sheets
    By MangoFresh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2022, 11:24 AM
  3. SUM(INDIRECT.. error - VBA solution required
    By sdingman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-22-2020, 03:24 AM
  4. I'm having a problem getting my =SUM(INDIRECT formula to work
    By sdingman in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-22-2020, 03:24 AM
  5. [SOLVED] INDIRECT Formula used to work but now it isn't..
    By Knovar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2019, 04:16 AM
  6. Open Word Work Order Template with excel generated work order #
    By Tivka in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2012, 02:24 PM
  7. Use of Indirect function to fetch data from another Excel file
    By Boon8888 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-20-2006, 03:50 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