+ Reply to Thread
Results 1 to 4 of 4

Referencing Sheets with Sheet Name in a cell

  1. #1
    Registered User
    Join Date
    05-15-2022
    Location
    Australia
    MS-Off Ver
    Microsoft 360
    Posts
    2

    Smile Referencing Sheets with Sheet Name in a cell

    Hi All,
    I am wanting to reference A column in the balancing sheet of the workbook attached in the formula in column C rather than going into each individual sheet to reference the data required.
    Thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Referencing Sheets with Sheet Name in a cell

    a number of reasons why this isn't good practice, but I think this is the formula you are looking for:

    =VLOOKUP(B6, INDIRECT(A6 & "!A4:B6" ),2,FALSE)
    <<< If you have valued anyone's contributions in this thread, please click * to thank them for their efforts

  3. #3
    Registered User
    Join Date
    05-15-2022
    Location
    Australia
    MS-Off Ver
    Microsoft 360
    Posts
    2

    Re: Referencing Sheets with Sheet Name in a cell

    Thank you for your help that is working. What would your recommendation be rather than using this?

  4. #4
    Valued Forum Contributor
    Join Date
    01-07-2022
    Location
    Europe
    MS-Off Ver
    Office 365
    Posts
    473

    Re: Referencing Sheets with Sheet Name in a cell

    Great, happy to hear it works.

    The main reasons it's not ideal is:
    - If you add extra data rows, you would need to change "A4:B6" in each individual formula
    - It's not transparent, as you can't Trace Dependents
    - It will break if any of the names have a space [you need to modify the formula to =VLOOKUP(B6, INDIRECT("'"& A6 & "'!A4:B6" ),2,FALSE) ]
    - If you change any of the worksheet names, or the employee names in cells A6:A8 it won't work
    - It is slow (only noticeable if using a very large dataset)

    My recommendation would be to either
    - consider restructuring the workbook so that the data for all employees are in the same worksheet; or
    - keeping the same structure but using PowerQuery to compile the data https://trumpexcel.com/combine-multiple-worksheets/

+ 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. Replies: 5
    Last Post: 06-30-2020, 02:16 AM
  2. Referencing a sheets contents within a sheet
    By thatbigkid in forum Excel General
    Replies: 4
    Last Post: 07-21-2014, 11:58 AM
  3. Replies: 4
    Last Post: 06-13-2014, 01:20 PM
  4. Referencing to charts outside of sheets (the chart is the sheet itself)
    By Joaoack in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-25-2013, 10:28 PM
  5. Replies: 0
    Last Post: 01-09-2013, 06:58 AM
  6. Replies: 3
    Last Post: 05-09-2012, 12:59 PM
  7. Replies: 5
    Last Post: 03-14-2012, 12:42 PM

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