Excel conditional Hyperlink outputs the Hyperlink for both conditions

后端 未结 1 1670
鱼传尺愫
鱼传尺愫 2021-01-13 13:29

I think I must be going mad here, what I want to do is to write a simple Excel formula that performs an IF test, and if the result is false I want to hyperlink some text, if

相关标签:
1条回答
  • Update:

    Oh, I was wrong. I checked into it and this happens because when Excel sees the 'Hyperlink' function in a cell it turns the entire cell into a 'followable' cell so that links will work.

    The work around to avoiding the error message "The address of the site is not valid" (which occurs when the hyperlink is turned on for the cell but the link has nowhere to go)... is to give excel a link that goes nowhere by referencing the cell address of the formula.

    Example to paste into cell A1:

    =IF(1=2,HYPERLINK("#"&CELL("address",A1),"1"),HYPERLINK("C:\","2"))
    
    0 讨论(0)
提交回复
热议问题