Suppose I have an Excel formula that outputs a string of the form:
"X*10 + Y*30 + Y*40 + X*20"
How do I get Excel to collect terms and output, verbatim, their sum? I.e.:
"X*30 + Y*70"
Ideally I'd like to do this with formulas instead of a VBA script.
I'm using Excel for Mac in Office 365 Business (latest version).
I examined the accepted answer at: Excel function that evaluates a string as if it were a formula?
To try implementing it, I first tried Evaluate as if it were a "hidden" built-in function ["=EVALAUTE(....)"] and that didn't work. So I saved the VBA script in the accepted answer as a module, and tried it as a worksheet function ["=ev(....)], and that didn't work either. I suspect these Evaluate functions are designed to give numerical outputs rather than symbolic ones