How do you get the formula from a cell instead of the value?

前端 未结 5 2223
执笔经年
执笔经年 2020-12-05 14:55

How do you get the literal value (the formula) from a cell instead of the result value?

EXAMPLE DESIRED:

  • A2: \"Foo\"
  • B3: \"=A2\" - so it
5条回答
  •  悲哀的现实
    2020-12-05 15:33

    EDIT: This answer is for the use case in the problem description, with the requirement of doing so with only native functions (no scripting).

    Based on comments from AdamL to the question, the answer is that you cannot get the formula from a cell (instead of the value).

    However, for the actual use case I was trying to solve, =ROW(A42) can be used to get a reference to a specific row that will update automatically with changes to rows.

提交回复
热议问题