+ Reply to Thread
Results 1 to 2 of 2

Countif not counting date correctly

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    92

    Countif not counting date correctly

    Hi.

    I am using the following code:
    Please Login or Register  to view this content.
    In Cell E1 I am using
    Please Login or Register  to view this content.
    When I type in todays date into a cell in column A the formula doesn't count. However, the formula will begin counting later on in the month. Any idea why the formula wouldn't count at the beginning of the month?

    The format of how the date gets entered is 3/3/2015, 4:08:08 PM. This is entered off a userform.

    Thoughts?

  2. #2
    Registered User
    Join Date
    11-07-2013
    Location
    Montreal, Qc, Canada
    MS-Off Ver
    Office 365
    Posts
    19

    Re: Countif not counting date correctly

    If the format in column A:A are date & time
    Try this formula: =COUNTIFS(A:A, ">=" & E1,A:A, "<" &(E1+1))

    if the format in column A:A is text
    Try this formula: =COUNTIF(A:A,TEXT(E1,"m/d/yyyy") & "*") : note /d instead of /dd

+ 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] SUMPRODUCT, COUNTIF formulas not correctly counting based on two sets of criteria
    By justinbelkin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-11-2013, 10:12 AM
  2. Replies: 7
    Last Post: 12-16-2012, 08:24 PM
  3. Excel 2007 : Countif function Not working correctly
    By carl.spackler in forum Excel General
    Replies: 12
    Last Post: 04-09-2012, 06:39 PM
  4. Countif not counting correctly...
    By AaronK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2012, 12:43 PM
  5. sumproduct not counting correctly
    By excellentexcel in forum Excel General
    Replies: 3
    Last Post: 03-08-2009, 03:55 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