+ Reply to Thread
Results 1 to 6 of 6

Sum cells that meet ALL criteria

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Sum cells that meet ALL criteria

    I have a column of figures in H:H that I want to sum should all criteria be met and not just any of the criteria but I cannot seem to get this to work.

    I can get each criteria to work on it's own but have not worked how to combine them; can anyone help?

    Please Login or Register  to view this content.
    This checks that the date in D1 is after the Start Date in Column A.

    Please Login or Register  to view this content.
    This checks that the only figures totalled are for a particular collection date.

    Please Login or Register  to view this content.
    This checks that no End Date has been entered in Column B.

    Please Login or Register  to view this content.
    This checks that if there is an End Date entered it is before the date we are summing the data for.


    I really hope one of you clever folk can suss this. TIA
    Last edited by Andrew-Mark; 03-07-2012 at 11:02 AM.

  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 cells that meet ALL criteria

    You're using 2007, so you can switch from SUMIF to SUMIFS().

    =SUMIFS(SumRange, FirstTestRange, FirstTest, SecondTestRange, SecondTest, ThirdTestRange, ThirdTest, FourthTestRange, FourthTest)

    ....etc.
    _________________
    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
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Sum cells that meet ALL criteria

    But the 3rd and 4th conditions are mutually exclusive, column B can't be blank and > D1 so you probably need 2 SUMIFS, one with conditions 1,2 and 3 and one with 1,2 and 4.....then add the 2 SUMIFS together...

    =SUMIFS('DD''s'!H:H,'DD''s'!A:A,"<" & D1,'DD''s'!C:C,C2,'DD''s'!B:B,"")+SUMIFS('DD''s'!H:H,'DD''s'!A:A,"<" & D1,'DD''s'!C:C,C2,'DD''s'!B:B,">"&D1)
    Last edited by daddylonglegs; 03-07-2012 at 10:48 AM.
    Audere est facere

  4. #4
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Sum cells that meet ALL criteria

    I have tried the following sumifs formula but it is not bringing back a zero when I should have an actual figure.

    Please Login or Register  to view this content.
    I have probably typed something wrong so hopefully you will spot my error.

  5. #5
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Sum cells that meet ALL criteria

    @ DLL: I see that now yes. I am an idiot. Will try again

  6. #6
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    174

    Re: Sum cells that meet ALL criteria

    Yes, that's it!
    I can't believe I was almost there but for those pesky kids........I mean, those conflicting statements.
    Thank-you both for helping me out.

+ 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