+ Reply to Thread
Results 1 to 2 of 2

Formula with cell reference in file path

  1. #1
    Registered User
    Join Date
    08-30-2010
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Formula with cell reference in file path

    I have a number of cells that pick up from another location e.g.
    =+H:\budget\period1\(accounts)sheet1'!$B$720

    I want to copy this forumla to pick up other periods (period2, period3 etc). I can do a find and replace but this is tedious. Is there a way to make the "period1" reference dynamic so I can pick this bit of the forumla up from another cell. Then I can create my "periodX" names in a single line and not have to go through the find/replace process?
    Last edited by Dave12cd; 08-30-2010 at 08:28 AM.

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

    Re: Formula with cell reference in file path

    You can do it with a function, but the native Excel function required the other workbook to be opened.

    =INDIRECT("'H:\budget\"&A1&"\[accounts.xls]sheet1'!$B$720")

    To do it with closed workbooks, you need to download and install a free adding from here: Morefunc

    and use: =INDIRECT.EXT("'H:\budget\"&A1&"\[accounts.xls]sheet1'!$B$720")
    Where there is a will there are many ways.

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

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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