+ Reply to Thread
Results 1 to 6 of 6

Indirect/Vlookup - Using a Cell reference to lookup the Array

Hybrid View

  1. #1
    Registered User
    Join Date
    02-25-2022
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    9

    Indirect/Vlookup - Using a Cell reference to lookup the Array

    Good Afternoon,

    I have a question which i have been searching the web with sadly no luck yet.

    When using Indirect within a Vlookup i want to use a dropdown to search the array as i have data in multiple places.

    Currently this is what i have;

    =Vlookup(A1,INDIRECT("'"A2"'&!"I2"),3,false)

    Within the Cell I2 is the array Range - A2:G10

    However i'm getting a REF Error

    Thanking you in Advance

    Alex

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Indirect/Vlookup - Using a Cell reference to lookup the Array

    Do you have the sheet name in I2? If so, you have the text string the wrong way round in the INDIRECT function. If not, then what does I2 contain?

    Pete

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,463

    Re: Indirect/Vlookup - Using a Cell reference to lookup the Array

    Sorry, I misread your post. If A2 contains the sheet name, then your formula should be:

    =Vlookup(A1,INDIRECT("'"&A2&"'!"&I2),3,false)

    Hope this helps.

    Pete

  4. #4
    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: Indirect/Vlookup - Using a Cell reference to lookup the Array

    Try this:

    =VLOOKUP(A1,INDIRECT("'"&A2&"'!"&I2),3,FALSE)

    next time... read the yellow banner (top) and provide us with a sample sheet. That removes ambiguity.
    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

  5. #5
    Registered User
    Join Date
    02-25-2022
    Location
    London
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Indirect/Vlookup - Using a Cell reference to lookup the Array

    Guys - Thank you so much for your help and apologies next time i'll upload a sample sheet (First Time Caller)

  6. #6
    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: Indirect/Vlookup - Using a Cell reference to lookup the Array

    No need to apologise!! You're new.

    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 select "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. [SOLVED] unable to use offset or indirect in array with non-numerical cell reference
    By NooobV in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-04-2018, 06:09 AM
  2. [SOLVED] Including spaces in cell lookup/INDIRECT reference
    By Crawfy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-09-2018, 05:01 AM
  3. [SOLVED] lookup another workbook based on a cell value...indirect or vlookup
    By ammartino44 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2014, 07:54 PM
  4. Replies: 3
    Last Post: 08-13-2012, 11:44 AM
  5. Excel 2007 : Vlookup - Table Array as a cell reference?
    By benoj2005 in forum Excel General
    Replies: 2
    Last Post: 03-21-2012, 12:02 PM
  6. Reference a Cell for Tab name in VLOOKUP Table Array
    By gabem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2009, 02:15 PM
  7. [SOLVED] VLOOKUP keeping array lookup reference
    By rebdk in forum Excel General
    Replies: 3
    Last Post: 07-04-2006, 03:50 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