+ Reply to Thread
Results 1 to 7 of 7

sumproduct and ifs....issue

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    sumproduct and ifs....issue

    hello all

    struggling or rather wanting to make sure my logic in my formula is functioning correctly from the excel gurus.

    basically im trying to modify payout for sales ppl

    here is OLD payout breakdown
    1st item sold = $50
    any additional item = $10
    (i.e. if 6 items sold, then (1*$50)+(5*$10)=$100

    but NOW
    1st item sold = $50
    any additional item = $10
    if in the month, items sold exceeds 11, then on the 12th item onwards payout is $75 (if month has 4 weeks)...and if month has 5 weeks, every 15th + item is $75

    here is my formula
    =IF(Q15<12,SUMPRODUCT(--('CSA Detail'!$D$15:$D$414=$P15),--('CSA Detail'!$E$15:$E$414=Q$14),'CSA Detail'!$K$15:$K$414),SUMPRODUCT(--('CSA Detail'!$D$15:$D$414=$P15),--('CSA Detail'!$E$15:$E$414=Q$14),'CSA Detail'!$K$15:$K$414)+(SUMPRODUCT(--($D$15:$D$414=$P15),--($E$15:$E$414=Q$14),--($J$15:$J$414))-VLOOKUP(Q$14,Lookup!$K$2:$M$13,3,FALSE))*'CSA Detail'!$D$8)

    in my attached workbook...i have highlighted in red column S13 where i think my calculation is not working

    can someone pls help!
    Attached Files Attached Files
    Last edited by jw01; 12-15-2011 at 10:35 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: sumproduct and ifs....issue

    Hi jwo1,
    May be this attachment helpful with you.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: sumproduct and ifs....issue

    hey thx u so much for your great help....the formula works great

    just one question/issue

    it's working great however
    - In the event the rep is able to close more than 12 deals in the month, the bonus for each additional deal will increase from $50 to $75 (this formula works fine)...however..... the multiple service location bonus on the same deal will remain at $10.

    i.e.
    in P1 I sold 13 deals, however one of the deals has multiple locations (column J) i.e. 2...so if it is more than 12 deals, then it becomes first location is $75 + any additional location reverts back to $10

    in the solution, it simply adds $75 + $75 if tehre are two deals...can u pls help!!!

    thxs so much!
    Last edited by jw01; 12-15-2011 at 01:34 PM.

  4. #4
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: sumproduct and ifs....issue

    i tried this in J15 but it messes up

    =IF(E14="",0,IF(SUMPRODUCT(--($D$14:D14=D14),--($E$14:E14=E14))<VLOOKUP(E14,Lookup!$K$2:$M$13,3,FALSE),(J14-MIN(J14,MAX(SUMPRODUCT(--($D$14:D14=D14),--($E$14:E14=E14),$J$14:J14)-VLOOKUP(E14,Lookup!$K$2:$M$13,3,)+1,0)))*10+((J14-MIN(J14,MAX(SUMPRODUCT(--($D$14:D14=D14),--($E$14:E14=E14),$J$14:J14)-VLOOKUP(E14,Lookup!$K$2:$M$13,3,)+1,0)))>0)*40,+IF(J14<2,MIN(J14,MAX(SUMPRODUCT(--($D$14:D14=D14),--($E$14:E14=E14),$J$14:J14)-VLOOKUP(E14,Lookup!$K$2:$M$13,3,)+1,0))*75,+MIN(J14,MAX(SUMPRODUCT(--($D$14:D14=D14),--($E$14:E14=E14),$J$14:J14)-VLOOKUP(E14,Lookup!$K$2:$M$13,3,)+1,0))*10+65)))

    can someone pls help!

  5. #5
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: sumproduct and ifs....issue

    any help guys!!??

  6. #6
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,228

    Re: sumproduct and ifs....issue

    hello guys

    pls see attached workbook

    i have managed to make the formula work...however it is giving me an issue whnever column J exceeds greater than 2 locations and assigns the values below a $0 *pls see highlight in red**

    ive been stuck on this for the past 4 hours...pls help!

    https://skydrive.live.com/redir.aspx...111&parid=root

    PLs see link for attachment....my work firewall or something is not letting me upload it on to excelforum for some odd reason

    it is much apprecaited! **pls run macro to unprotect file**
    Last edited by jw01; 12-15-2011 at 04:33 PM.

  7. #7
    Valued Forum Contributor
    Join Date
    12-14-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2007
    Posts
    439

    Re: sumproduct and ifs....issue

    Hi jw01
    I'm sorry. When you posting, i was sleeping because i live in Vietnam where the time zone is GMT +7:00
    You can try with this formula.
    Please Login or Register  to view this content.
    For first attachment.
    My English is very bad. I'm sorry if you feel uncomfortable.

+ 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