Forum Discussion

GeeJay's avatar
GeeJay
Copper Contributor
Mar 07, 2022
Solved

Hide a formula

I have a column which contains a formula =A1&"California",&B1 I want to hide the formula. When I do that using protection tab, I was able to hide the formula but my custom text is still visible. An...
  • mathetes's avatar
    mathetes
    Mar 07, 2022

    GeeJay 

     

    Oh! I just realized the simplest solution. So long as I'm correct that the original situation was that the formula, per se, is hidden and it's only the hardcoded "California" that is appearing.

     

    Just make the result visible only after A1 and B1 have content in them, using an IF condition.

    =IF(AND(A1="",B1=""),"",A1&"California"&B1)

    This will keep C1 blank until entries are made in A1 and B1.

    Depending on what goes into A1 and B1, assuming they're text fields of some kind, you might want to put spaces before and after the word "California"

    =IF(AND(A1="",B1=""),"",A1&" California "&B1)

     

Resources