+ Reply to Thread
Results 1 to 6 of 6

Indirect function within Vlookup

  1. #1
    Registered User
    Join Date
    04-21-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Indirect function within Vlookup

    Hello one and all!

    I have the following issue:
    I have 2 spreadsheets. 1 Master and 1 Slave.
    The slave has a number of worksheets containing sets of data.

    The Master collects all this data.

    I am using the following formula.

    =IF(ISBLANK(VLOOKUP($J97,[Raw.xls]ELTO!$A$2:$R$99,12,FALSE)),"",VLOOKUP($J97,[Raw.xls]ELTO!$A$2:$R$99,12,FALSE))

    Where RAW.xls is the slave file holding all the data. (ELTO is the worksheet name)
    J97 is the reference cell , and holds data such as Project A, B, C

    Now if within the Master file, column I had the word ELTO or something else, hwo do i incorporate this within the formulsa?
    The next worksheet I want to use is called Morizz, and so on.

    I know I have to sue INDIRECT but unsure where.


    Help!


    Thanks!
    Last edited by garethjohn; 05-25-2011 at 08:34 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Indirect function within Vlookup

    Try

    =IF(ISBLANK(VLOOKUP($J97,INDIRECT("[Raw.xls]"&$I97&"!$A$2:$R$99"),12,FALSE)),"",
    VLOOKUP($J97,INDIRECT("[Raw.xls]"&$I97&"!$A$2:$R$99"),12,FALSE))

  3. #3
    Registered User
    Join Date
    04-21-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Indirect function within Vlookup

    Hi Bob
    Thanks


    its not working. I beleive there is an issue with the second RAW.xls

    I am using the following:

    =IF(ISBLANK(VLOOKUP($J115,indirect("[Raw.xls]"&$I115&"!$A$2:$R$99),15,FALSE)),"",VLOOKUP($J115,indirect("[Raw.xls]"&$I115&"!$A$2:$R$99),15,FALSE))

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Indirect function within Vlookup

    In case some of the sheetnames include spaces, it is always safer to include single quotes...

    eg.


    =IF(ISBLANK(VLOOKUP($J97,INDIRECT("'[Raw.xls]"&$I97&"'!$A$2:$R$99"),12,FALSE)),"",VLOOKUP($J97,INDIRECT("'[Raw.xls]"&$I97&"'!$A$2:$R$99"),12,FALSE))

    Also, note that INDIRECT does not work with closed source workbooks.

    You will need INDIRECT.EXT after installing addin from here: Morefunc.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Registered User
    Join Date
    04-21-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Indirect function within Vlookup

    Ah
    it works now I missed the "

    also, if the worksheet is two words, then this wont work. but I can manage that!

    thank you!!

  6. #6
    Registered User
    Join Date
    04-21-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Indirect function within Vlookup

    Thank you one and all

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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