Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Insert cell value into a link path

This may not be the most efficient way to do this, but here's what I'm
trying to do. I have the following link in B3:
='D:\data\Upgrades\Reports\060801\[Down.xls]Upgrade Time Per
Agency2'!$C$3

What I have in B4 is the =TODAY() formula and I have it formatted as
060801 (August 1st, 2006). What I want to do is be able to have the
link in B3 contain the value in B4 so that it's dynamic. I can change
B4 to whatever and it would give me the new data. It would be
something like (but this doesn't work obviously):

='D:\data\Upgrades\Reports\$B$4\[Down.xls]Upgrade Time Per
Agency2'!$C$3

How can I put in the cell reference here? I haven't been able to find
anything. I've tried putting it in single quotes, double quotes, and
just by itself.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Insert cell value into a link path

krisue,

You will have to use the INDIRECT function it will be something like this:

=INDIRECT("='D:\data\Upgrades\Reports\" & $B$4 & "\[Down.xls]Upgrade Time Per Agency2'!$C$3")

You may also have to wrap the B4 cell reference in the TEXT function (or something similar) like this:

=INDIRECT("='D:\data\Upgrades\Reports\" & TEXT($B$4) & "\[Down.xls]Upgrade Time Per Agency2'!$C$3")

I don't recall if by using the INDIRECT function if you will need the "=" sign inside the quotes, so you might try these as well:

=INDIRECT("'D:\data\Upgrades\Reports\" & $B$4 & "\[Down.xls]Upgrade Time Per Agency2'!$C$3")
=INDIRECT("'D:\data\Upgrades\Reports\" & TEXT($B$4) & "\[Down.xls]Upgrade Time Per Agency2'!$C$3")

I hope this helps,

Conan Kelly



wrote in message oups.com...
This may not be the most efficient way to do this, but here's what I'm
trying to do. I have the following link in B3:
='D:\data\Upgrades\Reports\060801\[Down.xls]Upgrade Time Per
Agency2'!$C$3

What I have in B4 is the =TODAY() formula and I have it formatted as
060801 (August 1st, 2006). What I want to do is be able to have the
link in B3 contain the value in B4 so that it's dynamic. I can change
B4 to whatever and it would give me the new data. It would be
something like (but this doesn't work obviously):

='D:\data\Upgrades\Reports\$B$4\[Down.xls]Upgrade Time Per
Agency2'!$C$3

How can I put in the cell reference here? I haven't been able to find
anything. I've tried putting it in single quotes, double quotes, and
just by itself.

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Insert cell value into a link path


Conan Kelly wrote:
krisue,

You will have to use the INDIRECT function it will be something like this:

=INDIRECT("='D:\data\Upgrades\Reports\" & $B$4 & "\[Down.xls]Upgrade Time Per Agency2'!$C$3")

You may also have to wrap the B4 cell reference in the TEXT function (or something similar) like this:

=INDIRECT("='D:\data\Upgrades\Reports\" & TEXT($B$4) & "\[Down.xls]Upgrade Time Per Agency2'!$C$3")

I don't recall if by using the INDIRECT function if you will need the "=" sign inside the quotes, so you might try these as well:

=INDIRECT("'D:\data\Upgrades\Reports\" & $B$4 & "\[Down.xls]Upgrade Time Per Agency2'!$C$3")
=INDIRECT("'D:\data\Upgrades\Reports\" & TEXT($B$4) & "\[Down.xls]Upgrade Time Per Agency2'!$C$3")

I hope this helps,

Conan Kelly



wrote in message oups.com...
This may not be the most efficient way to do this, but here's what I'm
trying to do. I have the following link in B3:
='D:\data\Upgrades\Reports\060801\[Down.xls]Upgrade Time Per
Agency2'!$C$3

What I have in B4 is the =TODAY() formula and I have it formatted as
060801 (August 1st, 2006). What I want to do is be able to have the
link in B3 contain the value in B4 so that it's dynamic. I can change
B4 to whatever and it would give me the new data. It would be
something like (but this doesn't work obviously):

='D:\data\Upgrades\Reports\$B$4\[Down.xls]Upgrade Time Per
Agency2'!$C$3

How can I put in the cell reference here? I haven't been able to find
anything. I've tried putting it in single quotes, double quotes, and
just by itself.

Thanks.



Thanks Conan. I found what I was looking for. But the TEXT option
will work well. I was going to reference another cell that had
TEXT(B4).

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert the path and filename into cell in excel 2002 fuzzylinux Excel Discussion (Misc queries) 2 June 4th 08 09:24 PM
Using UNC path instead of URL to link cell to PDF file Francisco Excel Worksheet Functions 2 May 24th 07 10:30 PM
Link malfunction-shows path instead of cell content Twishlist Excel Worksheet Functions 4 May 23rd 07 03:09 AM
Link a cell to another workbook with a different path Jai Excel Worksheet Functions 3 August 1st 05 02:05 AM
Insert cell into link Micayla Bergen Excel Discussion (Misc queries) 7 May 9th 05 01:50 AM


All times are GMT +1. The time now is 11:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"