+ Reply to Thread
Results 1 to 6 of 6

Countifs returning Zero

  1. #1
    Registered User
    Join Date
    07-04-2016
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 MSO Version 2208 Build 16.0.15601.20764 64-bit
    Posts
    25

    Countifs returning Zero

    Hi all,

    I'm trying to set up a countifs table.

    The countifs are based off the raw data and have the following criteria.

    =COUNTIFS('Source data'!$L:$L,'DWP One Choice'!$L$9,'Source data'!$V:$V,$L13,'Source data'!$W:$W,"very")

    First criteria is matching against a cell linked to a slicer (the course name) which changes based on the slicer choice.

    Second is based on a specific question.

    Third I want to return the count of answers "very" and "extremely" from the same column.

    But when swapping through the slicer, sometimes it returns the correct number while other times I get a 0 (although there are 'very' and 'extremely's).

    Any idea why this may be happening?

    Thanks, Mike!

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Countifs returning Zero

    Hello,

    hard to tell without a data sample. I suggest when you hit a "wrong" 0 result, go to the data source and manually apply the filters as used in the Countifs. Maybe there are data quality issues, trailing blanks, for example.

    cheers, teylyn

  3. #3
    Registered User
    Join Date
    07-04-2016
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 MSO Version 2208 Build 16.0.15601.20764 64-bit
    Posts
    25

    Re: Countifs returning Zero

    Hey Teylyn,

    Thanks for the reply! I just created a sample and it works... but the original file still won't return the values.

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Countifs returning Zero

    So what happens when you filter the original file?

  5. #5
    Registered User
    Join Date
    07-04-2016
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft 365 MSO Version 2208 Build 16.0.15601.20764 64-bit
    Posts
    25

    Re: Countifs returning Zero

    When I change the slicer choice, some of the choices return the right number whereas other filter choices return 0. When I check the raw data, they should all be returning some count for "very". However, the "extremely" count never returns a value and is always showing 0.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Countifs returning Zero

    I don't think you get what I'm driving at. Go to the raw data and apply the filters to that raw data, not your derived table. Do you still see the results you expect?

    Maybe it's time you posted a data sample that shows the problem. It's most likely a data quality issue.

+ 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 returning wrong value
    By mangeshp4 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-12-2016, 08:30 AM
  2. [SOLVED] Countifs macro working but only returning 0 for every answer. Not sure why?
    By CRMORE in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-24-2016, 08:59 AM
  3. [SOLVED] CountIfs returning 0
    By jsmilke in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-19-2015, 04:59 PM
  4. countifs returning value error
    By ammartino44 in forum Excel General
    Replies: 2
    Last Post: 10-03-2014, 06:22 PM
  5. COUNTIFs formula returning a #VALUE!
    By GanbareGoemon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2014, 10:46 AM
  6. [SOLVED] COUNTIFS returning #VALUE!
    By photoryan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-18-2013, 01:07 AM
  7. SUMPRODUCT and COUNTIFS formula that is returning #DIV/0!
    By caseyjones05 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2013, 03:37 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