+ Reply to Thread
Results 1 to 9 of 9

Need help using multiple criteria in second argument of CountIfs function

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Need help using multiple criteria in second argument of CountIfs function

    Need to use CountIFs formula to evaluate multiple conditions in the same column. Here is the formula I tried. It works for Resolved but returns 0 when i try to add Duplicate.
    =COUNTIFS('P12 Source'!H:H,A18,'P12 Source'!F:F,"Resolved,duplicate")
    Also used this formula with success by referencing a cell that had "Resolved" in it but when I tried to add another cell with "Duplicate" it again returnded 0.
    =COUNTIFS('P12 Source'!$H:$H,A19,'P12 Source'!$F:$F,'P12 Source'!$F$75)

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

    Re: Need help using multiple criteria in second argument of CountIfs function

    Try

    =SUM(COUNTIFS('P12 Source'!H:H,A18,'P12 Source'!F:F,{"Resolved,duplicate"}))


    to use 2 cells, say F75=Resolved and F76-duplicate
    =SUMPRODUCT(COUNTIFS('P12 Source'!H:H,A18,'P12 Source'!F:F,F75:F76))

  3. #3
    Registered User
    Join Date
    02-10-2014
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need help using multiple criteria in second argument of CountIfs function

    Jommo1, Thanks for the reply. I tried both and they both returned "False" rather than a Count.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need help using multiple criteria in second argument of CountIfs function

    Hi,

    Is the formula supposed to be counting instances of the single text string "Resolved,duplicate", as both you and Jonmo give? Or did you intend to count cases where either of the two strings "Resolved" and "duplicate" are present?

    If so, then Jonmo's first formula should be:

    =SUM(COUNTIFS('P12 Source'!H:H,A18,'P12 Source'!F:F,{"Resolved","duplicate"}))

    The second, however, should work fine. Suggest you upload a workbook.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

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

    Re: Need help using multiple criteria in second argument of CountIfs function

    Good catch on the quote markes..
    Definately makes a big difference.
    Quote Originally Posted by XOR LX View Post
    =SUM(COUNTIFS('P12 Source'!H:H,A18,'P12 Source'!F:F,{"Resolved","duplicate"}))

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need help using multiple criteria in second argument of CountIfs function

    Sure, but if the OP tried the second formula...

  7. #7
    Registered User
    Join Date
    02-10-2014
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need help using multiple criteria in second argument of CountIfs function

    Thank you both for the replies. Used the newly suggested formula but still get "False" as opposed to zeroing out or giving me the count. The colunm I am trying to evaluate has the following text choices in the cells Closed, Resolved, Duplicate, Rejected, Pending, Assigned and Work In Progress.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need help using multiple criteria in second argument of CountIfs function

    As I said, I suggest that you upload an actual workbook now.

    Obviously replace any confidential/sensitive information with dummy data if necessary.

    Regards

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

    Re: Need help using multiple criteria in second argument of CountIfs function

    Are you actually seeing the word "False", or are you getting 0 and interpraiting that as false?

    Can you post a sample book?

+ 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. [SOLVED] Countifs arrays with multiple criteria and subtotal function
    By 5150 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2013, 01:58 AM
  2. Replies: 1
    Last Post: 08-05-2013, 01:52 PM
  3. Replies: 4
    Last Post: 03-30-2013, 08:36 AM
  4. [SOLVED] COUNTIFS function where argument is <= a date
    By Marycub in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-21-2012, 12:38 AM
  5. [SOLVED] Countifs function with multiple criteria in same column
    By sam99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2012, 09:10 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