ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   breakpoint calculation (https://www.excelbanter.com/excel-worksheet-functions/207289-re-breakpoint-calculation.html)

RagDyeR

breakpoint calculation
 
Try this:

=LOOKUP(A1,{0,46,101,301,501,10001;9.5,8.5,7.5,4.5 ,3.5,1.5})*A1
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Oliver" wrote in message
...
The following is a presentation of rate table:
<45kg +45KG +100KG +300KG +500KG +10000KG
$9.5 $8.5 $7.5 $4.5 $3.5 $1.5

It reads if weight is smaller than 45kg then we charge $9.5 per kg; if
weight is between 45 and 100kg then we charge $8.5 and so on; is there
an easy way to write a formula to calculate the total charge based on
the weight?
I could use if(weight<45,9.5*weight,if(and(weight45,weight<10 0),
8.5*weight, etc etc) but it will be a long formula...
i think it must have an easy way to do this...




All times are GMT +1. The time now is 12:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com