+ Reply to Thread
Results 1 to 2 of 2

Thread: Indirect to refer to a different workbook?

  1. #1
    Registered User
    Join Date
    07-19-2010
    Location
    Virginia, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Indirect to refer to a different workbook?

    I have the following formula:

    ='C:\TEST\Reports\2010\[Test Ratios.xlsx]Sheet1'!Y7

    Is there a way that I can write this same formula, but for the year, have it refer to a particular cell that contains a year?
    For example, let's say that cell A1 contains the year (in this case, "2010"). Is there a way to get the desired result but referece the year portion dynamically by referring to cell A1.

    One idea was to use INDIRECT.

    =INDIRECT("'C:\TEST\Reports\" & A1 & "\[Test Ratios.xlsx]Sheet1'!Y7"

    This doesn't seem to work. Additionally, I need to keep Sheet1'!Y7 out of the quotes so that the cell reference will adjust as it is copied and pasted to other cells.

    Any ideas?

    Thanks,
    Paul

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Indirect to refer to a different workbook?

    INDIRECT doesn't work with closed workbooks... you would need to download and install a free addin from here: Morefunc and use INDIRECT.EXT instead.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ 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.2.0