+ Reply to Thread
Results 1 to 27 of 27

Alternative to SUMPRODUCT?

Hybrid View

  1. #1
    Registered User
    Join Date
    04-29-2010
    Location
    MD
    MS-Off Ver
    Office 2010
    Posts
    43

    Re: Alternative to SUMPRODUCT with VLOOKUP?

    NBVC,

    I hate to even ask, but can you revise the formula with the updated reference table? I'm having trouble implementing it and referencing the correct item.

  2. #2
    Registered User
    Join Date
    04-29-2010
    Location
    MD
    MS-Off Ver
    Office 2010
    Posts
    43

    Re: Alternative to SUMPRODUCT with VLOOKUP?

    This is how I revised my formula (with the proper fields):

    =SUM(MIN(CEILING(B17,1000),Calculations!A29)*Calculations!B28,MAX(0,MIN(SUM(Calculations!A28:A30),CEILING(B17,1000)-SUM(Calculations!A28:A31)))*Calculations!B29,MAX(0,MIN(SUM(Calculations!A28:A31),CEILING(B17,1000)-SUM(Calculations!A28:A31)))*Calculations!B30,MAX(0,MIN(SUM(Calculations!A28:A32),CEILING(B17,1000)-SUM(Calculations!A28:A32)))*Calculations!B31,MAX(0,MIN(SUM(Calculations!A28:A33),CEILING(B17,1000)-SUM(A28:A33)))*Calculations!B32,MAX(0,(CEILING(B17,1000)-SUM(A28:A33)))*Calculations!B33)/1000

    B17 = the value (or price)

    It kicks out a completely wrong #.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Alternative to SUMPRODUCT with VLOOKUP?

    Here you go.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    04-29-2010
    Location
    MD
    MS-Off Ver
    Office 2010
    Posts
    43

    Re: Alternative to SUMPRODUCT with VLOOKUP?

    Hey NBVC,

    Thanks again for all of your help but same issue.

    The formula is performing the first calculation, but it's not adding the others.

    For instance, a value of 400,000 kicks out 972.50. This takes care of the first 250,000 of the value, but we need to add that 972.50 to 150,000 x the next tier and so forth.

    Does this make sense?

  5. #5
    Registered User
    Join Date
    04-29-2010
    Location
    MD
    MS-Off Ver
    Office 2010
    Posts
    43

    Re: Alternative to SUMPRODUCT with VLOOKUP?

    Also, any reason you go from 501 to 1000001 in your reference table?

    I would think it should go:

    0
    250.01
    500.01
    1000.01
    5000.01
    15000.01

    Am I wrong?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Alternative to SUMPRODUCT with VLOOKUP?

    Forgot to multiply by 1000 on the first couple.

    Also, changed the formula to:

    =SUM(MIN(CEILING(Purchase!B3,1000),A3)*B2,MAX(0,MIN(SUM(A2:A4),CEILING(Purchase!B3,1000)-SUM(A2:A3)))*B3,MAX(0,MIN(SUM(A2:A5),CEILING(Purchase!B3,1000)-SUM(A2:A4)))*B4,MAX(0,MIN(SUM(A2:A6),CEILING(Purchase!B3,1000)-SUM(A2:A5)))*B5,MAX(0,MIN(SUM(A2:A7),CEILING(Purchase!B3,1000)-SUM(A2:A6)))*B6,MAX(0,(CEILING(Purchase!B3,1000)-SUM(A2:A7)))*B7)/1000
    Try that.
    Attached Files Attached Files

+ 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