+ Reply to Thread
Results 1 to 9 of 9

3 Criteria COUNTIFS returns as ZERO

  1. #1
    Registered User
    Join Date
    06-16-2017
    Location
    Italy
    MS-Off Ver
    Excel 15.21.1
    Posts
    10

    3 Criteria COUNTIFS returns as ZERO

    Hey, life savers! I have a Gantt in Excel that countains some "words".

    I need to have an account of how many of each term appears under 2 criterias...
    I need to know how many "HO" we have on the Q2 of 2017; how many 100% on Q1 of 2018; etc
    What I am using now is: =COUNTIFS(MasterData!BC11:OF47;$B5;MasterData!BC11:OF47;$C5;MasterData!BC11:OF47;D$4)

    Using it like this, it returns as zero, but if I use each of of the criterias individually, works beautifully. What am I doing wrong????
    Sending it attached for some enlighted soul to lend me a helping hand 
    Gantt is on one tab and the dashboard is where I want to make the table
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: 3 Criteria COUNTIFS returns as ZERO

    Nothing wrong. You can't use COUNTIFS to the same column with different criteria.
    try:
    =SUM(COUNTIF(MasterData!AI5:NL41,$B5),COUNTIF(MasterData!AI5:NL41,$C5),COUNTIF(MasterData!AI5:NL41,D$4))

  3. #3
    Registered User
    Join Date
    06-16-2017
    Location
    Italy
    MS-Off Ver
    Excel 15.21.1
    Posts
    10

    Re: 3 Criteria COUNTIFS returns as ZERO

    Thanks, Sandy666, but this way it sums the individual counts, and it does not work with the criterias...
    Not sure if my explanation was confused, but I need the count of HO on Q2, 2017 (which is 1), with your solution it gives 127, which is the sum of all HO (not only correspondent to Q2, 2017), all Q2 (no matter the year) and all 2017...

    Could the problem be that my criterias are on rows and not columns????

  4. #4
    Registered User
    Join Date
    06-16-2017
    Location
    Italy
    MS-Off Ver
    Excel 15.21.1
    Posts
    10

    Re: 3 Criteria COUNTIFS returns as ZERO

    Quote Originally Posted by sandy666 View Post
    Nothing wrong. You can't use COUNTIFS to the same column with different criteria.
    try:
    =SUM(COUNTIF(MasterData!AI5:NL41,$B5),COUNTIF(MasterData!AI5:NL41,$C5),COUNTIF(MasterData!AI5:NL41,D$4))

    Thanks, Sandy666, but this way it sums the individual counts, and it does not work with the criterias...
    Not sure if my explanation was confused, but I need the count of HO on Q2, 2017 (which is 1), with your solution it gives 127, which is the sum of all HO (not only correspondent to Q2, 2017), all Q2 (no matter the year) and all 2017...

    Could the problem be that my criterias are on rows and not columns????

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: 3 Criteria COUNTIFS returns as ZERO

    Is this what you want?
    (I forgot add formula because of special kind of MOD )
    =SUMPRODUCT(--(MasterData!$AI$5:$NL$5=K3)*--(MasterData!$AI$6:$NL$6=L3)*--(MasterData!AI5:NL41="HO"))
    Attached Files Attached Files
    Last edited by sandy666; 06-16-2017 at 06:56 PM.

  6. #6
    Registered User
    Join Date
    06-16-2017
    Location
    Italy
    MS-Off Ver
    Excel 15.21.1
    Posts
    10

    Re: 3 Criteria COUNTIFS returns as ZERO

    Quote Originally Posted by sandy666 View Post
    Is this what you want?
    (I forgot add formula because of special kind of MOD )
    =SUMPRODUCT(--(MasterData!$AI$5:$NL$5=K3)*--(MasterData!$AI$6:$NL$6=L3)*--(MasterData!AI5:NL41="HO"))
    What have I said??? Life saver! Thanks a bunch @sandy666, you are awesome!

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: 3 Criteria COUNTIFS returns as ZERO

    You are welcome

    If that takes care of your original question, please click Add Reputation then select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  8. #8
    Registered User
    Join Date
    06-16-2017
    Location
    Italy
    MS-Off Ver
    Excel 15.21.1
    Posts
    10

    Re: 3 Criteria COUNTIFS returns as ZERO

    Quote Originally Posted by sandy666 View Post
    You are welcome

    If that takes care of your original question, please click Add Reputation then select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Super! Thanks ��

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: 3 Criteria COUNTIFS returns as ZERO

    Thanks for rep and mark thread solved

+ 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 with multiple criteria in single criteria range
    By SUHAS KARHADKAR in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 12-01-2016, 10:55 AM
  2. Countifs with multiple criteria in single criteria range
    By MCP313 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-01-2016, 03:51 AM
  3. COUNTIFS issue - Returns zero matches (possibly wrong formula???)
    By sx200n in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-22-2014, 08:09 AM
  4. [SOLVED] Countifs with multiple criteria and one criteria has a list of names
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-30-2014, 05:25 PM
  5. Replies: 2
    Last Post: 11-06-2012, 06:40 PM
  6. Using two ranges as ONE RANGE in countifs with conditions. Formula returns an error
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2011, 08:20 PM
  7. Countifs not counting, returns #value
    By Qualo_Jinn in forum Excel General
    Replies: 3
    Last Post: 12-09-2011, 04:13 PM

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