+ Reply to Thread
Results 1 to 5 of 5

SUM COUNTIFS with multiple criteria

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    86

    SUM COUNTIFS with multiple criteria

    Hi guys -

    So I tried the following formula but it is giving me the wrong count:

    Please Login or Register  to view this content.
    I'm trying to get the counts of Group 1 + Group 2 where their status is Current, Proposed, or Dormant. The SUM/COUNTIFS formula seems to not work - can you only have one {} in a sum countif? Is there a better way of doing this?

    Thanks!
    John

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: SUM COUNTIFS with multiple criteria

    Your profile indicates you are using 2003.
    The Countifs Function is not available in 2003, it was introduced in 2007.

    What version of Excel are you using?

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: SUM COUNTIFS with multiple criteria

    Sorry - 2007. We were upgraded but I didn't update this profile... will do now!

    Thanks

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SUM COUNTIFS with multiple criteria

    This subtle change should make it work

    =SUM(COUNTIFS(Tracker!$CI$3:$CI$3000, {"Group 1","Group 2"}, Tracker!$G$3:$G$3000,{"Current";"Proposed";"Dormant"}))

    Note semi-colons rather than commas in the second "array constant"

    In general if you have two "arrays" with { and } then one should have commas, the other semi-colons (it doesn't matter which way round). A third one won't work. For a version that would deal with any number try

    =SUMPRODUCT(ISNUMBER(MATCH(Tracker!$CI$3:$CI$3000, {"Group 1","Group 2"},0))*ISNUMBER(MATCH(Tracker!$G$3:$G$3000,{"Current","Proposed","Dormant"},0)))
    Audere est facere

  5. #5
    Registered User
    Join Date
    04-19-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    86

    Re: SUM COUNTIFS with multiple criteria

    You, sir, are a STAR!!!!! Thanks!!!

+ 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