+ Reply to Thread
Results 1 to 4 of 4

Tiered pricing issue

Hybrid View

  1. #1
    Registered User
    Join Date
    06-02-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    2

    Tiered pricing issue

    Well I thought I had this entire problem figured out utilizing numerous nested IF statements however I quickly began to find holes in the solution and realize I need some help.

    The setup is simple...I am tallying our print users pages printed totals on a monthly basis. Users are given 750 pages for free, pages 751 to 1500 are charged at $.03 and 1501+ are charged at $.05.

    My original plan was along the following lines, where H2 is year to date total and I2 is the current month:
    =IF(H2>1500,I2*0.05,(IF(H2 > 750,I2*0.03,(IF(I2 < 1500,IF(I2 >750, (I2-750)*0.03,0),((I2-1500)*0.05)+22.5)))))

    I'm not sure how to account for those users that say have 50 pages in January then end up with 1800 in February, so that they get charged the $22.50 for those 751-1500 plus the approx $15 for next 300 pages. Thanks for any leads!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Tiered pricing issue

    With
    H1: YTD_Pages
    H2: a YTD count....eg 751

    I1: CurrMthPages
    I2: a Curr Mth count...eg 700

    J1: Price

    and...these values in M1:P4
    Over       Thru    Rate  Incremental
    0          750    $0.00        $0.00 
    750       1500    $0.03        $0.03 
    1500  Infinity    $0.05        $0.02
    This formula returns the Curr Mth Price:
    J2: =SUMPRODUCT((H2>$M$2:$M$4)*(H2-$M$2:$M$4)*$P$2:$P$4)
    -SUMPRODUCT(((H2-I2)>$M$2:$M$4)*((H2-I2)-$M$2:$M$4)*$P$2:$P$4)
    In the above example, the formula returns: $0.03
    because during the current month, the user crossed the $0.03 threshhold by 1 page.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    06-02-2010
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Tiered pricing issue

    This is perfect Ron! I should have come up with that small array idea considering the few hours I spent thinking about this. Thanks again!

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Tiered pricing issue

    You're very welcome...Glad I could help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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