+ Reply to Thread
Results 1 to 6 of 6

Counting multiple groups of employees present every half hour (can't get formula to work)

  1. #1
    Registered User
    Join Date
    03-30-2017
    Location
    Chandler, Arizona, USA
    MS-Off Ver
    2016
    Posts
    3

    Counting multiple groups of employees present every half hour (can't get formula to work)

    Hi everyone,

    I'm new here as I'm sure you can tell.

    So here's my problem that I'm trying to solve.

    it's actually a multiple step issue.

    So problem #1 where I work I have multiple employees I'm in charge of and they all have different shifts.
    So I'm trying to calculate how many employees I have every half hour.
    I have each grouping of employees with their time in and time out, however I also have what's called a "CODE".
    If code is 01 Vacation, 02 Sick, FMLA, MILL military, these are types of leave. So if it says 01, 02, FMLA, MILL, I need it to not count the employee as present.

    I also will not be subtracting a lunch 30 minutes of their shift is accounted as a lunch and they can be sent at different times.

    I also have the issue that any name in BOLD is a shift lead. So I'm counting my employees and leads per half hour in my time table

    TIME Employees Leads
    12:00
    12:30

    My last question is an odd one that might not have an answer, I've seen people print out rosters from my job from excel that has a shift that shows between 13-17 employees and it fits in the same space. (Example 1-17 on bottom right employee list. Sometimes it will have 13 employees listed and sometimes it will have 17 but it always takes up the same space when printed.)

    Anyway thanks for any help you can provide.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now I get this formula above to work fine, however I can't get it to do a whole set let alone multiple sets. when I try the code below I get a #VALUE!

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Microsoft office 2016

    Copy of work book on Google Docs .xlsx file
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Counting multiple groups of employees present every half hour (can't get formula to wo

    I think we need a better description of what columns you need to look at. I see 5 areas with times and names.

    Also the data isn't very conducive to analysis if every employee has exactly the same start and end times. Also having everyone named Joe Smo doesn't help, the guy is working on code 01, 02, MILL, FMLA all at the same time and is also holding multiple positions in columns E, J, J and O. I don't know how to do a match on ambiguous data.

    I think it would help a lot if you provide more representative data and then walk us through an example.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    03-30-2017
    Location
    Chandler, Arizona, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: Counting multiple groups of employees present every half hour (can't get formula to wo

    Alright sorry for the time between posts, I've been quite busy at work.

    I've gone ahead and changed the names to something more singular for persons but not my employee names.

    So I have to account for how many Shift Leads I have and how many employees I have.

    I've decided it would be easier to have some hidden columns that have a simple Yes/No for LEAD?

    This way you can do a simple If yes then 1 lead.

    As far as shift times they are usually reliable, however we sometimes have people come in earlier or later so I need a formula which calculates for employees,
    if they are here from 1400-1900 or is I change it to 1200-1700.

    I print this sheet for my shifts so BOLD stands for a shift Lead and pink/blue Girls/Guys.

    My Goal is to know how many employees/leads I have every 30 minute increment of the day.
    From 1200-2230 (duration of 2nd shift)

    Anyway if you have a better idea on how to implement the Lead/employee or can help with the formula to calculate how many employees and Leads are there every 30 minutes it would be very appreciated.
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Counting multiple groups of employees present every half hour (can't get formula to wo

    ih8excel welcome to the forum.

    So far I'm not clear about what the mission is. Let's start here.

    Try array entering this modification to your formula in D31. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It returns 7 at my end. Does this help?

    Also, please take the time to update your profile (location). There are regional differences in Excel versions. Members often tailor their solutions(s) with your profile details in mind.
    Dave

  5. #5
    Registered User
    Join Date
    03-30-2017
    Location
    Chandler, Arizona, USA
    MS-Off Ver
    2016
    Posts
    3

    Re: Counting multiple groups of employees present every half hour (can't get formula to wo

    So the goal I have is as follows.

    Is take all the employees listed and their times in and out and calculate how many people I have.

    And also subtract people out who aren't here.

    Everyone from F6-F19, L6-L12, L18-L27, R3, R7-R9, R12-R22, time in vs time out vs Lead or not? and is 01, 02, MILL, FMLA mark them as not here.

    I want it to automatically count how many people are here like below. I can do it by hand but it would be easier to have a formula to do this.

    so times as follows.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    CNTRL + SHIFT + ENTER while in the formula bar returns 14. So It's counting the 14 People but not subtracting the 2 on 01.

    and I also need to work in the LEAD? A6-A19, G6-G12, G18-G27, M3, M7-M9, M12-M22. essentially If Lead = YES I want it to count in the LEAD tab instead of employee tab. The above time table is how I would like it to list out the data on the table.

    If the Code is equal to 01, 02, FMLA, MILL then add 0 to the employee or LEAD, if left blank count 1 if the employee is in their working hours range.

    So if you work 1145-2015 then you will be counted in the 2000 category but not the 2030 because you have gone home.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Counting multiple groups of employees present every half hour (can't get formula to wo

    See if these formulas for employees and leads respectively will work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: To make this work the term "lead?" was removed from G17, M6 and M11.
    Note: To make this work the term "Code" was removed from I17, O6 and O11
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Counting how many employees are scheduled per hour
    By dbrammer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-13-2016, 10:38 AM
  2. Replies: 1
    Last Post: 09-26-2015, 04:27 PM
  3. Replies: 2
    Last Post: 06-20-2015, 11:49 AM
  4. Count Employees Working in Half Hour Intervals
    By shanewfm in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-24-2015, 01:12 PM
  5. [SOLVED] Overtime and payment at half hour intervals with a lower payment for the first half hour
    By brettamine in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2014, 07:51 AM
  6. Counting the number of calls within a half-hour period
    By JonathanMoore in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-06-2012, 06:45 AM
  7. Replies: 1
    Last Post: 08-10-2010, 02:13 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