+ Reply to Thread
Results 1 to 6 of 6

Dynamic Hourly Employee Headcount (including overnight staff)

Hybrid View

  1. #1
    Registered User
    Join Date
    11-29-2022
    Location
    Portland
    MS-Off Ver
    2019
    Posts
    15

    Dynamic Hourly Employee Headcount (including overnight staff)

    Hello!

    I am trying to find the total hourly headcount for my staffing schedule (see attached) - I would like to the formula to be dynamic so I can see the headcount by day of week (and also needs to account for overnight staff). Any help is greatly appreciated!!Dynamic Hourly Employee Headcount (including overnight staff).xlsx

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamic Hourly Employee Headcount (including overnight staff)

    Your question is ambiguous. When you list 00:00.... do you want the number present AT 00:00 or the number at ANY TIME between 00:00 and 01:00???
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamic Hourly Employee Headcount (including overnight staff)

    Monday in column B MUST be spelled "Monday" and not "Monday ". Try:

    Formula: copy to clipboard
    =SUMPRODUCT(
    (
    ($E$3:$E$51<J$2+TIME(1,0,0))*($F$3:$F$51>J$2)+
    (($E$3:$E$51<J$2+TIME(1,0,0))+($F$3:$F$51>J$2))
    *($F$3:$F$51<$E$3:$E$51)*($B$3:$B$51=$J$1))
    *($E$3:$E$51<>"")*($B$3:$B$51=$J$1)*($C$3:$C$51=$I3))

  4. #4
    Registered User
    Join Date
    11-29-2022
    Location
    Portland
    MS-Off Ver
    2019
    Posts
    15

    Re: Dynamic Hourly Employee Headcount (including overnight staff)

    Hi Glenn, Thanks! But it doesn't seem to be capturing overnight employees - yes, looking for the number present at 0:00.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamic Hourly Employee Headcount (including overnight staff)

    Be specific. What is not being captured? Where?

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Dynamic Hourly Employee Headcount (including overnight staff)

    No reply, so ONE guess. Using Excel 2019, I had to create 8 Named Ranges (CTRL-F3 to view/edit). These are all dynamic, and will auto-adjust to however many rows you have. Just make sure columns B & C finish on the same row.

    Then one final formula, copied across and down:

    =SUMPRODUCT(((Start_A<=J$2)*(End_Int>=J$2)*(Day_A=$I$2)+(Start_B<=J$2)*(End_B>=J$2)*(Day_B=$I$2))*(Role=$I3)*(Start_A<>""))

+ 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] Calculate headcount based on hourly
    By rickytripleh in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-09-2022, 09:38 AM
  2. [SOLVED] Employee headcount by month
    By Rokitt in forum Excel General
    Replies: 7
    Last Post: 11-17-2016, 05:17 PM
  3. Displaying employee headcount in 15 min intervals
    By DrDementio in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-05-2016, 05:09 PM
  4. Headcount by employee type and interval
    By mike182 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2016, 01:46 AM
  5. Replies: 2
    Last Post: 06-20-2015, 11:49 AM
  6. Replies: 2
    Last Post: 10-19-2013, 11:31 AM
  7. Employee Headcount per category
    By patrick.warne in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-10-2013, 03:16 AM

Tags for this Thread

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