+ Reply to Thread
Results 1 to 2 of 2

SumIF for multiple conditions

  1. #1
    Registered User
    Join Date
    12-09-2004
    Posts
    53

    Exclamation SumIF for multiple conditions

    I have a series of dates with hours next to them like this:

    Week Hours Location
    2001.15 1 US
    2001.16 4 Brazil
    2002.15 7 US
    2003.16 3 Mexico

    I can do a Sumif and make it add up all the hours in week 2001.15 or I can have it add up all the hour in the US. But how can I make it sum the hours that were in 2001.15 and in the US? Basically I need to do a sumif with multiple conditions. Any ideas? Thanks.

    Chuck.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Assuming that Column A does not contain true date values, but contains numerical values, try...

    =SUMPRODUCT(--(A2:A5=2001.15),--(C2:C5="US"),B2:B5)

    Hope this helps!

+ 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