grexcelman
Board Regular
- Joined
- Mar 1, 2015
- Messages
- 50
I'm halfway to solving this dilemma of mine. I have a table listing dozens of formulas some of which are custom built through a 3rd party API like Bloomberg financial(call that "FormulaTable") while others are more custom designed. A formula can be selected based on two criteria from a data table, "ApplicationTable" where I hope to apply the selected formula given a relative cell value in that table.
Because there's about a dozen different categories in the ApplicationTable, and a given formula choice is dependent on two different field options, an IF statement was not option, nor was a Vlookup. I've solved this part of the problem with an function that uses index match code in vba and named that string variable, "GetMetric" -
Specifically, what I'd like to do is have that string value(the formula chosen from the FormulaTable), get applied to my ApplicationTable as a working formula in column F and apply it with a relative cell reference to column B.
Any ideas how to express a string value as an active formula? I've seen some ideas with evaluate function but couldn't seem to get the formula to work, instead it just printed the string value in the active cell.
Because there's about a dozen different categories in the ApplicationTable, and a given formula choice is dependent on two different field options, an IF statement was not option, nor was a Vlookup. I've solved this part of the problem with an function that uses index match code in vba and named that string variable, "GetMetric" -
Specifically, what I'd like to do is have that string value(the formula chosen from the FormulaTable), get applied to my ApplicationTable as a working formula in column F and apply it with a relative cell reference to column B.
Any ideas how to express a string value as an active formula? I've seen some ideas with evaluate function but couldn't seem to get the formula to work, instead it just printed the string value in the active cell.