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

前端 未结 5 2215
执笔经年
执笔经年 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:41

    Try using =formula(2,3) where the coordinates are (row #, col #)

    Google sheet example at: https://docs.google.com/spreadsheets/d/1A1l0qdnNSHlJB-5DARGKDeIsbuCCLGuoYWm8sR29UTA/edit?usp=sharing

    Showing the formulas...

    And here's how it renders...

    Note: Sometimes it takes a moment to load the formula, during which time you'll get some sort of error saying "Data loading..." or something.

    Also note: I have no idea why this works, since formula is not a listed function for google sheets, but I have been using it in a spreadsheet of mine. Maybe the idea to try this came from Excel or something, I don't recall.

提交回复
热议问题