+ Reply to Thread
Results 1 to 3 of 3

Sum if multiple conditions (AND/OR) are true

  1. #1
    Registered User
    Join Date
    07-27-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Sum if multiple conditions (AND/OR) are true

    Team Column has values like: Team A, Team B, Team C
    Project Priority Column has values like: A, B, C
    Project Duration has values like: 200, 300, 50, 10

    For Team A, I want to sum on project duration where Team = Team A AND Priority = A OR B

    For Team B, I want to sum on project duration where Team = Team B AND Priority = A OR B

    and so on for Team C, D, etc. Can someone please guide me.
    Last edited by Sameer123; 07-29-2010 at 05:11 PM. Reason: adding tags

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sum if multiple conditions (AND/OR) are true

    SUMPRODUCT() will do that.

    =SUMPRODUCT(--($A$1:$A$100="Team A"), --($B$1:$B$100="A")+($B$1:$B$100="B"), $C$1:$C$100)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-27-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Sum if multiple conditions (AND/OR) are true

    Thank you, that worked.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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