Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Enquiries about calculation formula
Is there a formula for the the following calculation (a to d)?
I have tried the following way but not successful. =if(a20.01,"1","0",if(a2100.01,"2","0",if(a2200 .01,"3","0".....continued to d) a) If the amount is greater than 0.01, than the rate is $1.00 b) If the amount is greater than 100.01, than the rate is $2.00 c) If the amount is greater than 200.01, than the rate is $3.00 d) If the amount is greater than 300.01, than the rate is $4.50 e) If the amount is greater than 400.01, than the rate is $5.50 Thank you very much for your response. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Enquiries about calculation formula
tRY:
=IF(AND(A2<100.01,A20.01),1,IF(AND(A2100.01,A2<2 00.01),2,IF(AND(A2200.01,A2<300.01),3,IF(AND(A23 00.01,A2<400.01),4.5,IF(A2400.01,5.5,0))))) Corey.... "Silver" wrote in message ... Is there a formula for the the following calculation (a to d)? I have tried the following way but not successful. =if(a20.01,"1","0",if(a2100.01,"2","0",if(a2200 .01,"3","0".....continued to d) a) If the amount is greater than 0.01, than the rate is $1.00 b) If the amount is greater than 100.01, than the rate is $2.00 c) If the amount is greater than 200.01, than the rate is $3.00 d) If the amount is greater than 300.01, than the rate is $4.50 e) If the amount is greater than 400.01, than the rate is $5.50 Thank you very much for your response. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Enquiries about calculation formula
hi,
i think you have it backwards. excel always chooses the first true and 100.01 will always be higher than .01' start with the highest value and work your way down. =IF(A2200.01,"3",IF(A2100.01,"2",IF(A20.01,"1", "0"))) i didn't continue on to d . sorry. but you should get the idea. Regards FSt1 "Silver" wrote: Is there a formula for the the following calculation (a to d)? I have tried the following way but not successful. =if(a20.01,"1","0",if(a2100.01,"2","0",if(a2200 .01,"3","0".....continued to d) a) If the amount is greater than 0.01, than the rate is $1.00 b) If the amount is greater than 100.01, than the rate is $2.00 c) If the amount is greater than 200.01, than the rate is $3.00 d) If the amount is greater than 300.01, than the rate is $4.50 e) If the amount is greater than 400.01, than the rate is $5.50 Thank you very much for your response. |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Enquiries about calculation formula
You should also consider adding a (=) in the equation atoo, in case the A2
value is exactly the specified value. "Corey ...." wrote in message ... tRY: =IF(AND(A2<100.01,A20.01),1,IF(AND(A2100.01,A2<2 00.01),2,IF(AND(A2200.01,A2<300.01),3,IF(AND(A23 00.01,A2<400.01),4.5,IF(A2400.01,5.5,0))))) Corey.... "Silver" wrote in message ... Is there a formula for the the following calculation (a to d)? I have tried the following way but not successful. =if(a20.01,"1","0",if(a2100.01,"2","0",if(a2200 .01,"3","0".....continued to d) a) If the amount is greater than 0.01, than the rate is $1.00 b) If the amount is greater than 100.01, than the rate is $2.00 c) If the amount is greater than 200.01, than the rate is $3.00 d) If the amount is greater than 300.01, than the rate is $4.50 e) If the amount is greater than 400.01, than the rate is $5.50 Thank you very much for your response. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Formula Calculation | Excel Worksheet Functions | |||
Calculation vs formula | Excel Worksheet Functions | |||
calculation in an if formula | Excel Worksheet Functions | |||
base formula calculation on whether different cell has formula | Excel Programming | |||
base formula calculation on whether different cell has formula | Excel Programming |