+ Reply to Thread
Results 1 to 4 of 4

Dynamic Link to various sheets

  1. #1
    Registered User
    Join Date
    01-11-2022
    Location
    Sydney
    MS-Off Ver
    Home Office 2021
    Posts
    2

    Dynamic Link to various sheets

    I have a spreadsheet that I use to calculate wages from timesheet values that I drop into a new sheet every week. (See attached Workbook). The first sheet is where I the wages calculation occurs which draws its Hours info from the sheets named Jan1, Jan2, etc. At the top of the WagesCalc sheet is a reference to the various time sheets, ordinarily I would use the VLOOKUP to match each employee to the previous weeks times however this only allows for one sheet at a time and I have to rewrite the VLOOKUP formula to link it to the other previous spreadsheets. Is there a way that I can dynamically link the sheets by just typing the sheet name (B1 on the WagesCalc sheet) so that the VLOOKUP formula changes when I change the reference to a sheet in B1?
    Attached Files Attached Files

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

    Re: Dynamic Link to various sheets

    You can use this formula in D4:

    =VLOOKUP(A4,INDIRECT("'"&$B$1&"'!$A$2:$G$5"),4,FALSE)

    then when you change the tab name in cell B1 the formula will automatically adjust.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-11-2022
    Location
    Sydney
    MS-Off Ver
    Home Office 2021
    Posts
    2

    Re: Dynamic Link to various sheets

    Yes that works well, Thanks :-))))

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

    Re: Dynamic Link to various sheets

    You're welcome - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Dynamic link to cell for ThisWorkbook.Sheets fucntion
    By RJT.123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2020, 06:57 AM
  2. [SOLVED] Clear dynamic named sheet, compare cells from 2 sheets, copy all matched rows to dynamic s
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-15-2015, 12:31 PM
  3. Replies: 1
    Last Post: 05-17-2014, 03:30 PM
  4. Excel 2007 : Dynamic Link
    By gth847x in forum Excel General
    Replies: 0
    Last Post: 05-20-2011, 12:22 PM
  5. Dynamic Link
    By mxcaocao in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2008, 02:44 PM
  6. link to dynamic tab
    By icupat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2007, 09:19 AM
  7. Dynamic Link
    By CPGUY33 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2006, 12:30 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