Automatic solution for hyperlink within the same file

Newbie73

New Member
Joined
Feb 4, 2024
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hi everyone, I'm dealing with huge amounts of date across different sheets in the same file. On sheet1 let's say I have a full list of values (some of them duplicated) in the same column and on Sheet2 I have a list of some (not all) of those values as unique values. Manually, I can create a hyperlink say on Sheet2 A2 and manually add a reference on Sheet1 where the same value is (let's say H777). Clicking now on Sheet2 A2 Value will take me to the same value on Sheet1 H777.

Is there a way to automatically do this on a column? Automatically look for where the exact value is on Sheet1 column and create an hyperlink to that location?

Test example:


Thanks in advance
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
the link would not work for me
do you want a link to the values - or just bring the value across to the sheet
 
Upvote 0
the link would not work for me
do you want a link to the values - or just bring the value across to the sheet
Thanks for the reply etaf. Sorry about that, not sure why it's not working. I've uploaded it again:


A link to the values please so if I click on Sheet2, A2 value 1979 will take me directly to Sheet1, H777 value 1979 (this numbers and cell references are just as example)
 
Upvote 0
it may be me , but not had trouble before - i just get
excel.officeapps.live.com’s server IP address could not be found.
 
Upvote 0
it may be me , but not had trouble before - i just get
excel.officeapps.live.com’s server IP address could not be found.
Don't know sorry, I will copy paste just so that you can get an idea.

Sheet2:

1979
2308
2127
2222
1881
1919
1958
2023

Sheet1:

1979
1979
1979
1979
1979
1979
1979
1979
1979
1979
1980
1980
1980
1980
1980
1980
1980
1980
1980
1980
2011
2011
2011
2011
2011
2011
2011
2011
2011
2011
2012
2012
2012
2012
2012
2012
2012
2012
2012
2012
2023
2023
2023
2023
2023
2023
2023
2023
2023
2023
 
Upvote 0
how about
=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1)),"No Link")

Book5
AB
11979#sheet2!$A$1
21979#sheet2!$A$1
31979#sheet2!$A$1
41979#sheet2!$A$1
51979#sheet2!$A$1
61979#sheet2!$A$1
71979#sheet2!$A$1
81979#sheet2!$A$1
91979#sheet2!$A$1
101979#sheet2!$A$1
111980No Link
121980No Link
131980No Link
141980No Link
151980No Link
161980No Link
171980No Link
181980No Link
191980No Link
201980No Link
212011No Link
222011No Link
232011No Link
242011No Link
252011No Link
262011No Link
272011No Link
282011No Link
292011No Link
302011No Link
312012No Link
322012No Link
332012No Link
342012No Link
352012No Link
362012No Link
372012No Link
382012No Link
392012No Link
402012No Link
412023#sheet2!$A$8
422023#sheet2!$A$8
432023#sheet2!$A$8
442023#sheet2!$A$8
452023#sheet2!$A$8
462023#sheet2!$A$8
472023#sheet2!$A$8
482023#sheet2!$A$8
492023#sheet2!$A$8
502023#sheet2!$A$8
51No Link
Sheet1
Cell Formulas
RangeFormula
B1:B51B1=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1)),"No Link")
 
Upvote 0
how about
=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1)),"No Link")

Book5
AB
11979#sheet2!$A$1
21979#sheet2!$A$1
31979#sheet2!$A$1
41979#sheet2!$A$1
51979#sheet2!$A$1
61979#sheet2!$A$1
71979#sheet2!$A$1
81979#sheet2!$A$1
91979#sheet2!$A$1
101979#sheet2!$A$1
111980No Link
121980No Link
131980No Link
141980No Link
151980No Link
161980No Link
171980No Link
181980No Link
191980No Link
201980No Link
212011No Link
222011No Link
232011No Link
242011No Link
252011No Link
262011No Link
272011No Link
282011No Link
292011No Link
302011No Link
312012No Link
322012No Link
332012No Link
342012No Link
352012No Link
362012No Link
372012No Link
382012No Link
392012No Link
402012No Link
412023#sheet2!$A$8
422023#sheet2!$A$8
432023#sheet2!$A$8
442023#sheet2!$A$8
452023#sheet2!$A$8
462023#sheet2!$A$8
472023#sheet2!$A$8
482023#sheet2!$A$8
492023#sheet2!$A$8
502023#sheet2!$A$8
51No Link
Sheet1
Cell Formulas
RangeFormula
B1:B51B1=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1)),"No Link")
Etaf that did the trick!! Amazing!!! Couple of little questions to see if it can be adjusted, formula worked as intended, this is the one I'm using in the real spreadsheet:
=IFERROR(HYPERLINK("#Main!"&ADDRESS(MATCH(Lumps!G5,Main!$S$2:$S$2500,0),1)),"No Link")

If I click on the link, it will take me to the row above the real cell. For example for Cell Value 2025 I click and it takes me to the cell with 2024 in the "Main" sheet. It's just a detail as I just have to scroll once down and i'm there, but just wondering if it could be adjusted.

Second little detail (sorry if I'm being anal), any chance we could chance the text that shows in the link cell? #Main!$A$1132 for something else? Or even better, is it even possible to add such a formula to the cell with the number itself? As in, the cell with the value to be looked at "Main", for example DFHS2728272506, could that be the cell with the link? Or is this impossible? If not just happy enough if It's in a different cell but with a different name that I could choose than #Main!$A$1132, no worries if not this was already a massive help for my productivity!
 
Upvote 0
its returning the row number
=MATCH(G5,$S$2:$S$2500,0)
so as you start from row 2
it sees that as the nth item - but counting from row 2
so if it finds it in say Row 3 - that is 2 from the start of the range - S2

change the range to start at 1
=IFERROR(HYPERLINK("#Main!"&ADDRESS(MATCH(Lumps!G5,Main!$S$1:$S$2500,0),1)),"No Link")

now you should be on the correct row

I'll reply later re other question, may take longer to work out - then 10mins to edit here
 
Upvote 0
ok,
there is a friendly name option in the hyper link function
so i have added the cell here

=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1),A1),"No Link")
see the match is A1
and the friendly name i have added A1 - so that should put the value you are trying to match

Column D

Cell Formulas
RangeFormula
B1:B51B1=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1)),"No Link")
D1:D51D1=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1),A1),"No Link")
 
Upvote 0
Solution
ok,
there is a friendly name option in the hyper link function
so i have added the cell here

=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1),A1),"No Link")
see the match is A1
and the friendly name i have added A1 - so that should put the value you are trying to match

Column D

Cell Formulas
RangeFormula
B1:B51B1=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1)),"No Link")
D1:D51D1=IFERROR(HYPERLINK("#sheet2!"&ADDRESS(MATCH(Sheet1!A1,Sheet2!$A$1:$A$25,0),1),A1),"No Link")
Thanks a lot Etaf! Really appreciate the time you've taken to help
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,970
Members
449,095
Latest member
Mr Hughes

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