A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

can't move a named cell without breaking a hyperlink to that cell



 
 
Thread Tools Display Modes
  #1  
Old January 15th, 2005, 02:59 AM
Snakeye
external usenet poster
 
Posts: n/a
Default can't move a named cell without breaking a hyperlink to that cell

Excel Gurus:
I have some named cells in a worksheet. In another worksheet I have
hyperlinks that refer to those named cells. When I sort the worksheet with
the named cells the hyperlinks on the other sheet don't follow the named
cells they originally referred to. It seems that they just keep pointing to
the actual cell position instead. How can I fix this?

Kindest Regards,
Snakeye
  #2  
Old January 16th, 2005, 11:34 PM
Bill Manville
external usenet poster
 
Posts: n/a
Default

Cell names do not move when you sort, so it is not surprising that the
hyperlinks to those named ranges remain the same.

The only way I can think of to do it would involve a number of
worksheet functions: HYPERLINK, MATCH and OFFSET

Supposing that the place you wanted to link to was in column 4 of a
table named MyTable, on the row in which the first cell contained the
value which is in cell A2 on the sheet containing the hyperlink.

=HYPERLINK(OFFSET(MyTable,MATCH(A2,OFFSET(MyTable, 0,0,,1),0)-1,3,1,1),
"Text you want to show")

Then, when you sort MyTable, the link will still go to cell in column 4
on the row beginning with the item you require

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

  #3  
Old January 25th, 2005, 07:19 PM
Snakeye
external usenet poster
 
Posts: n/a
Default

Thanks for the reply Bill.
I'm a bit confused with your functions example. Is there a web location with
more detail or examples on doing this?

Snakeye

"Bill Manville" wrote:

Cell names do not move when you sort, so it is not surprising that the
hyperlinks to those named ranges remain the same.

The only way I can think of to do it would involve a number of
worksheet functions: HYPERLINK, MATCH and OFFSET

Supposing that the place you wanted to link to was in column 4 of a
table named MyTable, on the row in which the first cell contained the
value which is in cell A2 on the sheet containing the hyperlink.

=HYPERLINK(OFFSET(MyTable,MATCH(A2,OFFSET(MyTable, 0,0,,1),0)-1,3,1,1),
"Text you want to show")

Then, when you sort MyTable, the link will still go to cell in column 4
on the row beginning with the item you require

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup


  #4  
Old January 26th, 2005, 11:57 PM
Bill Manville
external usenet poster
 
Posts: n/a
Default

Snakeye wrote:
I'm a bit confused with your functions example. Is there a web location with
more detail or examples on doing this?

Not that I know of; you are the first person to have requested a solution to
this problem with regard to hyperlinks.

If you need the formula explaining:

OFFSET(MyTable,0,0,,1) is the first column of MyTable
MATCH(A2,OFFSET(MyTable,0,0,,1),0) is the index (from 1) within that column of
the row containing the value which is in cell A2.
OFFSET(MyTable,MATCH(A2,OFFSET(MyTable,0,0,,1),0)-1,3,1,1) is the cell in
column 3 of MyTable in the row which has in its first column the value which is
in cell A2. This is the destination of the hyperlink.

If you want to understand the individual Excel functions better, I suggest you
try Excel's help.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Arrow does not move from cell to cell, moves whole page Nic Worksheet Functions 4 January 30th, 2004 01:07 AM
insert cell value into hyperlink? R. Levesque Worksheet Functions 2 December 28th, 2003 01:38 PM
Can't move from cell to cell? Brett Worksheet Functions 3 October 21st, 2003 09:31 AM
Hitting [ENTER] doesn't move onto next cell ALio Setting up and Configuration 1 October 20th, 2003 12:55 PM
Convert a Cell Reference to Text Chuck Buker Worksheet Functions 6 September 22nd, 2003 05:04 PM


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


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