Dynamic reference to file names

orit

New Member
Joined
Oct 31, 2004
Messages
44
I'm storing files on a defined pattern, for example:
D:\Project\date\test_date.xls
The "D:\Project\" part of the path is set, then the file will be saved in a folder which will be named according the date it was saved, for example: "061003" for October 3rd 2006 (the format of the date doesn't matter), then the file name will be built from a set string, for example: "test_" and following that the file date, so the file path and name today will be: D:\Project\061003\test_061003.xls.
I want to create link to different files dynamically, using the date as variant. How can I do that?

Thanks a lot
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

erik.van.geit

MrExcel MVP
Joined
Feb 1, 2003
Messages
17,832
Hi,

do you mean a hyperlink
take a look then in the helpfiles for that function

  A           B            
1 D:\Project\ 061003       
2 test_       test_061003  
3 file_       file_061003  
4                          
5 other_      other_061003 

test

[Table-It] version 06 by Erik Van Geit
Code:
RANGE FORMULA (1st cell)
B2:B5 =IF(A2="","",HYPERLINK($A$1&$B$1&"\"&A2&$B$1&".xls",A2&$B$1))

[Table-It] version 06 by Erik Van Geit

kind regards,
Erik
 

Forum statistics

Threads
1,136,268
Messages
5,674,734
Members
419,523
Latest member
Urnovio

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top