ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Variables in URL formula help (https://www.excelbanter.com/excel-programming/389036-variables-url-formula-help.html)

teepee[_2_]

Variables in URL formula help
 

Can anyone help me solve a simple but annoying problem?

I have a formula that links to a URL

='http://www.domain.com/18 Apr 2007/[results.xls]results'!$D$2

which gives back the value 3 (as it should)

Now I want to draw 18 Apr 2007 from a cell value found in an open file
called reference.xls.

So I tried

="'http://www.domain.com/" &'[reference.xls]sheet1'!$A$53
&"/[results.xls]results'!$D$2"

but it just shows the words

'http://www.domain.com/18 Apr 2007/[results.xls]results'!$D$2

instead of the value

Can anyone tell me the right syntax please?

many thanks

tp





cory

Variables in URL formula help
 
Try this:
=HYPERLINK("'http://www.domain.com/" &'[reference.xls]sheet1'!$A$53
&"/[results.xls]results'!$D$2","Link Text")

-Cory

"teepee" wrote:


Can anyone help me solve a simple but annoying problem?

I have a formula that links to a URL

='http://www.domain.com/18 Apr 2007/[results.xls]results'!$D$2

which gives back the value 3 (as it should)

Now I want to draw 18 Apr 2007 from a cell value found in an open file
called reference.xls.

So I tried

="'http://www.domain.com/" &'[reference.xls]sheet1'!$A$53
&"/[results.xls]results'!$D$2"

but it just shows the words

'http://www.domain.com/18 Apr 2007/[results.xls]results'!$D$2

instead of the value

Can anyone tell me the right syntax please?

many thanks

tp






David Biddulph[_2_]

Variables in URL formula help
 
Look at help for the INDIRECT() function.
--
David Biddulph

"teepee" wrote in message
...

Can anyone help me solve a simple but annoying problem?

I have a formula that links to a URL

='http://www.domain.com/18 Apr 2007/[results.xls]results'!$D$2

which gives back the value 3 (as it should)

Now I want to draw 18 Apr 2007 from a cell value found in an open file
called reference.xls.

So I tried

="'http://www.domain.com/" &'[reference.xls]sheet1'!$A$53
&"/[results.xls]results'!$D$2"

but it just shows the words

'http://www.domain.com/18 Apr 2007/[results.xls]results'!$D$2

instead of the value

Can anyone tell me the right syntax please?

many thanks

tp







teepee[_2_]

Variables in URL formula help
 

"Cory" wrote in message
...
Try this:
=HYPERLINK("'http://www.domain.com/" &'[reference.xls]sheet1'!$A$53
&"/[results.xls]results'!$D$2","Link Text")

-Cory

Thanks for trying
Unfortunately that displays a hyperlink rather than the actual value



teepee[_2_]

Variables in URL formula help
 

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Look at help for the INDIRECT() function.


That worked - many thanks David




All times are GMT +1. The time now is 09:06 PM.

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