Make Dynamic Hyperlink .

avisoft20

Board Regular
Joined
Sep 10, 2016
Messages
63
Good Evening All,
I have two sheet i.e Sheet-1 and Sheet-2,Sheet-1 contains "State" Sheet-2 contains four columns ,on sheet-1 when i click on state name that time second sheet-2 automatic open .

For Example-
Sheet-1.

Sr.NoState
1Delhi
2Punjab
3Uttar Pradesh

<tbody>
</tbody>








Sheet-2.


Sr.noStateTownPin
1DelhiKarolbagh110092
2DelhiUttam Nagar110093
3PunjabAmritsar210032
4PunjabLudhiana210034
5PunjabFaridkot210035
6Uttar PradeshKanpur220056
7Uttar PradeshLucknow220057
8Uttar PradeshVaranasi220058
9Uttar PradeshAgra220059
10Uttar PradeshMeruth220059
11Uttar PradeshMathura220060

<tbody>
</tbody>






















if i click on Delhi State on Sheet-1.
And ans will be.

Sr.noStateTownPin
1DelhiKarolbagh110092
2DelhiUttam Nagar110093

<tbody>
</tbody>
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Something like this (no VBA required)...
Assuming the tables start in A1, in C2 insert this formula and drag down:
(Change "ThisWorkbooksName.xlsx" to the name of your workbook)
Code:
=HYPERLINK("[[COLOR=#ff0000]ThisWorkbooksName.xlsx[/COLOR]]Sheet2!A"&MATCH(B2,'Sheet2'!B:B,0)&":D"&COUNTIF('Sheet2'!B:B,B2)+MATCH(B2,'Sheet2'!B:B,0)-1, B2)
This will create a hyperlink where, when clicked, it will take you to Sheet2 and select the range for the specific name.

If you have more specific needs, a VBA solution is probably what you are after...
Let's know...
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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