Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default 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




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
Conundrum Saxman[_2_] Excel Discussion (Misc queries) 7 July 22nd 07 06:09 PM
COUNTIF conundrum mmcap Excel Worksheet Functions 5 February 14th 07 05:44 AM
VBA conundrum csi New Users to Excel 4 October 27th 05 08:02 PM
Current Cost versus Original Cost A Boe New Users to Excel 2 August 19th 05 02:19 AM
Confusion on adding percentage of cost to that cost. [email protected] Excel Worksheet Functions 12 July 13th 05 11:45 PM


All times are GMT +1. The time now is 08:25 AM.

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"