SOLVED

Fetch formula from cell (or dropdown box)

Iron Contributor

I have a table with a calculation, and would like to easily switch formulas.

So I'd have a list of formulas next to the table, and with a dropdown box, would like to let the user choose which formula is used in the table.

Attached a simple example of the concept (screenshot below). The formula in the column "Result" should adapt to the selection in a dropbox, which would show Formula1, Formula2, etc.

bartvana_0-1611208542490.png

 

3 Replies
best response confirmed by bartvana (Iron Contributor)
Solution

@bartvana 

 

You could do it using IF, IFS, or perhaps SWITCH depending on how many formulas you plan to have.

 

You could also try the Evaluate function, which only works as a named formula in the name manager (attached).

Great, thanks!

You're welcome.
1 best response

Accepted Solutions
best response confirmed by bartvana (Iron Contributor)
Solution

@bartvana 

 

You could do it using IF, IFS, or perhaps SWITCH depending on how many formulas you plan to have.

 

You could also try the Evaluate function, which only works as a named formula in the name manager (attached).

View solution in original post