+ Reply to Thread
Results 1 to 19 of 19

how can I display another cell as hyperlink text?

  1. #1
    Registered User
    Join Date
    10-16-2008
    Location
    home
    Posts
    20

    how can I display another cell as hyperlink text?

    Hi, I'm new here and pretty new to excel. I have recently moved jobs and need to use excel alot more than previously and have found one or two stumbling blocks.
    I have a workbook that has a main sheet which provides stats from other sheets within the workbook. I have a hyperlink which goes to a certain place of sheet 2 and the displayed text shows the contents of a cell on sheet 2.
    I know it's possible to have the hyperlink go to a certain cell on another workbook as opposed to worksheet, but I cant display the contents of a cell on another workbook as the text on the hyperlink.
    I'm sorry if this seems confusing, but I dont really know how else to explain it!
    Thanks in advance for any help.

    Scouse.
    Last edited by scorpioscouse; 10-16-2008 at 11:17 AM.

  2. #2
    Forum Contributor
    Join Date
    10-16-2008
    Location
    Iowa
    Posts
    121
    If I understand you, you want workbook 1, sheet 1 to display the contents of workbook 2, sheet 1. If so then open both workbooks, select cell in workbook 2 and paste link into cell in workbook 1. It will look something like this: =[Book2.csv]Sheet1!$D$1

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    I think this is what you need


    Please Login or Register  to view this content.
    I need your support to add reputations if my solution works.


  4. #4
    Registered User
    Join Date
    10-16-2008
    Location
    home
    Posts
    20
    kinda.. I'll try to explain a little better.
    ok, I have value X in book1, sheet1, A1. I would like a hyper link on book2 to link to the cell on book 1. On the text to display for the hyperlink I would like it to show the contents of the cell on book1.
    I have done it for different sheets, but not work books. The code I used was
    Please Login or Register  to view this content.
    and I wrote this in the 'text to display' box so that on sheet 1 the hyper link displayed whatever was in cell A! on sheet 2 and acted as a hyperlink to that cell.

    Thanks again.

    Scouse.

  5. #5
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    Ok, I think I understand now
    1. any cell, key in "=", then go to the target cell whose content you want to display
    2. then press enter
    3. close the target cell, you will see the full address of the workbook and worksheet and cell
    4. copy the formula to "Text to display"

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    This displays the contents of A1 on sheet1 in book3.xls

    =HYPERLINK("#[Book3.xls]Sheet1!$A$1",[Book3.xls]Sheet1!$A$1)
    Cheers
    Andy
    www.andypope.info

  7. #7
    Registered User
    Join Date
    10-16-2008
    Location
    home
    Posts
    20
    The link works Andy, but the displayed text is "0" and not what is shown in the target cell.. I'm sorry to be an ***, but I can't figure it out!

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    0 would suggest the cell being linked to is empty.

    Let's start simple, can you get it to work when all the information is on the same sheet?

  9. #9
    Registered User
    Join Date
    10-16-2008
    Location
    home
    Posts
    20
    yea. I can link from one cell to another and display the contents of the target in the cell that is hyperlinked. I can also link to another sheet in the book and also display the contents of the target on sheet2 in the cell on sheet1. The problem comes when trying to link to another book all together. The link works, and it opens the target book and selects the target cell, but it wont echo the contents and display that as the text for the link. Do I make any sense? :D

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    It makes sense but it is not what I get when testing.
    What version are you using?

  11. #11
    Registered User
    Join Date
    10-16-2008
    Location
    home
    Posts
    20
    ermm pass! Probably an old one cause I work for the DWP :oD

    It says Microsoft office XP enterprise edition?!?!?!?!?!

  12. #12
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    I just tested in xl2000, version prior to yours, and it works.

    Again the displaying of 0 would indicate the cell the 'Friendly_name' text is referencing is empty.

  13. #13
    Registered User
    Join Date
    10-16-2008
    Location
    home
    Posts
    20
    hmm. Ok, the code you wrote up there ^^^ should I put this in the function bar or do I make the cell a hyperlink and put the string into the 'TEXT TO DISPLY' box?!?

    Sorry to be such a noob!

  14. #14
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    That's a worksheet function so would go in a cell.

  15. #15
    Registered User
    Join Date
    10-16-2008
    Location
    home
    Posts
    20
    would it make a difference if the workbooks were on a shared network?
    When I paste that function in it displays "1" when the value on sheet 3 is "5" and the function line is changed to
    Please Login or Register  to view this content.

  16. #16
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Again it works for me when I reference a non local folder.

    =HYPERLINK("#[Book3.xls]Sheet1!$A$1",'\\<servername>\jobs3\Transit\[Book3.xls]Sheet1'!A1)

  17. #17
    Registered User
    Join Date
    10-16-2008
    Location
    home
    Posts
    20
    I dunno what Im doing wrong then?!?! The link works fine, but it isn't displaying the text?! I think I'm just gonna make a work around! Thanks for all ya help. Much appreciated.

    Scouse.

  18. #18
    Registered User
    Join Date
    01-08-2010
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: how can I display another cell as hyperlink text?

    Hi. I'm facing the same problem as well; however, I'm really new at Excel, so I don't know where to write the hyperlink. Could you please guide me? Thank you.

  19. #19
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: how can I display another cell as hyperlink text?

    jcelyn, welcome to the board, however, please note...

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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. How to display text & fractions, referencing another cell?
    By stir-crazy in forum Excel General
    Replies: 4
    Last Post: 03-02-2011, 12:53 PM
  2. UDF to Display Results Vertically Instead of One Cell Horizontally
    By snake10 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-13-2008, 12:18 PM
  3. Replies: 2
    Last Post: 01-24-2008, 11:24 PM
  4. using cell content to reference a worksheet tab name in second workbook
    By Conor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2007, 09:32 AM
  5. Cell to display one of twelve cells that have data..
    By kAustin79 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2007, 12:43 AM

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