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
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

bobsan42

Well-known Member
Joined
Jul 14, 2010
Messages
1,855
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
Platform
  1. Windows
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,669
Messages
5,838,685
Members
430,563
Latest member
Raeyven

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