+ Reply to Thread
Results 1 to 6 of 6

Will an INDIRECT formula combined with a VLOOKUP work?

  1. #1
    Registered User
    Join Date
    10-10-2013
    Location
    MARION, IL.
    MS-Off Ver
    Excel 2013
    Posts
    10

    Will an INDIRECT formula combined with a VLOOKUP work?

    Hello
    I have a workbook that has a master sheet and will have a sheet for each day of the year that will contain data.
    As you can see in the attached example, I have a "Master" sheet and on there I would like to look for a sheet that matches cell "B1" and then pulls from that sheet to match the Employee in "A2"

    The finished "Master" list will have a couple hundred employees and the sheets for each day may not contain all of the employees or be in the same order.

    I have used an INDIRECT formula to locate the sheet but when I try combining that with a VLOOKUP I cannot get it to work. Am I going about this the wrong way?
    Any assistance will be greatly appreciated. Thanks

    Master tracking example.xlsx
    Last edited by DRFJR; 12-30-2013 at 06:10 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Will an INDIRECT formula combined with a VLOOKUP work?

    B4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Copy down and across

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Will an INDIRECT formula combined with a VLOOKUP work?

    Sure, try this in B4 and filled right/down in the Master Sheet.


    =VLOOKUP($A4,INDIRECT("'"&B$3&"'!A:B"),2,FALSE)

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Will an INDIRECT formula combined with a VLOOKUP work?

    I note that you have been on the board since a solution was provided.

    I am interested to know if it resolved your problem.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    10-10-2013
    Location
    MARION, IL.
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Will an INDIRECT formula combined with a VLOOKUP work?

    Yes, it does what I need it to do. But now when I edit the file, it takes about 30 seconds for it to calculate the formulas after each edit. I had to switch it to manual calculation just so it didn't all day to make the changes. Is there a way around this?
    Thanks

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,462

    Re: Will an INDIRECT formula combined with a VLOOKUP work?

    So the original question is answered and solved? Suggest that you mark it so.

    Is there a way around this?
    New question ... new thread? The formulae provided are relatively instantaneous with the small sample provided. INDIRECT is a volatile function, so I guess the calculation time will pretty much depend on how many sheets, rows, columns and cells utilise such a formula.

    http://msdn.microsoft.com/en-us/libr.../bb687891.aspx

    Regards, TMS





    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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] Countifs,Indirect Function and Vlookup combined
    By Yari1986 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 11:19 AM
  2. [SOLVED] Combined INDEX and MATCH formula will not work - pls help!
    By Postlki1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2013, 08:03 AM
  3. IF and Vlookup formula combined
    By Nathalie1974 in forum Excel General
    Replies: 2
    Last Post: 02-06-2012, 02:03 PM
  4. Replies: 2
    Last Post: 10-30-2011, 05:15 PM
  5. Indirect formula combined with {} formula
    By hefonseca in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2008, 04:17 AM

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