• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Rounding off the Rate

Dear All,


I have an excel sheet containing rates.


For Wieght upto 1000 gms Rate is 10 Rs. per packet

For every additional 500 gms above 1000 gms rate is 6 Rs.


HOw to incorporate this in an excel formula to calculate the rate applicable?
 
Hi Gaurav ,


Try the following formula :


=IF(A1<=1000,10,10+6*(INT((A1-1001)/500)+1))


I assume the weight is in cell A1. I assume that any weight up to and including 1000 gms. is at Rs. 10 , between 1001 and 1500 is at Rs. 16 and so on.


Narayan
 
Similar to Narayank's, just a different route:

=(INT(MAX(-1,A2-1001)/500)+1)*6+10
 
Back
Top