+ Reply to Thread
Results 1 to 2 of 2

Countifs between two dates (trick is, time stap is included)

  1. #1
    Registered User
    Join Date
    04-30-2012
    Location
    Missouri
    MS-Off Ver
    Excel 2013
    Posts
    59

    Countifs between two dates (trick is, time stap is included)

    All,

    I am trying to build out some reporting for data that is exported in the same format as I have attached.

    I have it built so the user can enter in a 'start' and 'end' date and the data will calculate appropriately. Unfortunately, when the data I need is exported, it has a timestamp included. I think it is also in an odd format.

    Can anyone get a countif to work with the data I have attached?

    Example: How many dates are between 8/21 and 8/29?

    Thank you for whomever took the time to read this.


    -JDate Help.xls

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695

    Re: Countifs between two dates (trick is, time stap is included)

    Including a time, per se, doesn't mean you can't count the dates but your data appears to be text formatted. Try converting to real dates/times by doing this:

    Copy any blank cell then select date column > right-click > paste special > operations > add > OK > ESC

    Now you can use this formula

    =COUNTIFS(A:A,">="&DATE(2012,8,21),A:A,"<"&DATE(2012,8,30))

    Note: the second date is deliberately a day later than your range - in order to capture dates with times on 8/29 you need to use <8/30 because of the time. That formula counts all dates anywhere on 8/21 and 8/29 and all dates in between
    Audere est facere

+ 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