+ Reply to Thread
Results 1 to 8 of 8

Need to refer a cell having range of another workbook in table array of vlook up function

  1. #1
    Registered User
    Join Date
    08-07-2014
    Location
    michigan
    MS-Off Ver
    2013
    Posts
    5

    Need to refer a cell having range of another workbook in table array of vlook up function

    I am working on a assignment in which I need to vlookup the details from another worksheet (X). And this worksheet(X) updates every other week. So, I want to set a cell(Y) which would refer this sheet (X) always. Then I want to use this cell (Y) as my table array range to determine the values.

    Attached is the sheet,

    I want to use cell A1 for my vlookup function in D4.

    Any help would be highly appreciated.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need to refer a cell having range of another workbook in table array of vlook up funct

    There is no attachment to reference.

    See if you can adapt this.

    A1: Sheet2!A2:B100

    =VLOOKUP(D4,INDIRECT(A1),2,0)

    Which evaluates to:

    =VLOOKUP(D4,Sheet2!$A$2:$B$100,2,0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    08-07-2014
    Location
    michigan
    MS-Off Ver
    2013
    Posts
    5

    Re: Need to refer a cell having range of another workbook in table array of vlook up funct

    I am sorry for not having the attachment. I am trying but for some reason I am not able to upload it. Anyhow, I tried to use the function you suggested but it is giving the error as "#ref". I am selecting A1 cell and writing-- A1:!sheetX A1:Z567 and then selecting vlookup function in another column and then under table array I am putting "indirect(A1)".

    Response shall be highly appreciated.

    Thanks in advance.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need to refer a cell having range of another workbook in table array of vlook up funct

    Quote Originally Posted by joinashish View Post
    I am selecting A1 cell and writing-- A1:!sheetX A1:Z567
    Try it like this:

    sheetX!A1:Z567

  5. #5
    Registered User
    Join Date
    08-07-2014
    Location
    michigan
    MS-Off Ver
    2013
    Posts
    5

    Re: Need to refer a cell having range of another workbook in table array of vlook up funct

    Thanks for your reply. Now I am getting the error as "#Ref". While going through vlookup calculation, under table array result shows as "volatile".


    I would appreciate any help.

    Rgds

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need to refer a cell having range of another workbook in table array of vlook up funct

    What is the REAL sheet name that holds the lookup table?

  7. #7
    Registered User
    Join Date
    08-07-2014
    Location
    michigan
    MS-Off Ver
    2013
    Posts
    5

    Re: Need to refer a cell having range of another workbook in table array of vlook up funct

    Thanks for your response.

    Sheet name from which I am trying to lookup: [20140731 Rating File SB 001.xlsb]Ratings'!$A$7:$S$7867

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need to refer a cell having range of another workbook in table array of vlook up funct

    So, you're actually trying to link to another file.

    This won't work unless the source file is open.

+ 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] how to refer to a range instead of an array
    By shaz0503 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-19-2013, 12:43 PM
  2. VLOOK problem with multiple values in table array
    By Backroomgeeza in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2013, 08:49 AM
  3. [SOLVED] Vlook up when duplicate values in the array table and lookup column
    By vinodt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2012, 10:28 PM
  4. [SOLVED] Can a cell refer to range name/array of data previously set?
    By Courreges in forum Excel General
    Replies: 1
    Last Post: 06-12-2006, 09:50 AM
  5. syntax to refer to a range as an array?
    By david cassain in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-26-2005, 07:05 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