Results 1 to 36 of 36

Employee Count per Interval

Threaded View

  1. #33
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Employee Count per Interval

    I think I've got it? Take a look at the attachment and see if it works for you. It relies upon the formula below in C2, filled down, then adjusted for the new columns:

    =SUMPRODUCT(--(Shifts!$D$3:$D$500<=$A2+1/48),--(Shifts!$E$3:$E$500>$A2),(IF($A2+1/48>Shifts!$E$3:$E$500,Shifts!$E$3:$E$500,$A2+1/48)-IF($A2>Shifts!$D$3:$D$500,$A2,Shifts!$D$3:$D$500))*1440/30)+SUMPRODUCT(--(Shifts!$D$3:$D$500<=$A2+1/48),--(Shifts!$D$3:$D$500>Shifts!$E$3:$E$500),($A2+1/48-IF($A2>Shifts!$D$3:$D$500,$A2,Shifts!$D$3:$D$500))*1440/30)+SUMPRODUCT(--(Shifts!$C$3:$C$500>=$A2),--(Shifts!$B$3:$B$500>Shifts!$C$3:$C$500),(IF($A2+1/48>Shifts!$C$3:$C$500,Shifts!$C$3:$C$500,$A2+1/48)-$A2)*1440/30)

    I experimented with some sample values and it looked like it was holding up, but play around a bit and let me know.

    EDIT: It should be noted that the formula is an array formula, so it should be confirmed with Ctrl + Shift + Enter instead of the regular Enter
    Attached Files Attached Files
    Last edited by CAntosh; 08-11-2016 at 05:37 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Headcount by employee type and interval
    By mike182 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2016, 01:46 AM
  2. formula for count per interval based on a time stamp
    By loverboooy in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 02-19-2015, 11:01 PM
  3. Replies: 1
    Last Post: 04-29-2014, 04:42 AM
  4. [SOLVED] get a count depending on the interval
    By Frazzle6 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-19-2014, 09:09 PM
  5. [SOLVED] count the number of events in an interval
    By invictus in forum Excel General
    Replies: 4
    Last Post: 06-11-2012, 06:17 PM
  6. How to count number of people per time interval
    By chinkygirl in forum Excel General
    Replies: 1
    Last Post: 02-11-2012, 01:33 PM
  7. Macro to Count how many recordsbetween each hour interval?
    By nbaj2k in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-20-2006, 02:00 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