Make the result of a HLookup function presented as a hyperlink

Berenloper

Board Regular
Joined
May 28, 2009
Messages
83
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

Is it possible to make the result of a HLookup function presented as a hyperlink?

I have these two formulas:
=HYPERLINK("[Hyperlink.xlsx]Sheet1!D2",D2) (gives a working link on the first sheet)
=HLOOKUP(D2;Sheet2!1:1,1) (gives the plain result off the second sheet)

The HLookup presents the correct result, but I want to make it clicable to jump right to it.

I thought of joining it with the hyperlink function, but I can't get the syntax of it right.
Is it therefore even possible to combine them?

Best regards,
Berenloper
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Upvote 0
Hi Jeffrey,

Thanks for replying!
I will have a look at it and let you know what the result is.

Best regards,
Berenloper
 
Upvote 0
Hi Jeffrey (and others),

I tried to use your suggestion about Index, but no luck. Maybe my questing was not clear enough.
So, let's try again.

Check these images:

Screen Shot 02-27-24 at 06.52 PM.JPG
Screen Shot 02-27-24 at 06.53 PM.JPG


Sheet1, cell B3 contains a (Dutch) HLookup which returns the result 'beer' from Sheet2.
What I'm looking for is a hyperlink in this cell (B3) based on the HLookup formula, so I can jump directly to cell B1 in Sheet2.

Hope this helps.

Regards,
Berenloper
 
Upvote 0
In cell B3 enter this formula
=HYPERLINK(CELL("address",Sheet2!B1),Sheet2!B1)
 
Upvote 0
Hi Jeffrey,

Thanks, your hyperlink formula works, but it's static.
The target "beer" can everytime be anywhere on row 1 in Sheet2. Now it's on B1 but a next time it can be on Z1.
Therefore a need some HLookup to get the actual adress where the hyperlink should refer to...

I did some experimenting like =HYPERLINK("[Hyperlink.xlsx]Sheet1!D2";HLookup(D2;Sheet2!1:1;1)) but it fails.

So, if possible, what's the right order to use Hyperlink with a Hlookup? :unsure:
 
Upvote 0
Hi, I don't think the HLOOKUP() function is appropriate in this situation, but here's one alternative you could try:

Excel Formula:
=HYPERLINK("#"&ADDRESS(1,MATCH(A2,Sheet2!$1:$1,0),,,"Sheet2"),A2)
 
Upvote 0
Solution
Hello FormR,

Yes! That works perfect!! Thanks so much.
What a nice approach with this match function.

This will make my work a lot easier. Have a nice day!

Regards,
Berenloper
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

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