+ Reply to Thread
Results 1 to 2 of 2

Using a cell to form part of a filename

Hybrid View

  1. #1
    Registered User
    Join Date
    02-18-2005
    Posts
    6

    Using a cell to form part of a filename

    Hello,

    I have the following formula which references an external worksheet

    ='H:\Area 14\Natalie\Daily Figures\[DF A14 - 0539.xls]Daily Figures'!Q26

    What I would like to is have part of the worksheet filename made up from a value in a cell.

    e.g. If cell A1 had the value 0539 I would like that to replace the '0539' in the filename (DF A14 - 0539.xls) with the cell reference so that I can change this value on the fly for a number of similar formulas.

    Would this need to be done in code?

    Any help would be appreciated as I have tried and tried without success.

    Excel97 on Win98.

    Many thanks,
    Anth

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =INDIRECT("'H:\Area 14\Natalie\Daily Figures\[DF A14 - "&A1&".xls]Daily Figures'!Q26")

    Hope this helps!

+ 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