+ Reply to Thread
Results 1 to 5 of 5

SUMIF with multiple criteria

  1. #1
    Registered User
    Join Date
    02-24-2010
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    SUMIF with multiple criteria

    Hi,

    i'm trying to make my spreadsheet add values in a column if it matches 2 criteria. before i've used sumif, but this only works with one criteria.

    the spreadsheet has 3 columns i'm interested in

    Name | Type | Quantity
    -----------------------------------
    Joe | A | 100
    Ben | B | 20
    Joe | B | 50

    name being a persons name, Type being type of material, and quantity being quantity produced.

    I need a way of adding all the quantitys that "joe" has made of each type. Hopefully something simple that my poor self taught Excel skills can handle.

    hope that makes some kind of sense
    Last edited by NBVC; 05-04-2010 at 11:00 AM.

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

    Re: Kinda like SUMIF, but different

    Try Sumproduct

    e.g. =Sumproduct(--(Range1=Criteria1),--(Range2=Criteria2),SumRange)
    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.

  3. #3
    Registered User
    Join Date
    02-24-2010
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: SUMIF with multiple criteria

    hmm... not sure i'm putting it in correctly. the excel help doesn't really give me much guidance as to the formatting to suit. i'm just getting errors... any chance you could type it out in the exact syntax so all i have to do is change the Range1 Range2 Criteria 1&2 and sum range values?

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

    Re: SUMIF with multiple criteria

    Yes, something like:

    =Sumproduct(--($A$2:$A$10="Joe"),--($B$2:$B$10=10),$C$2:$C$10)

    you can replace "Joe" and 10 with relative or partially relative reference cells containing those values so that you can copy down and/or across the formula.

    see here for the Sumproduct() function and its many faces....

    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Note: Pivot Tables may be another consideration as you will get all the unique combinations and their respective counts/sums.

  5. #5
    Registered User
    Join Date
    02-24-2010
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: SUMIF with multiple criteria

    most of what you said went over my head but the link was very usefull. got it working. thanks a lot

+ 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