ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Using parameters to use different source files dependant on the date. (https://www.excelbanter.com/excel-discussion-misc-queries/70295-using-parameters-use-different-source-files-dependant-date.html)

stuckupnorth

Using parameters to use different source files dependant on the date.
 

I am creating excel worksheets using webtrends. I am trying to get this
information into a monthly update report excel spreadsheet with a new
row of information for each month. This would all work fine if I could
state the source file as filename "-todaysdate-".
I have tried =('e:\reports\monthly\[%yyyy%mm%dd%.XLS]sheet1'!C21)
This does not work...
Once linked to a source file the formula changes to point to that
specific file. Can anyone please help me. I'm sure its possible somehow
and its driving me insane.


--
stuckupnorth
------------------------------------------------------------------------
stuckupnorth's Profile: http://www.excelforum.com/member.php...o&userid=31330
View this thread: http://www.excelforum.com/showthread...hreadid=510129


pinmaster

Using parameters to use different source files dependant on the date.
 

Try:

=INDIRECT("'e:\reports\monthly\["&TEXT(TODAY(),"yyyymmdd")&".XLS]sheet1'!C21")

you may need to adjust the date format.

HTH
Jean-Guy


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=510129



All times are GMT +1. The time now is 04:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com