Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2015, 12:38 PM
Abarxax Abarxax is offline formula for discounts Windows 7 64bit formula for discounts Office 2010 64bit
Novice
formula for discounts
 
Join Date: Dec 2013
Posts: 8
Abarxax is on a distinguished road
Default formula for discounts

Hi All,

I am having real trouble with a forumla. basically I need it to check a range of different discount rates.



in english it goes

if units sold is between 1-1000 give no discount, however if it is between 1000 & 5000 apply this discount and so on for about 4 differnet percentage rate. is there an easier way of doing this than if statements as I am struggling to get the logic of it right.
Reply With Quote
  #2  
Old 03-24-2015, 02:19 PM
Snakehips Snakehips is offline formula for discounts Windows 8 formula for discounts Office 2013
Advanced Beginner
 
Join Date: Mar 2015
Posts: 36
Snakehips is on a distinguished road
Default

Abarxax,

Structure it as below example starting with the low volume discount and then progress through the larger discounts.
Eg 1 -1000 0%, 1001 - 5000 5%, 5001 - 10000, 10%, 10000 + 15%

Assuming Qty in B2 and Unit Price in C2 then
=B2*C2*(1-IF(B2<1001,0%,IF(B2<5001,5%,IF(B2<10001,10%,15%))) )

Alternatively you could use a lookup table approach.

Hope that helps.
Reply With Quote
  #3  
Old 03-24-2015, 02:26 PM
Abarxax Abarxax is offline formula for discounts Windows 7 64bit formula for discounts Office 2010 64bit
Novice
formula for discounts
 
Join Date: Dec 2013
Posts: 8
Abarxax is on a distinguished road
Default

Quote:
Originally Posted by Snakehips View Post
Abarxax,

Structure it as below example starting with the low volume discount and then progress through the larger discounts.
Eg 1 -1000 0%, 1001 - 5000 5%, 5001 - 10000, 10%, 10000 + 15%

Assuming Qty in B2 and Unit Price in C2 then
=B2*C2*(1-IF(B2<1001,0%,IF(B2<5001,5%,IF(B2<10001,10%,15%))) )

Alternatively you could use a lookup table approach.

Hope that helps.
That does a lot however is there a way to get it to do this for between two numbers like if it is between say 1000 & 5000 give 0%, if it is greater than 5000 but less that 10000 give 5% discount and so on?
Reply With Quote
  #4  
Old 03-24-2015, 02:51 PM
Snakehips Snakehips is offline formula for discounts Windows 8 formula for discounts Office 2013
Advanced Beginner
 
Join Date: Mar 2015
Posts: 36
Snakehips is on a distinguished road
Default

Because the IF statements are evaluated left to right, using .... <each top limit +1 , will effectively do just that will it not?

My formula is an example with 4 discounts but you can reduce it to two ranges if you wish.

If it is important to exclude quantities less than say 1000 receiving 0% discount or 1000000 receiving the top discount ??? then you could add some > conditions.
Reply With Quote
  #5  
Old 03-25-2015, 01:08 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline formula for discounts Windows 7 64bit formula for discounts Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Another formulation
Code:
=B2*C2*LOOKUP(B2,{0,1001,5001,10001},{0,0.05,0.1,0.15})
You can replace the arrays with ranges making the formula more flexible
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 04-10-2015, 01:25 PM
Abarxax Abarxax is offline formula for discounts Windows 7 64bit formula for discounts Office 2010 64bit
Novice
formula for discounts
 
Join Date: Dec 2013
Posts: 8
Abarxax is on a distinguished road
Default

Hi Guys Thanks for responding sorry I didn't reply sooner I have been out of the country.

I am getting myself a little confused so if I try and type out the formula I am wanting to do maybe someone could help. I apologize but this is new stuff to me really

Basically I have some discount rates if someone buys over a certain number of units they are as follows

1000-10000 no discount
11000-25000 5% discount
26000-50000 10% discount
Over 50000 20%
Over 100000 30%

Basically I have the formula in my head I just can't translate it into an IF especially a nested one.

the formula in my head goes a bit like this

US = Units Sold
SP = Sale Price

IF US is > 100,000 Then do SP/100*30 = Discount Price for 1 unit. If its not then do
IF US is > 50,000 But < 100,000 then do SP/100*20 and so on til I have checked all discount rates.

Is there a better/easier way of doing this?
Reply With Quote
  #7  
Old 04-13-2015, 12:24 PM
Snakehips Snakehips is offline formula for discounts Windows 8 formula for discounts Office 2013
Advanced Beginner
 
Join Date: Mar 2015
Posts: 36
Snakehips is on a distinguished road
Default

Abarxax,

In order to get the appropriate discount rate in line with your latest posting I suggest you go with a revamp of Pecoflyer's lookup formula.

Assuming the Units Sold to be in B2 then ........
=LOOKUP(B2,{0,11000,26000,50001,100001},{0,0.05,0. 1,0.2,0.3})
will return the appropriate discount as a decimal fraction.

It's up to you as to how you need to use it. Eg whether you need to display it in a cell of it's own (Formatted as %) or whether you just need to use it as part of another formula, directly, in order to compute the discount value and /or the discounted selling price.

Eg if the Unit Selling Price is in C2 then the discount value is.....
=C2*LOOKUP(B2,{0,11000,26000,50001,100001},{0,0.05 ,0.1,0.2,0.3})

or the Discounted Selling Price is .......

=C2*(1-LOOKUP(B2,{0,11000,26000,50001,100001},{0,0.05,0.1 ,0.2,0.3}))
Reply With Quote
Reply

Tags
discount, excel 2010, range



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I calculate price discounts and also identify top customer? cwarfox Excel 2 12-25-2014 04:42 AM
formula for discounts Formula Help withersd46260 Excel 2 04-30-2014 08:33 AM
formula for discounts What formula should I use? TotalONE Excel 3 11-26-2013 01:30 PM
formula for discounts Need Help w/Formula OSCAR MARTINEZ Excel 1 09-28-2013 05:39 AM
formula for discounts Help with Formula Corca Excel 6 02-22-2010 09:40 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:23 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft