+ Reply to Thread
Results 1 to 4 of 4

SumProduct on Multiple Criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    48

    SumProduct on Multiple Criteria

    I got a question why the sumproduct can not detect the value on the second cateria that i want

    =SUMPRODUCT(($D$2:$D$15="Cash")*($E$2:$E$15="1"))
    but it give me zero suppose have 1. Why like this ? Please help
    Date Invoice Company ID Method Amount
    15/01/2008 110187 Check 57.62
    16/01/2008 110188 Cash 1.00
    16/01/2008 110189 CC 23.74
    16/01/2008 110190 Check 49.12
    17/01/2008 110191 Check 17.35
    18/01/2008 110192 CC 62.95
    18/01/2008 110193 Cash 1.41
    18/01/2008 110194 Check 23.62
    19/01/2008 110195 Check 58.83
    20/01/2008 110196 Check 81.07
    20/01/2008 110197 Check 51.31
    21/01/2008 110198 CC 36.92
    21/01/2008 110199 Cash 82.68
    21/01/2008 110200 CC 53.41
    Last edited by Cutter; 07-21-2012 at 11:52 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,050

    Re: SumProduct on Multiple Cateria

    Try:

    =SUMPRODUCT(($D$2:$D$15="Cash")*($E$2:$E$15=1))

    I tend to prefer:

    =SUMPRODUCT(--($D$2:$D$15="Cash"),--($E$2:$E$15=1))

    I usually end up coercing more values than I need to but, hey, it also usually works.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SumProduct on Multiple Cateria

    You get only 4 collumn. You want to find a value in collumn 5 (E).

    This is empty and so it returns zero.

    Maybe that's the reason.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,050

    Re: SumProduct on Multiple Cateria

    @oeldere: I was assuming that this was just the poor representation of the data, though you could be right.

    I think column D is Method which is "cheque", "cash", etc., which means that column E is "amount ... which has one matching record.

    Regards

+ 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