+ Reply to Thread
Results 1 to 5 of 5

Reference to Different File - Multiple Tabs

Hybrid View

  1. #1
    Registered User
    Join Date
    06-19-2009
    Location
    Maryland, United States
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    8

    Reference to Different File - Multiple Tabs

    Hi,

    I have often to these boards in search for answers to make my use of Excel more efficient. So before I even ask anything, I really wanted to thank everyone who contributes their time and effort into resolving the questions posted here. They help not just the authors but also, im sure, many strollers like myself.

    Question: I am trying to link to a different workbook, which has multiple tabs. However, I would love to drag the formula down and have it automatically adjust the name of tab. These tabs are sequentially named.

    ='[DifferentFile.xls]Sheet 1'!$F$402

    How do I change Sheet 1 to Sheet 2, Sheet 3, Sheet 4, etc. without having to manually type it in?

    Thank you once again.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Reference to Different File - Multiple Tabs

    You'd have to use the indirect function, which would not work if the referenced workbook were closed, and compute the sheet number. Something like

    =INDIRECT("'[DifferentFile.xls]Sheet " & ROW() & "'!$F$402")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-19-2009
    Location
    Maryland, United States
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    8

    Re: Reference to Different File - Multiple Tabs

    What does it mean to have a closed workbook?

    That formula, modified appropriately, results in #REF!

  4. #4
    Registered User
    Join Date
    06-19-2009
    Location
    Maryland, United States
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    8

    Re: Reference to Different File - Multiple Tabs

    Formula works! I was including an extra, unnecessary space.

    Thank you! You just saved my torturous life haha..

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Reference to Different File - Multiple Tabs

    You're welcome. Would you please mark the thread as Solved?

+ 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