Hyperlink two sheets in a Excel Workbook

K

Krishna

Hi All,
I am trying to hyperlink two sheets on a common field "CODE".
If the user clicks A2 in sheet1 it should go to A2 in sheet2 likewise A450
in sheet1 to A450 in sheet.
There are like 500 records(rows) in sheet1 and 500 records(rows) in sheet2.
Can anyone please help me in writing a macro.
Thanks,
Krishna
 
G

Gary''s Student

=HYPERLINK("#Sheet2!A" & ROW(),"A" & ROW())

This will jump to Sheet2 column A in the same row as Sheet1
 
S

Steve G

Gary--

Is your Hyperlink formula to be placed in Sheet1?

If yes, then how does the Hyperlink function relate to the data in
Sheet1? Is the Hyperlink functrion in the same cell as the data?

Steve G
 
K

Krishna

Hi Gary,
I tried this and it is working for me.
=HYPERLINK("#"&CELL("address",INDIRECT("'Sheet2'!C"&MATCH(E2,Sheet2!C:C,0))),INDIRECT("'Sheet2'!C"&MATCH(E2,Sheet2!C:C,0)))
Thanks,
Krishna.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top