+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: Formula involving hyperlinks

  1. #1
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Formula involving hyperlinks

    Here is the situation:

    I have numerous values in column A in my workbook. I have other numerous values in Column A on another tab. Most of these values can be found on both tabs, however, the information in other columns are different. What I would like to do is Find the matching Value and return either a Hyperlink to the match, or a way to get to it with ease (without using the "Find" Function.

    Anyone have any idea's or tips?

    Thanks
    Last edited by deejabram; 09-13-2010 at 05:38 AM.

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Is it possible to make a formula involving hyperlinks?

    Here's a formula that links to a different sheet. It examines cell B2 on the current sheet and searches for an answer on a sheet called Detail in column A. Adjust the formula for your need and put in an empty column next to your values. Then copy down.

    =HYPERLINK("#"& "Detail!" & ADDRESS(MATCH($B2, Detail!$A:$A, 0), 1), "Link") 'diff sheet

    http://www.excelforum.com/excel-gene...ab-to-tab.html
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Forum Guru
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2003
    Posts
    2,288

    Re: Formula involving hyperlinks

    Like this:
    =HYPERLINK("[C:\<path>\Book2.xls]Sheet1!"&ADDRESS(MATCH(A3,[Book2.xls]Sheet1!$A:$A,0),1),"link")

    (You don't need the full path for the match if the other book is open, but you do need it for the hyperlink)

    hth
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  4. #4
    Forum Guru
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2003
    Posts
    2,288

    Re: Formula involving hyperlinks

    1. I didn't read the OP properly

    2. I didn't know you could do that:
    "#"="[book.xls]"

    (although why "#" & "Sheet"?)

    kudos
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  5. #5
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Formula involving hyperlinks

    I wish I understood "why" the # is needed, but it's the part that makes the other sheet reference work as a hyperlink. Without it, the formula doesn't work. With it, it works and I can even copy down to get constantly working links.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  6. #6
    Forum Guru
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2003
    Posts
    2,288

    Re: Formula involving hyperlinks

    Heh - read mine again - "#" = "[book.xls]"

    So, within a workbook:
    =hyperlink("sheet1!A1")
    doesn't work
    =hyperlink("[book1]sheet1!A1")
    does work
    =hyperlink("#sheet1!A1")
    also works

    That's what I meant by "#" = "[book.xls]"

    Similarly, between books:
    =hyperlink("[book1]sheet1!A1")
    doesn't work
    =hyperlink("C:etc.etc.[book1]sheet1!A1")
    does work
    =hyperlink("#[book1]sheet1!A1")

    So the # seems to me like shorthand for 'in this workbook/in this folder'

    Have I cracked it?

    so the only one I haven't looked at is within sheet:
    =hyperlink("A1")
    doesn't work
    =hyperlink("sheet1!A1")
    doesn't work
    =hyperlink("[book1]sheet1!A1")
    does work (but this is as per within book but between sheets)
    =hyperlink("#A1")
    does work

    So that doesn't quite follow the same logic - it would seem

    My question:
    (although why "#" & "Sheet"?)
    I basically meant:
    "#" & "sheet"
    =
    "#sheet"
    That's all!

    EDIT:
    relative reference - that's the expression I was searching for when I wrote: 'in this workbook/in this folder' tip of my tongue it was! Cheers DO
    Last edited by Cheeky Charlie; 09-04-2010 at 06:47 PM. Reason: third scenario + EDIT2
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  7. #7
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Formula involving hyperlinks

    # is as CC states a relative reference for the Hyperlink - though I confess I didn't realise it was relative to the highest level (ie folder - interesting)
    Last edited by DonkeyOte; 09-04-2010 at 06:42 PM. Reason: clarifying highest level point

  8. #8
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Formula involving hyperlinks

    Thanks for the help. I will give this a try today and let you all know how it worked out.

  9. #9
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Formula involving hyperlinks

    I am a bit confused. I am trying to link up to a value in the same workbook, not a different workbook.
    When I use the formula given above it show's "link" but the link doesnt work. I have tried multiple combinations of the formula's listed above. Obviously I am doing something wrong...

  10. #10
    Forum Guru
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2003
    Posts
    2,288

    Re: Formula involving hyperlinks

    Upload an example and we can write the exact formula for you, then you can work out what was missing.
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  11. #11
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Formula involving hyperlinks

    EXAMPLE.xls

    Thanks so much for the help. The example is a template of what I am trying to do. I would send the original, but am working with sensitive information. However, the template catches the main idea.

  12. #12
    Forum Guru
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2003
    Posts
    2,288

    Re: Formula involving hyperlinks

    Ummm, your formula works for me! Is this the problem:
    http://support.microsoft.com/kb/829072
    (if so follow instructions there)
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

  13. #13
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: Formula involving hyperlinks

    That isnt a formula. That is a simple Hyperlink manually entered using the "Find" function. I was hoping for a formula which would produce the same results without having to manually find every entery.
    (=

  14. #14
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,223

    Re: Formula involving hyperlinks

    In B2, then copied down:

    =HYPERLINK("#"& "Details!" & ADDRESS(MATCH($A2, Details!$A:$A, 0), 1), "Link")
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  15. #15
    Forum Guru
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2003
    Posts
    2,288

    Re: Formula involving hyperlinks

    Oh yeah, gotcha, lol.

    Based on above chat:

    =HYPERLINK("#"& "Details!" & ADDRESS(MATCH($A2, Details!$A:$A, 0), 1), "Link")
    =

    =HYPERLINK("#Details!" & ADDRESS(MATCH($A2, Details!$A:$A, 0), 1), "Link")
    CC


    If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0