First, if you want the formula, you are looking for a Symbolic solution, which means that you need to use the Symbolic evaluation selection from the menu or [CRTL}-"." You should get a right-pointing arrow. This requires that your variable be undefined, otherwise the symbolic evaluation will substitute where possible.
TTFN