+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT incorrectly calculating price tiers

  1. #1
    Registered User
    Join Date
    08-16-2017
    Location
    Canada
    MS-Off Ver
    MacOS 2016
    Posts
    2

    Angry SUMPRODUCT incorrectly calculating price tiers

    I’m trying to figure out how to calculate the total amount a customer will pay for products that are discounted in tranches. My problem is that using SUMPRODUCT appears to count each tranche multiple times, as illustrated below.

    Here’s the pricing sheet. The idea is that 1-10 seats costs $100/seat; the next 10 seats (from 11-20) cost $75/seat; the next 10 (from 21-30) costs $50/seat; and 31 seats and up costs $25/seat.

    Base price: $100

    Please Login or Register  to view this content.
    I’ve entered this into Excel as follows:

    Please Login or Register  to view this content.
    The formula I used is: =SUMPRODUCT(--(Seat Count>Threshold), Seat Count-Threshold, EffectiveRate). Below is a table comparing the actual prices with the incorrectly-calculated price via .

    Please Login or Register  to view this content.
    Breaking the formula down, it becomes clear that it counts each tranche multiple times. E.g., for 11 users, it counts (11*100) + (1*75). For 20 users it counts (20*100)+(10*75).

    Please Login or Register  to view this content.
    Any advice on how to fix this would be greatly appreciated.

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: SUMPRODUCT incorrectly calculating price tiers

    Quote Originally Posted by awenner View Post
    Please Login or Register  to view this content.

    The formula I used is:
    =SUMPRODUCT(--(Seat Count>Threshold), Seat Count-Threshold, EffectiveRate).
    In order for the formula to work, what you call "effective rate" should be a differential rate. If the "discount rate" is column C and 0% is in row 2, enter the following formulas:

    D2: =C2
    D3: =C3-C2
    Copy D3 into D4:D5

  3. #3
    Registered User
    Join Date
    08-16-2017
    Location
    Canada
    MS-Off Ver
    MacOS 2016
    Posts
    2

    Re: SUMPRODUCT incorrectly calculating price tiers

    That solved the problem. Thanks!

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: SUMPRODUCT incorrectly calculating price tiers

    Quote Originally Posted by awenner View Post
    Please Login or Register  to view this content.
    Quote Originally Posted by joeu2004 View Post
    In order for the formula to work, what you call "effective rate" should be a differential rate. If the "discount rate" is column C and 0% is in row 2, enter the following formulas:
    D2: =C2
    D3: =C3-C2
    Copy D3 into D4:D5
    Quote Originally Posted by awenner View Post
    That solved the problem.
    But not as I wrote it. If you got it to work, presumably you fixed my mistakes. Good for you!

    For posterity, I think the correct solution is....

    Add a "differential price" column to the right of "effective rate" [sic]. (I would call it "effective price".) If "effective rate" is in column D and 100 is in row 2, enter the following:

    E2: =D2
    E3: =D3-D2
    Copy E3 into E4:E5

    Then the formula to calculate total price is:

    =SUMPRODUCT(--(seatCount>$B$2:$B$5), seatCount-$B$2:$B$5, $E$2:$E$5)

+ 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. Sumproduct calculating incorrectly?
    By Here2learn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2015, 09:20 AM
  2. Multiple Price Tiers for Excel Estimate.. HELP!
    By justinrmjc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2014, 09:28 PM
  3. [SOLVED] Calculating % of cost with different tiers
    By Schnizzle in forum Excel General
    Replies: 2
    Last Post: 03-27-2012, 09:08 AM
  4. calculating discount 15 tiers
    By bamboozle in forum Excel General
    Replies: 2
    Last Post: 04-12-2010, 01:24 PM
  5. Excel incorrectly calculating sumproduct
    By cmf0106 in forum Excel General
    Replies: 1
    Last Post: 11-23-2009, 01:13 PM
  6. formulas calculating incorrectly
    By Toidz77 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 08-22-2009, 09:35 AM
  7. Macro calculating incorrectly.. what can cause this?
    By Celt in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-09-2006, 12:10 AM

Tags for this Thread

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