+ Reply to Thread
Results 1 to 3 of 3

Using Cell Value for VLOOKUP Table Array

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Belfast, N. Ireland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Exclamation Using Cell Value for VLOOKUP Table Array

    Hi Wizards,

    I have a spreadsheet with 51 worksheets - a "Master" worksheet and 50 datasheets (labelled 1-50). Within the "Master" worksheet the first column has numerical values ranging from 1-50.

    One of the columns in the "Master" worksheet is a VLOOKUP that is trying to pull data, of which the table array is dependent upon the value in the first column. For example:

    If cell A2 has the number 1 the VLOOKUP would be:
    =VLOOKUP(E2,'1'!$A:$E,3,0)

    If cell A2 had the number 2 the VLOOKUP would be:
    =VLOOKUP(E2,'2'!$A:$E,3,0)

    If cell A2 had the number 3 the VLOOKUP would be:
    =VLOOKUP(E2,'3'!$A:$E,3,0)

    etc.

    Any advice much appreciated. Tried nesting an INDIRECT function with the VLOOKUP but it didn't work.

    Thanks in advance.

    Kyle

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Using Cell Value for VLOOKUP Table Array

    Have you tried something like:
    =INDEX(INDIRECT("'"&A2&"'!C:C"),MATCH(E2,INDIRECT("'"&A2&"'!A:A"),0))

  3. #3
    Registered User
    Join Date
    04-03-2014
    Location
    Belfast, N. Ireland
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Using Cell Value for VLOOKUP Table Array

    This is why you are a "Valued Forum Contributor" - your formula works a treat.

    Thanks from Ireland.

    Kyle

+ 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. vlookup table array until the very last cell with value
    By cgaisano in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-17-2013, 02:39 AM
  2. Replies: 0
    Last Post: 01-23-2012, 05:16 PM
  3. Using VLOOKUP with cell data for table array
    By bkrampe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2011, 02:05 PM
  4. Replies: 2
    Last Post: 02-23-2011, 07:24 AM
  5. VLOOKUP where a cell specifies the table array
    By Hall in forum Excel General
    Replies: 2
    Last Post: 02-23-2006, 09:35 AM

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