+ Reply to Thread
Results 1 to 4 of 4

COUNTIFS (Date and Time)

  1. #1
    Registered User
    Join Date
    05-12-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    2

    COUNTIFS (Date and Time)

    How do I count the number of OT per 30 min interval per date?

    Date Start End # of hours
    11-May 6:00 PM 8:00 PM 2
    11-May 6:00 PM 8:00 PM 2
    11-May 6:00 PM 8:00 PM 2
    12-May 6:00 PM 8:00 PM 2
    12-May 6:00 PM 8:00 PM 2
    11-May 6:30 PM 8:00 PM 1.5
    11-May 6:30 PM 8:00 PM 1.5
    11-May 6:30 PM 8:00 PM 1.5
    11-May 6:30 PM 8:00 PM 1.5
    12-May 6:30 PM 8:00 PM 1.5
    11-May 6:30 PM 8:00 PM 1.5
    11-May 7:00 PM 8:00 PM 1
    12-May 7:00 PM 8:00 PM 1
    12-May 7:00 PM 8:00 PM 1
    11-May 7:00 PM 8:00 PM 1
    11-May 7:00 PM 8:00 PM 1
    11-May 7:00 PM 8:00 PM 1
    11-May 7:00 PM 8:00 PM 1
    12-May 7:00 PM 8:00 PM 1
    11-May 8:00 PM 9:00 PM 1
    11-May 9:00 PM 10:00 PM 1

    11-May
    6:00 PM ?
    6:30 PM ?
    7:00 PM ?
    7:30 PM ?
    8:00 PM ?
    8:30 PM ?
    9:00 PM ?

    Here's the formula that I am using:
    =SUMPRODUCT(--($I$5:$I$65>=TIMEVALUE("3:00 AM")),--($I$5:$I$65<TIMEVALUE("3:30 AM")))

    Any advise?

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: COUNTIFS (Date and Time)

    This works for me

    =SUMPRODUCT(--($H$5:$H$65=--"2012-05-11"),--($I$5:$I$65>=--"18:00:00"),--($I$5:$I$65<--"18:30:00"))

  3. #3
    Registered User
    Join Date
    05-12-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: COUNTIFS (Date and Time)

    This works for the 6 PM but not for the succeeding intervals. We still need to consider the duration of hours.

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: COUNTIFS (Date and Time)

    It does, what do you mean?

+ 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