+ Reply to Thread
Results 1 to 8 of 8

staff per hour

  1. #1
    Registered User
    Join Date
    09-18-2017
    Location
    Australia
    MS-Off Ver
    office 365
    Posts
    4

    staff per hour

    I have been using excel to create work roster for many years now.

    As my staffing pool has grown its gotten too time consuming to count each hour group manually.

    reading an older post somebody used countif function, but i have not been able to duplicate it.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: staff per hour

    Hi Spacecadet and welcome to the forum,

    See if the yellow row is what you want. I'm not sure what those numbers to the right are:

    The formulas in Yellow are CSE (Control+Shift+Enter) or Array formulas.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Roster template Total Work Hours.xlsx

    I now see that some of the start times are after the end times. Do some people work night shift and end on the next day? If so - my formula needs some work.
    Last edited by MarvinP; 09-20-2017 at 12:51 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    09-18-2017
    Location
    Australia
    MS-Off Ver
    office 365
    Posts
    4

    Re: staff per hour

    Thanks so much for your help.

    I articulated myself poorly for my main intention.

    What i was hoping to calculate is how many staff are rostered on per hourly interval.

    The columns on the far right AA>AE (TIME) are how many staff are rostered per hour, 5am (3 people on shift), 6am (5 people on shift), 7am (5 people on shift), etc. (currently counted manually)

    The formulae provide is very useful and i will be using it, always counted those hours manually as well.

    Some staff are permanent night shift, others rotate day and night,

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: staff per hour

    May be insert a column before AA then

    AB3=5:00:00 AM
    AC3=AB3+1/24

    Copy towards the cells

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


    Copy across.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    09-19-2013
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: staff per hour

    Hi,

    First off, thank you all starting with spacecadet for something that hopefully will be useful to me in the future.

    Now, I don't have any solutions or improvements, but I do have "a couple" of questions:
    In relation to Shukla provided, in AC3, why 1/24? I can see how it changes if I remove it or if I use any other number instead of 24, but I just do not understand what it stands for.

    My 2nd question is for spacecadet. The numbers in columns AA-AE are supposed to be the number of people who are/should be/would be actively working at the different hours stipulated?
    I ask because at least the very first number, 3, is incorrect (unless they were numbers that were just thrown there for illustration purposes) making Shukla's suggestion a must.
    My only addition is to suggest a select, then right-click-drag a clean column from the right and do "Shift Right and Move/Copy", instead of inserting one. You can then resize to 1 or 2, or even hide it.

    A slightly separate and compound question: in the workbook provided, what is the top bar above the column letters, what is it for, how does one make that?

    Thank you all, again. Cheers.

  6. #6
    Registered User
    Join Date
    09-18-2017
    Location
    Australia
    MS-Off Ver
    office 365
    Posts
    4

    Re: staff per hour

    Thank your for your input.

    Columns AA-AF represents the amount of staff per hour, AA column shows 3 as there's carry over from the previous roster not shown on this, they are all out of whack now due to various changes. Which is why i am trying to automate the count.

    The top bar you refer too, i suspect is the grouping function which i am using to hide rows. This is done via the data tab, select a sequential row/column and they can be grouped.

  7. #7
    Registered User
    Join Date
    09-18-2017
    Location
    Australia
    MS-Off Ver
    office 365
    Posts
    4

    Re: staff per hour

    hi everyone,

    have applied the formulae but it is not functioning as i'd hoped once applied to the full roster.

    would a change in the layout of the roster be the best option?

    the formulae from what can understand is counting how many times 0500 appears, and then applies the same to the 0600 adding the value of 0500 to it?

    the roster is 24 hour roster, so it needs to factor in cross over times ad well.

    the code below igot from another post, but i cannot make it work as my roster is using a different layout.

    =(COUNTIF($C$7:$C$12,">="&F7)-COUNTIF($B$7:$B$12,">"&F7))
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-19-2013
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: staff per hour

    Hi sc,
    As per the formula you posted, I can't help you understand it because it does not correspond to either roster you provided.

    You are right about the formula counting and adding the previous, but that results inaccurate when a person's shift ended at 0600, for example, and it certainly does not take into account anyone coming from a shift that started on the previous day. I think your current layout would require quite a bit of finagling to get all of it right.

    As it is, your current roster contains some info that we can interpret without an conscious thought, like Shannon who starts at 1800 and ends at 0600, we know that it's 6 a.m. of the following day, but Excel can't reason that out so easily. You would need a formula with several comparisons and IF's.{shudder} As is, she starts at 1800 and finishes at 0600 of "the same day". As a matter of fact, the formula for total hours fails with Shannon and Bronwyn for that same reason; they would need two lines, 1800 to 2400 and 0000 to 0600 for each overnight, for their totals to be correct.

    I don't know what kind of layout would be best, but off the top of my head I would say an expanded daily/hourly roster would suit you best.

    09/21/2017 | 0000 | 0500 | 0600 | 0700 | ... | 1700 | 1800 | 1900 | 2400
    Nathan
    Dan
    Allan
    Shannon
    ...
    Steve
    Paul
    Total's row with # of staff at any give hour on that date
    (or you can transpose rows and columns to match your current layout... I tend to go with the shortest list going across.)
    Considering your carry-over's, I would do a nine-day weekly worksheet, from, say, Sunday of the previous week to Monday of the following (on a lighter font?), just to make it easier to see the overnighters flowing in and flowing out.

    At the end of each row there could be a total # of hours each staff works that day, and anyone working past midnight would appear in the following day's roster from midnight to end their shift. Also, not all shifts are 8-hour shifts and Netty's ends on the half hour...

    Sorry I've made this so long, and I'm pretty sure I have said nothing you had not thought of already... As a curious person that I am, I'm interested in your final decision for the roster layout.

    It seems like a growing business (congrats!) with a growing staff came to need a much larger roster and worksheet.

    Cheers.

+ 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. Count how many staff per hour
    By bobforde in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2016, 12:32 PM
  2. Count staff by hour worked per day
    By Delta729 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2016, 03:16 PM
  3. Replies: 5
    Last Post: 02-26-2016, 02:28 PM
  4. Counting Staff by Hour
    By jpickral in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2014, 03:45 PM
  5. creating a staff rota for 24 hour shifts
    By RONJONES in forum Excel General
    Replies: 4
    Last Post: 09-06-2013, 12:02 PM
  6. Replies: 3
    Last Post: 06-21-2013, 10:17 PM
  7. Ensure 24 hour cover for staff rota
    By treebina in forum Excel General
    Replies: 1
    Last Post: 05-21-2011, 05:57 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