Some help would be greatly appreciated
I am struggling to find a way to combine these two functions
The aim if to returns one of the following three results
The selected "Master ID" is in Cell $E$2
The Function is in Cell F2
1.) The "Master ID" that is selected from cell $E$2 finds a matching "Master ID" in the table tWikiTree and returns the "WikiTree Link" (The WikiTree URL) as a Hyperlink
2.) If there is no Matching "Master ID" the result is "No Current Link to WikiTree"
3.) If there is a Match but there is no URL in the Cell, the result is "No Current Link to WikiTree"
The following function
=IF(INDEX(tWikiTree[WikiTree Link],MATCH($E$2, tWikiTree[Master ID],0))="","No Current Link to WikiTree", HYPERLINK(INDEX(tWikiTree[WikiTree Link],MATCH($E$2, tWikiTree[Master ID],0))))
Returns the correct results as in 1 and 3 but for 2 returns #N/A
The following function
=IFERROR(INDEX(tWikiTree[WikiTree Link],MATCH($E$2, tWikiTree[Master ID],0)),"No Current Link to WikiTree")
Returns the correct results as in 1 and 2 but for 3 returns 0
I am not sure but the problem appear to be caused when I add the HYPERLINK to the IfError function, hence no HYPERLINK in the second function
Any suggestions on how to combine them would be great