Return Vlook up as Hyperlink

Shazz

Board Regular
Joined
Oct 28, 2010
Messages
136
[FONT=&quot]Hi All,[/FONT]

[FONT=&quot]I have the below formula but I want it to return it as a hyperlink as it looks up email addresses, can any one show me how to adapt.[/FONT]

[FONT=&quot]=IF($A3="","",IF(INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1)="","",INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1)))

Much appreciated

Shazz
xx[/FONT]
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Code:
[COLOR=#141414]=IF($A3="","",IF(INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1)="","",[/COLOR]HYPERLINK("mailto:" & [COLOR=#141414]INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1))))[/COLOR]
if want it to look nicer:
Code:
=IF($A3="","",IF(INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1)="","",HYPERLINK("mailto:" & INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1),INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1))))
if you want it to be formatted as hyperlink:
Code:
=HYPERLINK(IF($A3="","",IF(INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1)="","",HYPERLINK("mailto:" & INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1),INDEX(DB_List,VLOOKUP($A3,DB_RowIndices,2,FALSE),K$1)))))

However doing the same lookup several times (your original formula does it twice without any good reason) is not really efficient - with a lot of data your formulas may slow down calculation significantly.
 
Last edited:
Upvote 0
Hi This does not seem to be working for me, it just shows the formula in the cell that should be showing the email address.
 
Upvote 0
Is you cell formatted as General or as Text ?
Have you put = at the beginning of the formula?

A formula is a formula - it shows a result or an error ? No other way?
When you copy Paste the formula it is best to enter the cell in Edit mode (not to simply select the cell and Paste over it).

Format the cell as General
Then double click in the cell paste the formula inside and press enter.
 
Upvote 0

Forum statistics

Threads
1,215,278
Messages
6,124,021
Members
449,139
Latest member
sramesh1024

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
Back
Top