I have to switch to different sheet in the same workbook based on the date user enters.
Condition is if user enters a date before July, the link should point to ‘Before July 1’ and if the date entered is after July, the link should point to ‘After July 1’ sheet.
I do not want to use macros just excel formulas.
What I wrote is this:
=IF(MONTH(C5)<7,HYPERLINK(‘Before 1 July’!B2,”SheetOne”),HYPERLINK(‘After 1 July’!B2,”SheetTwo”))
It first checks the month entered by user if its less than 7 means before july the link points to ‘Before July 1’ sheet, and if its not it should point to ‘After July 1’ sheet. But even if The link text shows SheetTwo it still points to ‘Before July 1’ sheet.
I have used excel Evaluate formula and its showing correct results! Please help me out how to achieve this or is there any other means I can jump to sheet within same workbook based on user input!
Try this:
=IF(MONTH(C5)<7,HYPERLINK(“#’Before 1 July’!B2″,”SheetOne”),HYPERLINK(“#’After 1 July’!B2″,”SheetTwo”))
Your hyperlink needs to reference a file; however, if you don’t want to do that, you can use the “#” syntax to indicate the current workbook.
Syntax: =HYPERLINK(“#’linked sheet name’!linked cell number”,”your message”)