+ Reply to Thread
Results 1 to 5 of 5

Href is not working in my excel sheet

  1. #1
    Registered User
    Join Date
    12-13-2010
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    3

    Smile Href is not working in my excel sheet

    Actually I've set of records in which one column has values similar to <a href=http://www.google.com> google </a>.

    This is not working, column has "<a href=http://www.google.com> google </a>" as it is, but I'm looking for google as value and link to http://www.google.com.

    Please help in fixing this..

    Advance Thanks..

  2. #2
    Forum Guru teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,364

    Re: Href is not working in my excel sheet

    Hello,

    with the href in A1, you can use

    =HYPERLINK(MID(A1,FIND("http://",A1),FIND(">",A1)-(FIND("http://",A1))))

    cheers,

  3. #3
    Registered User
    Join Date
    12-13-2010
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Href is not working in my excel sheet

    Hi Teylyn,
    Thanks for your reply..
    But this is not the answer that I'm looking for.

    Again I will try to explain from my example, I need "google" to be displayed in the column that linked to "http://www.google.com".

    Hope I've explained.

    Thanks a lot for your support,

  4. #4
    Forum Guru teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,364

    Re: Href is not working in my excel sheet

    OK,

    =HYPERLINK(MID(A1,FIND("http://",A1),FIND(">",A1)-(FIND("http://",A1))),MID(A1,FIND(">",A1)+1,FIND("<",A1,2)-FIND(">",A1)-1))

    this will extract the BLUE part of the href as per below as the Friendly text

    <a href=http://www.google.com> google </a>
    <a href=http://www.MyDomain.com>MyDomain</a>
    <a href=http://www.MyDomain.com>Click Here</a>

    Note that your href example has a leading and a trailing space encasing the word "google".

  5. #5
    Registered User
    Join Date
    12-13-2010
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Href is not working in my excel sheet

    Thanks a lot..
    It's working perfectly

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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