Example - 'Main'!A2 - Nested if checking the value of 'main'!a1, return the value from 'data'!A2 (if it's contains a hyperlink-return the hyperlink).
Here is what I have:
=IF($E$2=1,HYPERLINK('Non Brand'!B3),IF($E$2=2,HYPERLINK(Agile!B3),IF($E$2=3,HYPERLINK(Infra!B3),IF($E$2=4,HYPERLINK('BDO Only'!B3),IF($E$2=5,HYPERLINK('IT Only'!B3)," ")))))
If E2=1
, return the value of Non Brand B3
(if it is a hyperlink, return the hyperlink not just the text; else if E2=2 return the value of Agile B
3 (if it is a hyperlink, return the hyperlink not just the text; else if E2=3
-----rinse and repeat.
B3
- Some cells contain just text of the name of the document; others contain a hyperlink to the document template to use.
Every return value whether it is a hyperlink or not is returned as a hyperlink. The hyperlinks that are valid are giving an error that site cannot be reached (even though they are internal company links and I'm on our network).
If E2 is not =1, it returns FALSE, it doesn't continue with the nested if to check if it =2, etc...