+ Reply to Thread
Results 1 to 2 of 2

Countif("between start/end times)

  1. #1
    Ian Jones
    Guest

    Countif("between start/end times)



    Sheet 1, Row 1, Column 2 - opening hours divide into 15min segments. B1 -
    08:00, C2 - 08:15, D2 - 08:30, and so on.

    Sheet 2 , Columns 1 and 2 - a list of each agents break times. Column A -
    Start time (eg 10:00) and Column B - End time (eg 10:30).

    Sheet 1, Row 2, Column 1 - summary titles. (eg Cell A2 - "Morning Break").

    Problem: I need to summarise the number of agents away on, say, "Morning
    Break" per 15 min segment.
    So, B2 must count the number of people on "Morning Break" at 08:00, B3..the
    number of people of people on morning break at 08:15, and so on, based on the
    list of start/end times found on Sheet 2.

    =Countif(Sheet2!A:A, Sheet1!B1) inserted into Sheet 1 cell B2 is not
    sufficient as it counts the number of people whose breaks begin at 08:00 only.

    Thanks in advance.

    Ian

  2. #2
    Forum Contributor kraljb's Avatar
    Join Date
    05-26-2004
    Location
    Illinois
    MS-Off Ver
    2007 (recent change)
    Posts
    256
    =SUMPRODUCT(--(Sheet2!$A$3:$A$23<B1),--(Sheet2!$B$3:$B$23>B1))

    B1 being the time you are looking to see how many are on break and Sheet2!A3:B23 being the list of break times.

+ 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