title: How to change hyperlink in Excel using formulas based on condition?
body: <p>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.</p>
  
  <p>What I wrote is this:
  =IF(MONTH(C5)&lt;7,HYPERLINK('Before 1 July'!B2,"SheetOne"),HYPERLINK('After 1 July'!B2,"SheetTwo"))</p>
  
  <p>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.</p>
  
  <p>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!</p>