Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Total sum based on different costs for each new quantity group

How do I calculate this situation?
Assumptions:
For the first 500 units, the cost per unit is $25
Between 501-1000 units, the cost per unit is $17.50
Between 1001-2000 units, the cost per unit is $10

To calculate total cost for 1,900 units, I have to say:
(500*$25) + (499*$17.50) + (901*$10)

--
t
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 860
Default Total sum based on different costs for each new quantity group

To calculate total cost for 1,900 units, I have to say:
(500*$25) + (499*$17.50) + (901*$10)


First up this bit isn't right, it should read
(500*$25) + (500*$17.50) + (900*$10)

With the following input

A1 = 25
A2 = 17.50
A3 = 10
B1 = 1900

Then put this in C1

=IF(B11000,((B1-1000)*A3)+(A2*500)+(A1*500),IF(AND(B1<1000,B1500) ,(B1-500)*A2+(A1*500),B1*A1))

HTH
Martin


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Total sum based on different costs for each new quantity group

...........A.........B..........C.............D
1.....1900........0..........25..........25
2.................500..........17.5.....-7.5
3...............1000..........10........-7.5

=SUMPRODUCT(--(A1B1:B3), (A1-B1:B3),D1:D3)

Or, without the table:

=SUMPRODUCT(--(A1{0;500;1000}), (A1-{0;500;1000}),{25;-7.5;-7.5})

http://mcgimpsey.com/excel/variablerate.html

Biff

"MartinW" wrote in message
...
To calculate total cost for 1,900 units, I have to say:
(500*$25) + (499*$17.50) + (901*$10)


First up this bit isn't right, it should read
(500*$25) + (500*$17.50) + (900*$10)

With the following input

A1 = 25
A2 = 17.50
A3 = 10
B1 = 1900

Then put this in C1

=IF(B11000,((B1-1000)*A3)+(A2*500)+(A1*500),IF(AND(B1<1000,B1500) ,(B1-500)*A2+(A1*500),B1*A1))

HTH
Martin



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Total sum based on different costs for each new quantity group

Thanks!
--
t


"MartinW" wrote:

To calculate total cost for 1,900 units, I have to say:
(500*$25) + (499*$17.50) + (901*$10)


First up this bit isn't right, it should read
(500*$25) + (500*$17.50) + (900*$10)

With the following input

A1 = 25
A2 = 17.50
A3 = 10
B1 = 1900

Then put this in C1

=IF(B11000,((B1-1000)*A3)+(A2*500)+(A1*500),IF(AND(B1<1000,B1500) ,(B1-500)*A2+(A1*500),B1*A1))

HTH
Martin



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
format group of rows based on condition Aaron Excel Discussion (Misc queries) 0 January 10th 06 12:29 AM
calculate price * quantity = total amount in a row of excel forml. t. ramachandra rao Excel Worksheet Functions 0 November 23rd 05 07:46 PM
Subtotaling based on more than one group Anthony Excel Worksheet Functions 1 July 19th 05 08:45 PM
Subtract a group of cells from a total based on ending date Nicholas Scarpinato Excel Discussion (Misc queries) 0 May 17th 05 03:25 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 05:23 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"