+ Reply to Thread
Results 1 to 8 of 8

calculating hours using scheduled workers and time slots.

  1. #1
    Registered User
    Join Date
    08-07-2009
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2003
    Posts
    16

    Cool calculating hours using scheduled workers and time slots.

    Hello, I am trying to figure out how to write a formula that will take two time ranges and figure out how many hours was spent based on how many people worked between those two time ranges. for example....

    ...... [A]......... [B]........ [C].......

    1... Joe.........04:00.....12:30
    2....mike.....04:00.....10:00
    3...Tom......09:00.....17:30

    In cell D1 I put 08:00 and E1 is 18:00 as an example. the end result in F1 would be Joe(4.5)+mike(2)+tom(8.5)=15
    I think I added that right lol. the deal is that I don't know how to translate this into a formula. column a is name, column b is start and column c is end. it can be 1 row or up to 20 rows with start end data.
    anyone know how to translate this into a formula?

    Thank you so much. I'm so close to finishing this sheet I'm just dumbfounded on how to do this. I was going to write a formula that puts 1 and 0 for every minute block but with 20 people it could get messy and waste so much space if I ever expand beyond 20 people. my goal is to eventually work up to 670 people but I'll take whatever I can get.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating hours using scheduled workers and time slots.

    Post an example of your file, without confidentional information.

    Please also add the desired (expected) result.

    My solution will be an pivot table solution.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-07-2009
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: calculating hours using scheduled workers and time slots.

    Here you go. I'm unable to post the original sheet because it's on a work computer that does not allow outside drives. I kept it as basic as I can so you can see what i'm trying to achieve.

    I put three workers and three time slot examples. End goal would be 670 officers and 20-35 shifts. Don't worry about overlap or counting officers twice. I can change things on my part to make sure that does not happen.

    Much appreciated!

    v/r
    -Richard
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating hours using scheduled workers and time slots.

    Maybe like this.

    See the attached file.

    Please reply.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-07-2009
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: calculating hours using scheduled workers and time slots.

    The doesn't work because it doesn't take the officer start time into consideration. for example if you change D1 to 02:00 it says officer worked for 10:30 but billed hours was 12:30.

  6. #6
    Registered User
    Join Date
    08-07-2009
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: calculating hours using scheduled workers and time slots.

    I figured it out.

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: calculating hours using scheduled workers and time slots.

    In that case, mabye like this.

    See the attached file, with an new pivot table.

    Please reply.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-07-2009
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: calculating hours using scheduled workers and time slots.

    Sorry, posed the formula from typing it on my cellphone as my work would not allow me to post directly to the forum. Anyhow it doesn't matter cause the formula was still wrong.

    Here is the proper formula I figured it out.

    Please Login or Register  to view this content.

+ 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. Calculating Number of Workers per Half Hour
    By vioravis in forum Excel General
    Replies: 1
    Last Post: 10-14-2015, 09:55 PM
  2. [SOLVED] Sort out working hours for workers based on company / project
    By HammerStein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-18-2012, 10:21 AM
  3. [SOLVED] hours worked (for night workers)
    By kris.ball in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 06-26-2012, 08:10 AM
  4. [SOLVED] calculating a time range into predefined time slots
    By DamianWarS in forum Excel General
    Replies: 2
    Last Post: 06-19-2012, 07:26 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