Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default multiply value based on quantity

I am trying to calculate a discount price based on quantity purchased. For
example if someone buys 20 widgets they pay $4.00 each for them, if they buy
50 widgets they pay $4.00 each for the first 20, then $3.50 each for the next
30, 100 widgets - $4.00 first 20, $3.50 next 30 and $3.25 for the other
50..............

Any hope?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default multiply value based on quantity

Here's a way with quantity in A2:

=MIN(A2,20)*4+MAX(MIN(A2-20,30),0)*3.5+MAX(MIN(A2-50,50),0)*3.25

Regards,
Per

"Bigfoot3910" skrev i meddelelsen
...
I am trying to calculate a discount price based on quantity purchased. For
example if someone buys 20 widgets they pay $4.00 each for them, if they
buy
50 widgets they pay $4.00 each for the first 20, then $3.50 each for the
next
30, 100 widgets - $4.00 first 20, $3.50 next 30 and $3.25 for the other
50..............

Any hope?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default multiply value based on quantity

Hi,

You may get some pointers from B) 1) from this link -
http://ashishmathur.com/articles.aspx

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Bigfoot3910" wrote in message
...
I am trying to calculate a discount price based on quantity purchased. For
example if someone buys 20 widgets they pay $4.00 each for them, if they
buy
50 widgets they pay $4.00 each for the first 20, then $3.50 each for the
next
30, 100 widgets - $4.00 first 20, $3.50 next 30 and $3.25 for the other
50..............

Any hope?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default multiply value based on quantity

On Tue, 20 Apr 2010 22:42:01 -0700, Bigfoot3910
wrote:

I am trying to calculate a discount price based on quantity purchased. For
example if someone buys 20 widgets they pay $4.00 each for them, if they buy
50 widgets they pay $4.00 each for the first 20, then $3.50 each for the next
30, 100 widgets - $4.00 first 20, $3.50 next 30 and $3.25 for the other
50..............

Any hope?


To set up a method of doing this that is easily maintainable, and extensible,
you could use a lookup table.

Somewhere on your worksheet set up a table. I NAME'd it "Tbl" (without quotes)

With your data, your table would look like:

0 $ 0.00 $4.00
20 $ 80.00 $3.50
50 $185.00 $3.25
....

Note that column 2 is the total cost of what came before. So if your table is
in I1:K3, then J2: =(I2-I1)*K1+J1 and you fill down as far as needed.

Then, with your quantity in A1, the total cost is given by:

=VLOOKUP(A1,Tbl,2)+(A1-VLOOKUP(A1,Tbl,1))*VLOOKUP(A1,Tbl,3)
--ron
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
Trying to multiply data by one cell, based on data of another ADC76 Excel Discussion (Misc queries) 3 April 6th 09 10:01 PM
Need a formula to increase quantity of one cell until the quantity ofanother is exceeded rudyeb Excel Discussion (Misc queries) 1 October 24th 08 03:34 PM
Total sum based on different costs for each new quantity group Tboogie21 Excel Worksheet Functions 3 January 26th 07 12:56 PM
add value of 4 cells, multiply by 3 subtract 72 multiply by 80% George A. Yorks Excel Discussion (Misc queries) 10 October 25th 06 09:45 PM
excel multiply by different values based on quantity ronzander1 Excel Discussion (Misc queries) 1 January 11th 06 08:54 AM


All times are GMT +1. The time now is 01:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"