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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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
Back
Top