+ Reply to Thread
Results 1 to 7 of 7

Count >0 Cells Based on Date Criteria

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    US
    MS-Off Ver
    2007, 2010
    Posts
    43

    Count >0 Cells Based on Date Criteria

    I am trying to Count the number of cells in a range where by a specific date from another cell.

    (see attached JPG)

    I am trying to count cells from column G that have a value where the date from column C is equal to (lets say) 2/17/13.

    I have been trying to get this for hours...with help from web searches...and have only been able to get a formula that gives me a count that does not take into account the date I specify.
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Count >0 Cells Based on Date Criteria

    Best to have a cell where you can enter the date to search for (below example uses A1 for this) and then another cell which does the counting.

    =COUNTIFS(C:C,A1,G:G,"<>"&0)

    This assumes that blank cell in your example are 0, you may need to change to =COUNTIFS(C:C,A1,G:G,"").
    Say thanks, click *

  3. #3
    Registered User
    Join Date
    03-12-2012
    Location
    US
    MS-Off Ver
    2007, 2010
    Posts
    43

    Re: Count >0 Cells Based on Date Criteria

    What you have is half way there Harribone.

    When I plug it in the formula filters only the dates (based on the A1 value) but it is only counting the number of time the date occurs not the number of times that there is a value in the G Column...

  4. #4
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Count >0 Cells Based on Date Criteria

    Can you upload a sheet with mock data please to see where its going wrong.

  5. #5
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Count >0 Cells Based on Date Criteria

    Hi kmcbriarty

    Try: =COUNTIFS(C:C,"17/02/2013",G:G,">0")
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  6. #6
    Registered User
    Join Date
    03-12-2012
    Location
    US
    MS-Off Ver
    2007, 2010
    Posts
    43

    Re: Count >0 Cells Based on Date Criteria

    Kevin, your got it!

    I just swapped out the "17/02/2013" with a reference to the cell I have the date in and...presto! it worked perfectly!

    Thanks!

    Like your name too, Kevin. Great people are named Kevin...kmcbriarty aka Kevin McBriarty...we rock!
    ...and I totally agree...Merged cells ARE the work of the devil!

  7. #7
    Registered User
    Join Date
    03-12-2012
    Location
    US
    MS-Off Ver
    2007, 2010
    Posts
    43

    Re: Count >0 Cells Based on Date Criteria

    Quote Originally Posted by Harribone View Post
    Can you upload a sheet with mock data please to see where its going wrong.
    Sorry Harribone, I missed you request before I saw Kevin's post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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