Please help! :( Contact directories using VLOOKUP formula and HYPERLINK function

imjustarookie

New Member
Joined
Sep 25, 2014
Messages
1
Hi everyone, Im kinda newbie here in excel thingy but I found it interesting and now Ive been practicing for quite a while. Here's the thing, I want my contact (with its details) to appear in another sheet using the vlookup and hyperlink functions, Is it possible to do this? kindly see the pic below. Answers are very much appreciated! :)

e21ee.jpg
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

bobsan42

Well-known Member
Joined
Jul 14, 2010
Messages
1,364
Well i think i can help you with this one. Will try to be as clear as possible.
Step one is to fill in the desired value in B2 by clicking on a hyperlink:

  1. Make all hyperlinks lead to cell $B$2 (th one with the lookup value.
  2. Add the following VBA code to Sheet1 (or as you case is):
Code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
    If ActiveCell.Address = "$B$2" Then
        ActiveCell.Value = Target.Range.Value
        Exit Sub
    End If
End Sub

Step two is the formula to fill in the contact details:
  1. I take it that contact1, contact2 etc. may be some contact alias. this means you have five columns of data for each alias. This doesn't really matter.
  2. Use the following formula to get the name of the contact:
    =IFERROR(VLOOKUP($B$2,Sheet2!A:F,2,0),"")
  3. Adjust it to you particular situation and values. Change the red number to get the rest of the contact details.

Hope this helps.

P.S. I managed to observe some strange behaviour of the hyperlinks if i use Filling to multiply them. Maybe make a cell with a hyperlink and then use copy to multiply it, but avoid fill down or fill right or whatever.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,371
Messages
5,595,782
Members
414,020
Latest member
Meghdad

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top