Hyperlink to Cell of VLOOKUP Resultes

buckyswider

New Member
Joined
Feb 25, 2009
Messages
18
(sorry, can't figure out addins in office 2016 right now, so I can't properly post the snippets. But that's not my main issue right now!)

Hi all, been searching for about an hour now, and I'm getting very close to the solution, but no guitar.

I have a vlookup function that works properly. Evaluates and displays data from a different sheet ("Coats"_ in the same workbook based on the value in column A:

=VLOOKUP(A2,Coats!A:C,2,FALSE)

So it takes a name from column A, matches it in column A of the "Coats" sheet, and then displays the value from row b- in this case the serial number (it's a spreadsheet for firefighter gear, in case you're wondering what kinds of coats have their own serial numbers!)

What I want to do is to be able to click on that value and be taken to the location in the "Coats" sheet, as that has much more data than the "cover" sheet. Simply wrap it in HYPERLINK, right?

=HYPERLINK(VLOOKUP(A2,Coats!A:C,2,FALSE))

I do that and the value LOOKS like a hyperlink. But when I click on it I get a "Cannot open the specified file" error box. So how do I code the vlookup/hyperlink to just evaluate to the current file/path?


Thanks!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Is this it?

=HYPERLINK("#"&"Coats!"&ADDRESS(MATCH(A2,Coats!A:A,0),2),VLOOKUP(A2,Coats!A:C,2,FALSE))
 
Last edited:
Upvote 0
Is this it?

=HYPERLINK("#"&"Coats!"&ADDRESS(MATCH(A2,Coats!A:A,0),2),VLOOKUP(A2,Coats!A:C,2,FALSE))


Aha, brilliant, thank you! I guess I was evaluating the cell value and trying to jump to a location that would be the serial number- not the location OF that serial number on the "coats" sheet!

Gonna take me a while to digest the intricacies of that syntax, but it works!

Thanks very much!!
 
Upvote 0
Not a worry, the # threw me off, just remember you need it before the sheet name and cell reference
 
Upvote 0
I would like to know if I want to do the hyperlink with Vlookup to a different excel file. please help.
 
Upvote 0
I would like to know if I want to do the hyperlink with Vlookup to a different excel file. please help.

use brackets around the path/filename and single quotes around that along with the sheet name.

so VLOOKUP(A1,'[Myfilename.xls]mySheet'!$A$1:$B$99,2,0)
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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