+ Reply to Thread
Results 1 to 8 of 8

Advanced hyperlink

  1. #1
    Registered User
    Join Date
    11-24-2012
    Location
    Edmonton AB
    MS-Off Ver
    Excel 2010
    Posts
    6

    Advanced hyperlink

    I have a long column of data, containing a different number in each row and I want each number to be in a hyperlink that remains static exept for the value of the number.
    for example
    c1 = 356
    c2 = 886
    c3 = 936
    c4 = 387

    if the address is http://example.com/example.php?page=internet&var2=XXX

    where the xxx is one of the numbers from each row, I am wondering if I can somehow autofill so each number has a hyperlink attached to it in the document, leading to the correct address for example in c1 you would just see the number 356 hyperlinked, and the adress would be http://example.com/example.php?page=internet&var2=356

  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,049

    Re: Advanced hyperlink

    I cannot test this, because I cant link to what you are refering to. but try this...

    =HYPERLINK(INDIRECT(" http://example.com/example.php?page=internet&var2="&C1))
    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
    Registered User
    Join Date
    11-24-2012
    Location
    Edmonton AB
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Advanced hyperlink

    I am getting a #REF! error

  4. #4
    Registered User
    Join Date
    11-24-2012
    Location
    Edmonton AB
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Advanced hyperlink

    those addresses are just hypothetical, :P sorry about that

  5. #5
    Registered User
    Join Date
    11-24-2012
    Location
    Edmonton AB
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Advanced hyperlink

    =HYPERLINK("http://example.com/example.php?page=internet&var2="&C3,C3) works exactly how I would want it to, except it requires me to have a separate column without hyperlinks to reference to and I end up getting two identical columns, one with and one without hyperlinks

  6. #6
    Registered User
    Join Date
    11-24-2012
    Location
    Edmonton AB
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Advanced hyperlink

    nm I just made a whole new tab and then used =HYPERLINK("http://example.com/example.php?page=internet&var2="&Sheet1!C4,Sheet1!C4) it auto filled out perfectly and I never have to look at the tab without the hyperlinks, it just sits in the background

  7. #7
    Registered User
    Join Date
    11-24-2012
    Location
    Edmonton AB
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Advanced hyperlink

    Thank you very much FDibbins, without you pointing me in the general direction, I would have never figured this out!

  8. #8
    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,049

    Re: Advanced hyperlink

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

+ 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.6.0 RC 1