I'm afraid there isn't. When I faced cases where it was necessary to get the real formula ("=1+2" and not "3", unquoted) I couldn't find any Excel function that retrieves it. The nearest is CELL but just for other information type.
Wish you or somebody finds one, it would be great.