How to use a formula written as a string in another cell [evaluate for Google Spreadsheet] [duplicate]

Short answer Use a script that includes something like var formula = origin.getValue() to get the string and something like destination.setFormula(formula) to return the formula. Explanation As was already mentioned by the OP, Google Sheets doesn’t have a EVALUATE() built-in function. A custom function can’t be used because custom functions can only return one or … Read more

Is there a way to evaluate a formula that is stored in a cell?

No, there’s no equivalent to Excel’s EVALUATE() in Google Sheets. There’s long history behind this one, see this old post for instance. If you’re just interested in simple math (as shown in your question), that can be done easily with a custom function. function doMath( formula ) { // Strip leading “=” if there if … Read more