Hi All,
I have a very long nested IF function calculating elapsed time relative to certain criteria. The formula works well until the criteria is changed and I have to rewrite the entire formula (some 50 statements).
I’m looking for alternatives and thought of VLOOKUP using a data table containing the formulas with the criteria as the lookup values. I have played around with VLOOKUP and it will return the formula, however, the formula is relative to the original position it was created as i.e. if my formula is SITE 1 = A2 + B2, should SITE 1 appear in row 50 the formula still returns A2 + B2
Is it even possible to Lookup a formula rather than a value? If so, how? I have added a small VBA code to apply Formulatext and can expand the formula as text (am using 2010) but still have trouble applying the formula relative to its position.
If not, is there a more efficient or alternative way to create many IF statements?
Attached is an example of some of the formulas I have nested into an IF Statement, ideally would want to create a table with the hours of operation as the look up value and for it return and apply the formula.
Thanks for your help
Bookmarks