+ Reply to Thread
Results 1 to 4 of 4

Need Help with formula to calculate "hours scheduled" based on employee's number

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Need Help with formula to calculate "hours scheduled" based on employee's number

    I have been trying to make this work and still have not found a solution to it.

    I am attaching a draft schedule. What I am trying to accomplish is a formula to look at the cells with the employee numbers (i.e. 1, 2, 3, 4 ect..) and calculate all the hours scheduled above or below that number, and place the total hours scheduled in column U beside the appropriate employee number.

    The lines in "Yellow" are schedules that begin in AM and the hours are above the employee's number.

    The lines in "Gray" are schedules that begin in PM and the hours are below the employee's number.

    Example: C7 has employee #1 and above in C6 and D6 it shows 9AM to 9PM for a total of 12 hours. I need to look for all cells that contain employee #1
    (C7, O12, and I23) and calculate those hours scheduled in rows above or below "1", then put the total hours scheduled in Column U beside appropriate employee number shown in Column R (should be 21:00:00).

    So far I have been only able to calculate total hours using Columns W through AD for each day, and calculate how many shifts the employee is scheduled for Column T.

    Hope this makes sense.

    Any help would be greatly appreciated.

    Rachel
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-03-2013
    Location
    Montreal, QC
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Need Help with formula to calculate "hours scheduled" based on employee's number

    See attached file.

    I used your helper table to add the employee numbers and used multiple SUMIFS to add up the hours in column U. This is one way you can do it.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-22-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Need Help with formula to calculate "hours scheduled" based on employee's number

    Thank you so very much. I never thought of that.

    Works great....

    Rachel

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need Help with formula to calculate "hours scheduled" based on employee's number

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Calculate employee utilization based on billed hours
    By simrag01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2014, 04:48 PM
  2. Formula to calculate # of hours based on date range and employee ID code
    By r0man3 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-02-2014, 08:04 PM
  3. [SOLVED] calculate the number of occurrences of a "Letter" based on a percentage
    By scottmcclean in forum Excel General
    Replies: 2
    Last Post: 07-27-2014, 12:07 PM
  4. Replies: 4
    Last Post: 11-30-2011, 03:25 PM
  5. Find employee who worked more than "x" hours
    By spiderlegs in forum Excel General
    Replies: 5
    Last Post: 02-22-2010, 10:22 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