Point Hyperlink to specific cell with conditional

Schturman

Board Regular
Joined
May 28, 2022
Messages
65
Office Version
  1. 2019
Platform
  1. Windows
Hi to all
I need some help to fix a formula that I use from this post.
I have some sheets with dates in column A (pic 1) and some in rows (pic 2)
I need that a hyperlink will jump to a date TODAY() if exist in pointed sheet and if not exist it will just point to A2
I tried like this:
Code:
=HYPERLINK("#'"&L2&"'!"&ADDRESS(1,(WORKDAY.INTL(TODAY(),0)),"Open link")
but it not working...
L2 - the name of sheet
Can someone help me create correct formula ?
Thanks

1736882580607.png
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi
I found a way how to do this...
For sheets like in pic 1 where all dates in one column A, I can use:
Code:
=HYPERLINK("#'"&L2&"'!"&ADDRESS(ROW(XLOOKUP(TODAY(),INDIRECT("'"&L2&"'!A3:A126"),INDIRECT("'"&L2&"'!A3:A126"))),1,4),"Open link")

For sheets like in pic 2 where all dates in a few rows, I can use:
Code:
=HYPERLINK("#'"&L2&"'!"&ADDRESS(ROWS({3;12;21;30;39;48;57;66;75;84;93;102}),COLUMN(XLOOKUP(TODAY(),INDIRECT("'"&L2&"'!A3:AE3"),INDIRECT("'"&L2&"'!A3:AE3"))),4),"Open link")
It working but for some reasons jump to next month... For example today is 17/01 but link jump to cell 17/02...
I don't understand why...
I tried to add "-9" to the row formula
Code:
ROWS({3;12;21;30;39;48;57;66;75;84;93;102})-9
Now it jump correctly to 17/01
same if I do:
Code:
ROWS({3,12,21,30,39,48,57,66,75,84,93,102})+2
or
Code:
ROWS(A3:AE102)/27
or
Code:
ROW()/22

but I'm not sure if it will work for example when today is 20/04...
I tried to check with another date DATE(2025,04,20) instead TODAY(), but get #N/A instead link
Can someone check and fix this formula if needed ? Or point me how to check correctly ?
Thanks
 
Upvote 0

Forum statistics

Threads
1,225,733
Messages
6,186,705
Members
453,369
Latest member
positivemind

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