FORMULATEXT
Information

Returns the formula at the given reference as text

Syntax:

=FORMULATEXT(reference)

Example:

=FORMULATEXT(A1)