I have a desktop excel workbook that is autosaved to OneDrive with several tabs in the workbook. I want a dynamic HYPERLINK() function to open the link to another worksheet in the same workbook without opening the link in a browser. I can do this using this formula:
=HYPERLINK("#" & A3 & "!A1",A3)
...where A3="SheetName"
However, when I embed this formula in an IF() statement (example below), the hyperlink opens the document in the browser.
=IF(A3="SheetName", HYPERLINK("#" & A3 & "!A1",A3), A3 )
...where A3 can be "SheetName" or "Dynamic Info Text"
My only workaround is to embed the IF statement inside of the HYPERLINK function...
=HYPERLINK( IF(A3="SheetName","#" & A3 & "!A1", <<<links to cell in "SheetName" worksheet"#" & ADDRESS(ROW(),COLUMN()) <<<links to own cell ) A3)
However, this workaround creates a link in every cell instead of dynamically creating a link depending on what the contents in A3 are.
Keep in mind, I want this link to keep the user in the same desktop workbook, not open it in a browser.