I don't need it for evaluation. My customer wants me to show all work in the
equations that I am using.
[...]
The actual equations are much more complicated and it takes a lot of time
to format them with the &'s included.
If I understand what you mean (and I think I do), I think you -- that
is, your customer -- is asking for the "impossible", although I
certainly understand why he might want it.
Consider the following hypothetical "simple" example:
=roundup(nper(A1/12, roundup(pmt(A1/12, 12*A2, -A3), 0), -A3), 0)
I think you are saying your customer would like to see:
=roundup(nper(6%/12, roundup(pmt(6%/12, 12*30, -100000), 0), -100000),
0)
Right?
That requires interpreting each element of a formula, recognizing cell
references (of all forms), and replacing them with the evaluated value
of their formulas. It also requires that the parser recognize strings
and (usually) avoid interpreting their contents.
Even in the "simple" case above, that would require a powerful parser
and expression evaluator. Things get more interesting when a formula
involves named formulas, INDIRECT() and perhaps OFFSET(), depending on
your customer's expectations. And what would your customer expect of
formulas that include a look-up function? And what about array
formulas or array parameters?
I am as service-oriented as a person can be. But there is a point at
which I know I must tell a customer "it is cannot be reasonably done"
-- at least, not at a reasonable cost in dollars and time.
(Unless someone can find a ready-made application that perhaps that
kind of interpretation for a reasonable cost.)
There might be some reasonable alternatives that you can present to
your customer.
For example, it is not difficult to print spreadsheets that show each
formula, not their partial evaluation.
If you -- that is, your customer -- is amenable to that and you need
help doing that, that would be easy to assist you with.
On the other hand, if I misunderstood and unduly over-complicated your
requirements, forgive me -- and please clarify what you need.
For example, perhaps your formulas are not all that complicated after
all. If you can characterize your formulas in simpler terms, it might
be possible to write a macro with a very simple parser and evaluator.
("Possible", but perhaps stilll not likley, IMHO.)