I'm trying to create a hyperlink in Sheet 1 of an excel workbook that links to Sheet 2 within the same workbook using the HYPERLINK() command so that I can place the hyperlink within an IF() function. I know how to create a hyperlink within the same excel
document WITHOUT using the formula, but this does not allow me to utilize the IF() command. Can this be done and, if so, how?
I've already fooled around with using the command HYPERLINK(CELL(filename,[friendly name])), but I do not know how to add "'Sheet2'!A1" to the end of the addressed which is returned by CELL(filename). This may be the completely wrong way to go about creating
the hyperlink, but I couldn't think of any other solutions.
*EDIT*
I apologize. I should have been more clear before; I am not looking for a value from Sheet2. I am trying to make the IF() command display the hyperlink should certain conditions be met. For instance:
IF(A2=5,HYPERLINK('SHEET2!'A1,"Link"),"")
However, this syntax will not work as the HYPERLINK() command must have the file path entered into it. So, to clarify I am not looking for a value from SHEET2. I am simply trying to have a hyperlink that appears if certain conditions are met and that takes
me to SHEET2. I understand the IF() function well; it's just the HYPERLINK() function which gives me problems
*END EDIT*