+ Reply to Thread
Results 1 to 3 of 3

IF greater than, multiple by, and add range to next range multiplier.

  1. #1
    Registered User
    Join Date
    01-30-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    IF greater than, multiple by, and add range to next range multiplier.

    We do some discounts for clients where we offer discounts on quantities. I have a column of figures and I can't for the life of me figure out how to add each range. I have the IF statement down to say, IF within this range THAN multiple by, but it doesn't add them together.

    Example:
    0-15 Items = Free
    16-200 Items = $.75 each
    201-500 Items = $.50 each
    501+ = $.25 each

    So I have =IF(A1<16, A1*0, IF(A1<201, A1*0.75, IF(A1<501, A1*0.5, A1*0.25))) Assuming "A"column are my amounts

    Problem is that I want to add each range. So for 600 pieces, the first 15 are free, 16 thru 200 are .75 ea PLUS the $200 thru 500 are .50 PLUS the remaining 100 that are .25

    How can I add these together?

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: IF greater than, multiple by, and add range to next range multiplier.

    Use

    =SUMPRODUCT(--(A1>{0;15;200;500}), (A1-{0;15;200;500}), {0;0.75;-0.25;-0.25})

    Well explained here
    http://www.mcgimpsey.com/excel/variablerate.html
    http://www.excelforum.com/excel-form...lculation.html
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    01-30-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: IF greater than, multiple by, and add range to next range multiplier.

    Thanks Ace. You're my hero

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 09-24-2013, 08:57 AM
  2. [SOLVED] sum range if the sum of another range is greater than 0
    By juliangun4ev in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-22-2013, 06:31 PM
  3. [SOLVED] Count cells in a range greater than cells in another range
    By D.Lovell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-14-2013, 03:20 PM
  4. Count if Value in Range 1 greater than value in Range 2
    By solnajeff in forum Excel General
    Replies: 5
    Last Post: 11-24-2009, 08:34 PM
  5. determine what my multiplier should be based on a range of numbers
    By BbAaSsSs in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-10-2007, 03:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1