Cost Charge Conundrum

K

kjh198

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
 
B

Bob Phillips

=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
 
K

kjh198

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

Bob Phillips said:
=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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top