+ Reply to Thread
Results 1 to 12 of 12

Help COUNTIFS?

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    10

    Help COUNTIFS?

    Hi,

    I am trying to figure out a formula that will return a count of how many cells meet the following criteria: Column A: cells that show text "Open" or "Closed" or "Under Analysis" AND Column B: cells that show text "Other"

    I was able to use the COUNTIFS formula to return a count for "If Column A shows "Open" and Column B: shows "Other", but I can't figure out how to get it to query multiple options for the column A cells.

    Thanks for your help!

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,697

    Re: Help COUNTIFS?

    This would be one way but you're not saying if you want it to be all those conditions or any of those conditions.
    =COUNTIF($A:$A,"open")+COUNTIF($A:$A,"closed")+COUNTIF($A:$A,"under analysis")+COUNTIF($B:$B,"other")
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    12-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Help COUNTIFS?

    Thanks for the response Sambo kid,

    I need it to any one of the column A text fields AND "Other" in column B of the same row. If that makes sense.

  4. #4
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    323

    Re: Help COUNTIFS?

    How about this?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cliff

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Help COUNTIFS?

    Hi and welcome to the forum
    You could create a big long formula...
    =COUNTIFS($A:$A,"open",$B:$B,"other")+COUNTIFS($A:$A,"closed",$B:$B,"other")+COUNTIFS($A:$A,"under analysis",$B:$B,"other")

    Or you could add a helper column, use this, copied down, and then count/add the helper...
    =if(and(B2="Other",or(A2="other",A2="closed",A2="under analysis")),1,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,697

    Re: Help COUNTIFS?

    I was going to go with the helper column but was too slow writing it and you got some good advice from the other two posters that I think will help you.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help COUNTIFS?

    Try

    =SUM(COUNTIFS(A:A,{"Open","Closed","Under Analysis"},B:B,"Other"))

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Help COUNTIFS?

    aahh thanks Jonmo, I tried the {} but forgot to add the SUM...duh

  9. #9
    Registered User
    Join Date
    12-17-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Help COUNTIFS?

    Quote Originally Posted by CWatsonJr View Post
    How about this?

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cliff
    Thanks to everyone for the replies! I ended up using this formula and it worked perfectly.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Help COUNTIFS?

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  11. #11
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    323

    Re: Help COUNTIFS?

    Quote Originally Posted by Jonmo1 View Post
    Try

    =SUM(COUNTIFS(A:A,{"Open","Closed","Under Analysis"},B:B,"Other"))
    Is using the brackets something new with COUNTIFS?

    Thanks
    Last edited by CWatsonJr; 12-18-2013 at 09:50 AM.

  12. #12
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help COUNTIFS?

    It's actually the SUM that is using the brackets.
    It becomes sort of an array formula by creating 3 different countifs functions (1 for each value in the {})
    And then sums the result of each.

    It's really just the same as
    countifs(...criteria1...)+countifs(...criteria2...)+countifs(...criteria3...)
    Just a simpler way to write it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. COUNTIFS OR COUNTIFS needs to work
    By joshbellfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 10:55 AM
  2. Countifs
    By idlit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-26-2013, 02:22 PM
  3. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  4. [SOLVED] COUNTIFS help please!
    By RUTHERS in forum Excel General
    Replies: 2
    Last Post: 06-13-2012, 06:20 AM
  5. Replies: 0
    Last Post: 12-16-2011, 09:01 AM

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