+ Reply to Thread
Results 1 to 7 of 7

Hyperlinks - keeping link with data, not with cell

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    15

    Hyperlinks - keeping link with data, not with cell

    I have a spreadsheet that I have various formulas and sheets. To simplify:

    Sheet 1: Columns A & B have Name and Code Number. I can add additional names and code numbers to these two columns whenever necessary.

    Example:

    Tom 874
    John 385
    David 712

    Hidden in adjoining columns are formulas to automatically sort them via Code Number. Next to that are the columns showing the sorted information, sorted by number.

    John 385
    David 712
    Tom 874

    Additionally, I have a seperate sheet for Tom, John & David. Since I put Tom in first, he's Sheet 2. John is Sheet 3, and David is Sheet 4. I can use hyperlinks so when I click on John, it goes to Sheet 3; David Sheet 4; Tom Sheet 2.

    Now, let's say I add Kevin 192 to the next row. The hidden columns are set up so that it'll automatically resort Kevin to the top, with John, David & Tom in the next rows down.

    The issue I have with the hyperlink is that it's cell specific, not content specific, as far as I know. I would like the hyperlink to move with John's info so that it would still go to Sheet 3. Same with David and Tom. Unfortunately, after the resort, If I clicked on Kevin's name (which is now at the top of the list), it would go to John's sheet, since the hyperlink is attached to that cell.

    Any ideas how to allow a hyperlink to remain with the content, versus the cell? I would prefer it to be not a macro, but I'll take a macro over nothing!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Hyperlinks - keeping link with data, not with cell

    Hi and welcome to the forum

    You can use a hyperlink in a formula, using =HYPERLINK(), something like...
    =IFERROR(HYPERLINK("#"&"'sheet1'!Aa1","this goes to sheet1 A1"),"")
    Plat around and see if that is something you could use?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hyperlinks - keeping link with data, not with cell

    Hello jeffandnicole,

    Welcome to the Forum.

    Please try the attached sample Workbook. Works fine even after sorting!

    Regards
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    09-10-2013
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Hyperlinks - keeping link with data, not with cell

    Ford & Winon: Thank you!!! As I had to insert the Hyperlink formula nested within an If/Then formula, I was able to use the guidence from both examples to get exactly what I needed. So far, it looks good!

    (And thanks for the welcomes...I decided to forgo the "Hi" since I figured "Posts: 1" would've clued you in!)

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hyperlinks - keeping link with data, not with cell

    Hello jeffandnicole,

    You are welcome, glad we could help.

    Don't forget to click on the * at the left bottom of the contibutors' Post to add to Reputation.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Hyperlinks - keeping link with data, not with cell

    happy to help and thanks for the feedback

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Hyperlinks - keeping link with data, not with cell

    Hello jeffandnicole,

    Thank you for the nice Rep!

    Regards.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Remove many hyperlinks while keeping most.
    By notrandom in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-18-2011, 02:29 PM
  2. Replies: 0
    Last Post: 07-22-2009, 09:24 PM
  3. keeping hyperlinks
    By borderer in forum Excel General
    Replies: 2
    Last Post: 12-20-2007, 05:38 AM
  4. Keeping my Hyperlinks
    By Dartel in forum Excel General
    Replies: 1
    Last Post: 08-16-2006, 08:35 AM
  5. Keeping Source Formatting with Paste Link and VLOOKUP
    By nrehman in forum Excel General
    Replies: 1
    Last Post: 10-06-2005, 02:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1