Hi
only possible with VBA. This would require for example the following
kind of UDF:
public function get_formula(rng as range)
if rng.hasformula then
get_formula=mid(rng.formula,2,1024)
end if
end function
Now if your formula is in cell B1 use
=GET_FORMULA(B1)