I have this and it works, but i want to add one more variable.
if a number 1 is entered in E5 then leave the formula alone to generate the number, but if a 2 is entered in E5 then run the fromula*2 - run the formula and times it by 2
Code
=IF(E3=1,A7+5,IF(E3=2,A7*2+5,IF(E3=3,A7*3+5,IF(E3=4,A7*4+5, IF(E3=5,A7*5+5,IF(E3=6,A7*6+5, IF(E3=7,A7*7+5, IF(E3=8,A7*8+5,IF(E3=9,A7*9+5,IF(E3=10,A7*10+5, IF(E3=11,A7*11+5, IF(E3=12,A7*12+5, IF(E3=13,A7*13+5, IF(E3=14,A7*14+5, IF(E3=15,A7*15+5, IF(E3=16,A7*16+5, IF(E3=17,A7*17+5, IF(E3=18,A7*18+5, IF(E3=19,A7*19+5, IF(E3=20,A7*20+5)))))))))))))))))))