+ Reply to Thread
Results 1 to 6 of 6

Count number of entries within a specific date range

  1. #1
    Forum Contributor
    Join Date
    09-28-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    141

    Count number of entries within a specific date range

    Hi everyone,

    In column A, I have a range of dates. In column C, some cells are blank and some contain numerical values.

    I'm trying to count the number of cells in column C within each month which are not blank and have a value greater than 0.

    It sounds simple, but I can't get it to work for some reason. I've attached an example and hopefully someone can suggest a way to make this work....

    Andy
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,789

    Re: Count number of entries within a specific date range

    H2=COUNTIFS($A$2:$A$17,">="&$F2,$A$2:$A$17,"<="&$G2,$C$2:$C$17,">0",$C$2:$C$17,"<>") copy down

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Count number of entries within a specific date range

    I've always found SUMPRODUCT to be easier
    =SUMPRODUCT($A$2:$A$17<=$G2,$A$2:$A$17>=$F2,$C$2:$C$17>0)

  4. #4
    Forum Contributor
    Join Date
    09-28-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    141

    Re: Count number of entries within a specific date range

    Thank you for your input.

    +CARACALLA - the COUNTIFS formula worked great.

    +Pepe Le Mokko - the SUMPRODUCT formula gave me a 0 result in each cell for some reason.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Count number of entries within a specific date range

    Does it return 0 when you open the attached?
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    09-28-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    141

    Re: Count number of entries within a specific date range

    Yes, it does still return 0.

+ 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] How to count multiple entries prior to a specific date
    By mahershams in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-14-2014, 07:58 AM
  2. Replies: 3
    Last Post: 06-12-2014, 07:32 AM
  3. [SOLVED] Count number of cells with a date format that have a specific age range
    By te31 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-11-2013, 04:30 PM
  4. Count number of cells with specific date and time range
    By cle12000 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-25-2013, 01:42 PM
  5. Replies: 1
    Last Post: 03-05-2011, 04:18 PM
  6. count number occurring within specific date range
    By Biff in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2006, 01:40 PM
  7. count number occurring within specific date range
    By Ducky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2006, 01:35 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