Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 279
Default Avoiding auxiliary cells

Happy New Year to all readers.

I use Excel 2003.
I have a file containing a list of London station names.
I want to have it contain a list of hyperlinks to Wikipedia entries.
I have Column B filled with a title and a list of station names.
e.g. B2 = "Abbey Road"
I have Column C filled with a title and a list of formulae to calculate
Wikipedia entries. e.g.
C2 = ="http://en.wikipedia.org/wiki/"&SUBSTITUTE(B2," ","_")&IF(Y2<"","_DLR",IF(AD2&AF2<"","_railway", "_tube"))&"_station"
A few cells in Column C have exceptional values. e.g.
C28 = "http://en.wikipedia.org/wiki/Belmont_railway_station_(Sutton)"
I have Column D filled with a title and a list of entries. e.g.
D2 = ="HYPERLINK(""" & C2 & """,""" & B2 & """)"
I have Column A filled with a title and a Paste Special of values from
Column D. e.g.
A2 = HYPERLINK("http://en.wikipedia.org/wiki/Abbey_Road_DLR_station","Abbey Road")
I then search and replace HYPERLINK with =HYPERLINK in Column A.
e.g. I end with
A2 = =HYPERLINK("http://en.wikipedia.org/wiki/Abbey_Road_DLR_station","Abbey Road")
This has the value Abbey Road and clicking it opens the URL.

I think some simplification can be done.
I don't know how to have a cell formula evaluate to a formula.

To reiterate, I have
A2.formula = "=HYPERLINK("http://en.wikipedia.org/wiki/Abbey_Road_DLR_station","Abbey Road")"
[I have not bothered doubling quotes in this]
A2 = "Abbey Road"
B2 = "Abbey Road"
C2.formula = "="http://en.wikipedia.org/wiki/"&SUBSTITUTE(B2," ","_")&IF(Y2<"","_DLR",IF(AD2&AF2<"","_railway", "_tube"))&"_station""
C2.value = "http://en.wikipedia.org/wiki/Abbey_Road_DLR_station"
D2.formula = "="HYPERLINK(""" & C2 & """,""" & B2 & """)""
D2.value = "HYPERLINK("http://en.wikipedia.org/wiki/Abbey_Road_DLR_station","Abbey Road")"

--
Walter Briscoe
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Avoiding auxiliary cells

On Friday, 3 January 2014 02:28:08 UTC+11, Walter Briscoe wrote:
Happy New Year to all readers.



I use Excel 2003.

I have a file containing a list of London station names.

I want to have it contain a list of hyperlinks to Wikipedia entries.

I have Column B filled with a title and a list of station names.

e.g. B2 = "Abbey Road"

I have Column C filled with a title and a list of formulae to calculate

Wikipedia entries. e.g.

C2 = ="http://en.wikipedia.org/wiki/"&SUBSTITUTE(B2," ","_")&IF(Y2<"","_DLR",IF(AD2&AF2<"","_railway", "_tube"))&"_station"

A few cells in Column C have exceptional values. e.g.

C28 = "http://en.wikipedia.org/wiki/Belmont_railway_station_(Sutton)"

I have Column D filled with a title and a list of entries. e.g.

D2 = ="HYPERLINK(""" & C2 & """,""" & B2 & """)"

I have Column A filled with a title and a Paste Special of values from

Column D. e.g.

A2 = HYPERLINK("http://en.wikipedia.org/wiki/Abbey_Road_DLR_station","Abbey Road")

I then search and replace HYPERLINK with =HYPERLINK in Column A.

e.g. I end with

A2 = =HYPERLINK("http://en.wikipedia.org/wiki/Abbey_Road_DLR_station","Abbey Road")

This has the value Abbey Road and clicking it opens the URL.



I think some simplification can be done.

I don't know how to have a cell formula evaluate to a formula.



To reiterate, I have

A2.formula = "=HYPERLINK("http://en.wikipedia.org/wiki/Abbey_Road_DLR_station","Abbey Road")"

[I have not bothered doubling quotes in this]

A2 = "Abbey Road"

B2 = "Abbey Road"

C2.formula = "="http://en.wikipedia.org/wiki/"&SUBSTITUTE(B2," ","_")&IF(Y2<"","_DLR",IF(AD2&AF2<"","_railway", "_tube"))&"_station""

C2.value = "http://en.wikipedia.org/wiki/Abbey_Road_DLR_station"

D2.formula = "="HYPERLINK(""" & C2 & """,""" & B2 & """)""

D2.value = "HYPERLINK("http://en.wikipedia.org/wiki/Abbey_Road_DLR_station","Abbey Road")"



--

Walter Briscoe


It looks to me as if you could simplify by just putting =HYPERLINK(C2, B2) in A2. (No need for any quotes.)

Howard
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
Avoiding cells being included in a chart F[_2_] Excel Programming 2 December 10th 11 10:20 AM
Avoiding cells being included in a chart F[_2_] Charts and Charting in Excel 4 December 10th 11 01:17 AM
Avoiding Calculating Cells on the Status bar Satish Excel Discussion (Misc queries) 3 April 19th 07 02:16 PM
Avoiding empty cells showing as zero in line chart without na() [email protected] Charts and Charting in Excel 2 January 3rd 07 12:59 PM
AVOIDING DUPLICATES IN A RANGE OF CELLS Glint Excel Discussion (Misc queries) 11 August 9th 06 11:54 AM


All times are GMT +1. The time now is 01:44 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"