Forum Discussion
bgaspers
Nov 13, 2021Copper Contributor
LAMBDA malfunction with HYPERLINK
I'm running into an odd malfunction using LAMBDA to encode a hyperlink function. This function: LAMBDA(JumpRange,DisplayText,HYPERLINK(MID(CELL("filename"),FIND("[",CELL("filename")),(FIND("]",CE...
PeterBartholomew1
Nov 13, 2021Silver Contributor
I played with the formula to get a form I have become accustomed to
= LAMBDA(JumpRange,DisplayText,
LET(
filename, CELL("filename"),
start, FIND("[",filename),
end, FIND("]",filename) + 1,
docName, MID(filename,start,end-start-1),
HYPERLINK(docName&JumpRange, DisplayText)
)
)
and then uploaded it to a named Lambda function, to give the worksheet formula
= GOTOλ("Target",Text)
As was pointed out, the result is not a hyperlink. If a hyperlink is also introduced via the Insert menu, it will determine the link destination. The GOTOλ function only sets the visible text.. My thought is that the hyperlinks do not really form part of Excel but, rather, connects to some external web functionality.
bgaspers
Nov 15, 2021Copper Contributor
PeterBartholomew1 SergeiBaklan Thanks for the insights, it probably is the case that HYPERLINK doesn't behave like a "normal" Excel function. I guess this is what happens when you roll new functionality out to the broader community, who then start to uncover the edge cases.
- rolhohMar 14, 2022Copper Contributorthanks for sorting out - i run into the same problem