+ Reply to Thread
Results 1 to 5 of 5

Trying to create a formula to work out rostered hours

  1. #1
    Registered User
    Join Date
    12-25-2015
    Location
    Hobart
    MS-Off Ver
    2013
    Posts
    2

    Trying to create a formula to work out rostered hours

    Creating a roster for work and have each cell set up to say start and finish times (e.g. 0700 - 1600). Trying to create a formula to show how many people are rostered for each hour of the day to make sure there are minimum numbers rostered on for each hour. I'm using the LEFT and RIGHT functions but I'm pretty sure I'm using them all wrong. In a table further down the page on each sheet I will have the hours down the column and the days across the top row.

    This is the formula I have got so far but it doesn't work. =COUNTIFS(H9:H94,(VALUE(LEFT(H9:H94, 4))=700), H9:H94,(VALUE(RIGHT(H9:H94, 4)))>800)

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Trying to create a formula to work out rostered hours

    Quote Originally Posted by Macka2626 View Post
    have each cell set up to say start and finish times (e.g. 0700 - 1600)
    It would be much easier if you put the times in separate cells:

    A1 = 7:00
    B1 = 16:00

    Also, make sure you enter the time as a time value using the colon! Work with Excel, not against it.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    12-25-2015
    Location
    Hobart
    MS-Off Ver
    2013
    Posts
    2

    Re: Trying to create a formula to work out rostered hours

    Thanks. I did have this as my last resort already though. The trouble is that using separate cells for each time brings about other practicality issues because it is a very large roster. Hence why I'm looking for a solution to this first.

  4. #4
    Forum Contributor Toonies's Avatar
    Join Date
    07-30-2009
    Location
    Newcastle, UK
    MS-Off Ver
    Excel 2016
    Posts
    503

    Re: Trying to create a formula to work out rostered hours

    hi I've just seen your post Tony Valko is right about using separate cells, you can if you wish try this try uploading a demo copy of your sheet.

    if you want to use your present format then I would use helper cells with the following formulas

    start and finish times in C5

    D5 Format to [h]:00
    Please Login or Register  to view this content.
    E5 Format to General
    Please Login or Register  to view this content.
    F5 Format to General
    Please Login or Register  to view this content.
    G5 Format to General
    Please Login or Register  to view this content.

    Formula for Hourly breakdown AY5 copy across

    Please Login or Register  to view this content.
    here is an example Demo Hourly Breakdown.xlsx
    Last edited by Toonies; 12-28-2015 at 01:33 PM. Reason: put code in tags

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Trying to create a formula to work out rostered hours

    I hate seeing a post go unsolved!

    Can you post a SMALL sample file and show us what results you expect?

    20 rows worth of data is plenty. We don't need (or want) to have to wade through 100's or 1000's of rows of data to test solutions.

+ 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] I need to return names from a work roster list based on their rostered days on/off
    By notthatgoodwithexcel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-31-2015, 09:50 AM
  2. [SOLVED] Formula Calculated total work hours - now need to remove breaks and standard hours?
    By smeem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2014, 12:15 AM
  3. Replies: 0
    Last Post: 11-12-2012, 04:49 AM
  4. work hours counting formula
    By adamek174 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2012, 07:26 PM
  5. [SOLVED] Formula to work out hours between 2 dates and times.. MINUS Out Of Hours
    By chris.m in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-30-2012, 08:11 AM
  6. Replies: 15
    Last Post: 06-17-2011, 03:37 PM
  7. Calculating Rostered Hours
    By flebber in forum Excel General
    Replies: 10
    Last Post: 01-14-2010, 12:38 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