+ Reply to Thread
Results 1 to 3 of 3

Count(filter) formula does not yield correct values

  1. #1
    Registered User
    Join Date
    09-27-2020
    Location
    Australia
    MS-Off Ver
    MS OFFICE 365
    Posts
    25

    Count(filter) formula does not yield correct values

    Hi,
    I have a register with count(filter) formula to calculate the number of filtered rows in another sheet. However, the formula didnot yield the correct results. As, for example in the sheet attached, the yellow highlighted number in the first sheet should be 52 and not 49, and I could not figure out where the error is in the formula. The formula is as below:

    Please Login or Register  to view this content.
    The sheet is attached.

    I would really appreciate some help on this, thanks.

    Sud
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Count(filter) formula does not yield correct values

    Try this in the yellow cell:

    =COUNTA(FILTER('ITP Reg'!$G$5:$G$494,('ITP Reg'!$G$5:$G$494='ITP Summary by package'!$A60),"No results"))

    ... or just use the rows formula!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count(filter) formula does not yield correct values

    Maybe I'm missing something, but why not a straightforward COUNTIFS()

    =COUNTIFS('ITP Reg'!G:G,'ITP Summary by package'!A60)

    or maybe

    =LET(a,COUNTIFS('ITP Reg'!G:G,'ITP Summary by package'!A60),IF(a=0,"No Results",a))
    Last edited by Richard Buttrey; 07-17-2022 at 06:07 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Replies: 6
    Last Post: 07-24-2020, 08:09 AM
  2. SUMIF that will yield negative values, but not positive values.
    By chkn89 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 02-18-2020, 03:09 AM
  3. [SOLVED] Index/Aggregate formula calculates correct row but does not yield name from Index array
    By FivestarMac in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2019, 05:07 PM
  4. Formula to yield correct results
    By ben_hensel in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-10-2016, 04:07 PM
  5. [SOLVED] Filter and count unique values in a single formula
    By gruzlor in forum Excel General
    Replies: 8
    Last Post: 03-21-2014, 09:14 AM
  6. Replies: 1
    Last Post: 01-14-2013, 04:01 AM
  7. Bond Yield to Maturity using the Yield function in Excel
    By rahulk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2009, 03:32 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