ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Cost Charge Conundrum (https://www.excelbanter.com/excel-worksheet-functions/191386-cost-charge-conundrum.html)

kjh198

Cost Charge Conundrum
 
I've got to calculate whether some total charges are correct but the format
of the charges is not straight-forward.

It is based on a range ie.
1 = $100
2-10 = $75
11 - 20 = $50
21+ = $25

These charges are applied in steps. ie. if there is 11, the 1st will be
charged $100, the 2nd - 10th charged $75 each and the 11th charged $50.

What function can I use to indicate the total charges are correct with "OK"
"NOT OK"?

I am using a reference figure for the total number of products and another
reference figure for the total charges - to compare against.

Any one got any ideas??????

TIA


Bob Phillips[_3_]

Cost Charge Conundrum
 
=MAX(0,MIN(A1,1))*100+MAX(0,MIN(A1-1,9))*75+MAX(0,MIN(A1-10,10))*50+MAX(0,A1-20)*25

--
__________________________________
HTH

Bob

"kjh198" wrote in message
...
I've got to calculate whether some total charges are correct but the
format
of the charges is not straight-forward.

It is based on a range ie.
1 = $100
2-10 = $75
11 - 20 = $50
21+ = $25

These charges are applied in steps. ie. if there is 11, the 1st will be
charged $100, the 2nd - 10th charged $75 each and the 11th charged $50.

What function can I use to indicate the total charges are correct with
"OK"
"NOT OK"?

I am using a reference figure for the total number of products and another
reference figure for the total charges - to compare against.

Any one got any ideas??????

TIA




kjh198

Cost Charge Conundrum
 
Bob, you're a star that's perfect! ;)

"Bob Phillips" wrote:

=MAX(0,MIN(A1,1))*100+MAX(0,MIN(A1-1,9))*75+MAX(0,MIN(A1-10,10))*50+MAX(0,A1-20)*25

--
__________________________________
HTH

Bob

"kjh198" wrote in message
...
I've got to calculate whether some total charges are correct but the
format
of the charges is not straight-forward.

It is based on a range ie.
1 = $100
2-10 = $75
11 - 20 = $50
21+ = $25

These charges are applied in steps. ie. if there is 11, the 1st will be
charged $100, the 2nd - 10th charged $75 each and the 11th charged $50.

What function can I use to indicate the total charges are correct with
"OK"
"NOT OK"?

I am using a reference figure for the total number of products and another
reference figure for the total charges - to compare against.

Any one got any ideas??????

TIA






All times are GMT +1. The time now is 08:02 PM.

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