1 2 3 4 5 6 7 8 9 10 11 12 13
| If Cells(2,5).Value = 1 And Cells(2,6).Value <= 12 then
result = (9*10^2)*Cells(2,6).Value *45
Elseif Cells(2,5).Value = 2 And Cells(2,6).Value <= 10 then
result = (9*10^2)*Cells(2,6).Value *45
Elseif Cells(2,5).Value = 2 And Cells(2,6).Value = 11 then
result = 120*45
Elseif Cells(2,5).Value = 2 And Cells(2,6).Value = 12 then
result = 131*45
Elseif Cells(2,5).Value = 3 And Cells(2,6).Value >= 0 and Cells(2,6).Value <= 12 then
result = (9*10^2)*Cells(2,6).Value *45
Elseif Cells(2,5).Value = 4 And Cells(2,6).Value >= 0 and Cells(2,6).Value <= 3 then
result = (9*10^2)*Cells(2,6).Value *45
endif |