+ Reply to Thread
Results 1 to 2 of 2

Is there a way to cell value in a formula that leads to a different file path?

  1. #1
    Registered User
    Join Date
    04-21-2011
    Location
    Boston
    MS-Off Ver
    Excel 2010
    Posts
    61

    Is there a way to cell value in a formula that leads to a different file path?

    Hi,

    I am working on a template that has formulas that calculate values from other worksheets and am wondering if there is an easier way to do what I am trying to do.


    Basically this is a weekly report that has formulas that calculate numbers from spreadsheets from the week before.

    The formulas contain file names like the example below:

    'C:\Project\Reports[Report 10.01.12]Sheet 1'!A:A...


    Each file name is the same "Report" and a date after it. So, 10.01.12 ; 10.08.12 ; etc..


    Is there a way to make the file path part of a formula so that it looks at a cell within the spreadsheet to pick up the date?
    Say cell A1 has the date 10.01.12 is there a way to define the file path by looking up part of the path by a cell in the active spreadsheet?

    I am not sure if its possible or not but any suggestions are appreciated.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Is there a way to cell value in a formula that leads to a different file path?

    Look at using the indirect function to notify the formula to look at a cell in a spreadsheet for the date part of the forumula.

    Look at this.

    http://www.techonthenet.com/excel/formulas/indirect.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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