Creating a link from cell values

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to streamline a database like spreadsheet.
In my worksheet each cell in successive rows in a column, references a
different file depending on date in another column. All the linked paths and
file names are the same with the exception of the date in the name. Is there
a way to change the filename using the contents of the date cells on my
worksheet.

Dates: A2:A100
Linked Cells: B2:B100 (I would like each link to reference the date in
adjscent cell)

i.e. If the date in Cell A3 shows April 30, 2006, this date will be in the
path as shown below.

'C:\Reports\Trial Balances\[Trial Balance "yyyy-m-dd".xls].

Can this be done?

Any help is greatly appreciated.

Cappster
 
use concatenation by joining fragments of text and formulas
="'C:\Reports\Trial Balances\[Trial Balanc
"&text(A3,"yyy-m-dd")&.xls]
 
You can try with HYPERLINK and TEXT, something like this:
=HYPERLINK("file://C:\Reports\Trial Balances\[Trial Balance " &
TEXT(A3,"yyyy-m-dd") & ".xls]")
You can add a descriptive name if you like it better, as the second
parameter of HYPERLINK.

Hope this helps,
Miguel.
 
This is what I have put in.

='C:\Reports\Trial Balances\["Trial Balance
"&text(A13,"yyyy-m-d")&.xls]100'!$A$9

I get #REF!

Is there something I am overlooking?

Miguel Zapico said:
You can try with HYPERLINK and TEXT, something like this:
=HYPERLINK("file://C:\Reports\Trial Balances\[Trial Balance " &
TEXT(A3,"yyyy-m-dd") & ".xls]")
You can add a descriptive name if you like it better, as the second
parameter of HYPERLINK.

Hope this helps,
Miguel.

Capp said:
I am trying to streamline a database like spreadsheet.
In my worksheet each cell in successive rows in a column, references a
different file depending on date in another column. All the linked paths and
file names are the same with the exception of the date in the name. Is there
a way to change the filename using the contents of the date cells on my
worksheet.

Dates: A2:A100
Linked Cells: B2:B100 (I would like each link to reference the date in
adjscent cell)

i.e. If the date in Cell A3 shows April 30, 2006, this date will be in the
path as shown below.

'C:\Reports\Trial Balances\[Trial Balance "yyyy-m-dd".xls].

Can this be done?

Any help is greatly appreciated.

Cappster
 
It is because of the punctuaction. Try this version of your formula:
="'C:\Reports\Trial Balances\[""Trial
Balance"""&TEXT(A13,"yyyy-m-d")&".xls]100'!$A$9"

Miguel.

Capp said:
This is what I have put in.

='C:\Reports\Trial Balances\["Trial Balance
"&text(A13,"yyyy-m-d")&.xls]100'!$A$9

I get #REF!

Is there something I am overlooking?

Miguel Zapico said:
You can try with HYPERLINK and TEXT, something like this:
=HYPERLINK("file://C:\Reports\Trial Balances\[Trial Balance " &
TEXT(A3,"yyyy-m-dd") & ".xls]")
You can add a descriptive name if you like it better, as the second
parameter of HYPERLINK.

Hope this helps,
Miguel.

Capp said:
I am trying to streamline a database like spreadsheet.
In my worksheet each cell in successive rows in a column, references a
different file depending on date in another column. All the linked paths and
file names are the same with the exception of the date in the name. Is there
a way to change the filename using the contents of the date cells on my
worksheet.

Dates: A2:A100
Linked Cells: B2:B100 (I would like each link to reference the date in
adjscent cell)

i.e. If the date in Cell A3 shows April 30, 2006, this date will be in the
path as shown below.

'C:\Reports\Trial Balances\[Trial Balance "yyyy-m-dd".xls].

Can this be done?

Any help is greatly appreciated.

Cappster
 
use the indirect function
=indirect() putting that lot inside the brackets

somethinglikeant
 
Thanks for sticking with this problem. Your time is very much appreciated!

However, with this formula you gave me, the formula just shows up as the
value. Are the quotes at the beginning and end doing this? When I take the
first and last quotes out I get the same reference error as before?

='C:\Reports\Trial Balances\[""Trial
Balance"""&TEXT(A14,"yyyy-m-d")&".xls]100'!$A$9




Miguel Zapico said:
It is because of the punctuaction. Try this version of your formula:
="'C:\Reports\Trial Balances\[""Trial
Balance"""&TEXT(A13,"yyyy-m-d")&".xls]100'!$A$9"

Miguel.

Capp said:
This is what I have put in.

='C:\Reports\Trial Balances\["Trial Balance
"&text(A13,"yyyy-m-d")&.xls]100'!$A$9

I get #REF!

Is there something I am overlooking?

Miguel Zapico said:
You can try with HYPERLINK and TEXT, something like this:
=HYPERLINK("file://C:\Reports\Trial Balances\[Trial Balance " &
TEXT(A3,"yyyy-m-dd") & ".xls]")
You can add a descriptive name if you like it better, as the second
parameter of HYPERLINK.

Hope this helps,
Miguel.

:

I am trying to streamline a database like spreadsheet.
In my worksheet each cell in successive rows in a column, references a
different file depending on date in another column. All the linked paths and
file names are the same with the exception of the date in the name. Is there
a way to change the filename using the contents of the date cells on my
worksheet.

Dates: A2:A100
Linked Cells: B2:B100 (I would like each link to reference the date in
adjscent cell)

i.e. If the date in Cell A3 shows April 30, 2006, this date will be in the
path as shown below.

'C:\Reports\Trial Balances\[Trial Balance "yyyy-m-dd".xls].

Can this be done?

Any help is greatly appreciated.

Cappster
 
Yes.

Harlan Grove wrote a UDF called PULL that will retrieve the value from a closed
workbook.

You can find the function at Harlan's FTP site:
ftp://members.aol.com/hrlngrv/
Look for pull.zip

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.
 
Back
Top