+ Reply to Thread
Results 1 to 2 of 2

Sum product formula.

  1. #1
    Forum Contributor
    Join Date
    02-11-2008
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    242

    Sum product formula.

    Hi,
    I have this excel workbook where in there is a Snap Shot sheet,where we have to provide the count of distributor billed for a product,where zone =" ",month=" "
    for that I have written a formula,=(SUMPRODUCT((raws!$B$5:$B$2000=$C$2)*(raws!$A$5:$A$2000=$C$3)*(raws!$E$5:$E$2000=$B7)*(raws!$F$5:$F$2000=1)))
    which works perfectly fine for all distributors who have billed during that month.But my requirement is the count of distributors who haven't billed during that month.
    Attached Files Attached Files

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sum product formula.

    First off, I see that you have array entered your SUMPRODUCT() formulas. That isn't necessary. They just need to be confirmed with the Enter key. The first set of brackets is also not necessary, so the formula would be:
    =SUMPRODUCT((raws!$B$5:$B$2000=$C$2)*(raws!$A$5:$A$2000=$C$3)*(raws!$E$5:$E$2000=$B7)*(raws !$F$5:$F$2000=1))

    Now, the best part - you don't need SUMPRODUCT() at all - you can use COUNTIFS() which is more efficient. Use this in cell Snap shot!C5:
    =COUNTIFS(raws!$B$5:$B$2000,$C$2,raws!$A$5:$A$2000,C$3,raws!$E$5:$E$2000,$B5,raws!$F$5:$F$2000,1) and drag down

    And as for your question, what determines a distributor who hasn't billed? Would it be simply 'not a 1' in column F? If so, then this in D5
    =COUNTIFS(raws!$B$5:$B$2000,$C$2,raws!$A$5:$A$2000,C$3,raws!$E$5:$E$2000,$B5,raws!$F$5:$F$2000,"<>1") and drag down

+ 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