+ Reply to Thread
Results 1 to 2 of 2

Headcount based on scheduled hours vs individual hours

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Headcount based on scheduled hours vs individual hours

    I have a document with hundreds of start and stop times for employees. I am attempting to determine headcount for specific hours.

    Example:
    Employee 1 works from 1:00 PM to 7:00 PM. I have the time listed out 1:00 PM through 7:00 PM and each time the person is scheduled to work it counts 1. Furthermore, if I have 10 people working at 1, then 10 should appear, if 20 people are working at 2:00 PM then 20 should appear, etc.


    I'm imagining some sort of COUNTIFS formula but I can't quite figure out the correct sequence.

    I have included a sample doc to better illustrate what I am looking for.
    Attached Files Attached Files
    Last edited by klturi421; 08-27-2019 at 04:15 PM.

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

    Re: Headcount based on scheduled hours vs individual hours

    If I'm understanding your sheet correctly, then you're on the right track with COUNTIFS. Try the following in F3:

    =COUNTIFS($A$2:$A$10,"<="&F2,$B$2:$B$10,">"&F2)

    ...and fill right. Adjust for Wed. in F8:

    =COUNTIFS($C$2:$C$10,"<="&F7,$D$2:$D$10,">"&F7)
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

+ 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 meal periods based on total scheduled hours
    By Motoxboi26 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2018, 02:52 AM
  2. Calculating Scheduled Hours
    By DesireeChristina in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-16-2015, 08:18 PM
  3. [SOLVED] Need Help with formula to calculate "hours scheduled" based on employee's number
    By Dnakr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 02:56 PM
  4. [SOLVED] Hours scheduled gives #value if off work that day
    By Barney97 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-22-2013, 11:48 PM
  5. scheduled hours
    By robert220 in forum Excel General
    Replies: 6
    Last Post: 07-29-2008, 07:45 PM
  6. scheduled hours total
    By Jeff Desruisseaux in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-01-2005, 07:05 AM

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