ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Calculated Formula (https://www.excelbanter.com/excel-programming/302287-calculated-formula.html)

AL

Calculated Formula
 
I'd like to calculate a formula based on date values in
column A. My final formula should read something like
this ='c:\02-05-04\[test.xls]sheet1'!b7

(02-05-04 is in cell a1)
And it should link to a value referenced by the formula.

Can this be done? Thanks in advance.

Jim Rech

Calculated Formula
 
Assuming the entry in A1 is a date perhaps:

Range("A2").Formula = "='c:\" & Format(Range("A1").Value, "m-d-yy") &
"\[test.xls]sheet1'!b7"



--
Jim Rech
Excel MVP
"Al" wrote in message
...
| I'd like to calculate a formula based on date values in
| column A. My final formula should read something like
| this ='c:\02-05-04\[test.xls]sheet1'!b7
|
| (02-05-04 is in cell a1)
| And it should link to a value referenced by the formula.
|
| Can this be done? Thanks in advance.




All times are GMT +1. The time now is 12:22 AM.

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