Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Calculation wburritt Excel Worksheet Functions 4 November 16th 08 05:13 PM
Calculation vs formula Steve Stad Excel Worksheet Functions 2 September 6th 06 01:28 AM
calculation in an if formula Sharon L. Excel Worksheet Functions 2 January 21st 06 06:17 PM
base formula calculation on whether different cell has formula Bill Kuunders Excel Programming 0 June 21st 05 09:36 PM
base formula calculation on whether different cell has formula rcmodelr Excel Programming 3 June 19th 05 11:35 PM


All times are GMT +1. The time now is 10:15 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"