Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Excel website column hyperlinks to an email addrss

Excel website column hyperlinks to an email addrss

Excel website column hyperlinks to an email addrss

OK I've inherited huge customer/prospect spreadsheet with 7,000 records, one of the columns is website. I have found several instances where the physical data says www.mycompany.com, but the link is to an email address, for example johnqpublic@mycompany.com. This is an easy fix, but it is not so easy to find these inconsistent hyperlinks. Is there a way to search for or filter the data where the hyperlink is not the same as the physical data in the cell? I am open to VBA solutions as well.

Any insights appreciated.

Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Macola 10, Synergy, and Crystal Reports.
Check out our Macola tools:

RE: Excel website column hyperlinks to an email addrss

Try this little User Defined Function as your formula:


Function CheckHyperLink(ByRef r As Range) As String

If Range(r.Address).Value = Range(r.Address).Hyperlinks.Item(1).Address Then
    CheckHyperLink = "The Same"
    CheckHyperLink = "Different"
End If

End Function 

So if you have your Hyperlink in cell A2, in B2 type: =CheckHyperLink(A2)

You may need to modify the function to fit your needs.

I was working with this basic, little code to enter the hyperlinks into 2 cells:


Sub AddLink()

With Application
    .ActiveSheet.Hyperlinks.Add .ActiveSheet.Range("A2"), "http://google.com/", , , "Click Here"
    .ActiveSheet.Hyperlinks.Add .ActiveSheet.Range("A3"), "http://msn.com/", , , "http://msn.com/"
End With

End Sub 

Have fun.

---- Andy

There is a great need for a sarcasm font.

RE: Excel website column hyperlinks to an email addrss


Did you ever get this squared away?

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close