Documentation/How Tos/Calc: FORMULA function
From OpenOffice.org Wiki
< Documentation | How Tos
FORMULA
Returns the formula used in a cell as a text string.
Syntax:
FORMULA(cell)
- Returns the formula entered in the cell cell as a text string.
Example:
FORMULA(A8)
- where A8 contains the formula =SQRT(4), returns the text "=SQRT(4)".

