I'm building a spreadsheet, which uses different formula in cells. Those formulas change based on formula ID is called. For example, the formula lookup table looks like this:
Formula ID|Formula
__________+________________
1 | y=x+2
__________+________________
2 | y=x^2 - 34
__________+________________
3 | ...
__________+________________
... | ...
__________+________________
My main worksheet looks like this:
| A | B | C
___+_______+_______+________
1 | 2 | *** | =if(A1=2, use formula #2, which is "=B1^2-34", "")
=if(A1=1, use formula #1, which is "=B1+2", "")
___+_______+_______+________
2 | 1 | *** | =if(A1=2, use formula #2, which is "=B2^2-34", "")
=if(A1=1, use formula #1, which is "=B2+2", "")
___+_______+_______+________
3 | 2 | *** | =if(A1=2, use formula #2, which is "=B3^2-34", "")
=if(A1=1, use formula #1, which is "=B3+2", "")
"A" column displays formula ID. "B" column is the input of "x". "C" column is the function "y".
I could only find how to use the value in the lookup table, not formula. Please help. Thanks very much.