Or formulae, if you prefer? I have a spreadsheet with nine columns of various data values, and a tenth column that contains a flag value (N, or S, or L, or NW, etc.). The flag identifies the nature of the data in that row (long story, not important for my question).
The *** ELEVENTH *** column needs to calculate a value using a formula, and the formula is different for each possible flag. I'm wondering if I can build a lookup table that contains the flags and the associated formulas, so my 11th column will in each case produce the correct value for each row's assigned flag. For example, on row 1 the N flag would use A1*A4/A6, on row 2 the L flag would use (A2-A7)*A3, and so on.
I'm sure I can do this with a custom VBA function, but would rather not go that route with this particular customer if a lookup table can do what I need. That way they can tweak any of the formulas without having to get into VBA coding.
Bookmarks