Ianmax49
65 pts. | Aug 9 2009 11:05PM GMT
Hi Mark,
Thanks for that! worked a treat.
I have psoted a further addition to my original question regarding the addtion of a new cell to the formula.
any help would be appreciated!
Regards
Ian
Dgrainge
70 pts. | Aug 12 2009 2:13PM GMT
A couple of further suggestions:
Use insert –> name to give your lookup table of dates and percentages a name. Suppose you call it datelist and it refers to A10:B11
The formula then becomes VLOOKUP(A4,namelist,2,FALSE)*B4
If you add a third (or more) date to your list, then redefine the cells namelist refers to e.g. A10:B14 or whatever.
Secondly to guarantee that your drop-downs correspond to the lookup table, I assume you’re using data validation, but base your selection on A10:A11, rather than typing in values into the validation list. The dropdown and the vlookup then share the same source data. And if you add to the list, you can change this to A10:A14 or whatever.
Derek






