+ Reply to Thread
Results 1 to 2 of 2

# of Hrs per Date Range to a Week Num

  1. #1
    Registered User
    Join Date
    06-22-2017
    Location
    USA
    MS-Off Ver
    2016
    Posts
    8

    # of Hrs per Date Range to a Week Num

    Hi All,

    I've worksheet that I use to track employee, weekday and # of Hr per day. it looks like this:

    Name 1/1/17 1/2/17 1/3/17 1/4/17 1/5/17 ..........1/15/17 1/16/17 1/17/17 ....( this continues until 12/31/17)
    JSMith 0 7 7 7 7 0 0 0
    JDoe 4 4 4 4 0 0 0 0
    JSMith 3 3 3 3 3 0 0 0
    JDoe 0 0 0 0 0 4 4 4


    What I am trying to accomplish is:

    1) not exceed 40 Hrs per week
    2) have a way to see the weeks with more than 40 hrs by employee

    The weekday info is extracted from the employee Start Date and End Date and number of Hours planned to work on that range. i.e:

    Name Start Date End Date # of Hours
    JSmith 1/2/17 1/5/17 7
    JDoe 1/1/17 1/4/17 4
    JSmith 1/1/17 1/5/17 3
    JDoe 1/15/17 1/17/17 4

    I took the range and break everything by day, the reason is the employee can have multiple assignments on the same date range if the number of hours doesn't exceed 8 hrs per day. Breaking this by day, I can see the total number of hours allocated for each user each day and avoid Over Time.

    Now, what I am having problems is looking at the total per week instead of per day, as when coordinating schedules we need to know what weeks are "better" than the other ones. if each employee is allowed to work only 8hrs per day, a Week should be 40Hrs. When planning the schedules, a week that doesn't have the 40 Hrs already for the employee is better than the ones that he already have the 40Hrs scheduled. I use the =WEEKNUM() to get the week # for the date, but having problems on getting all the hrs schedule for that week based on the date range for the employee.

    The ideal output will be something like:

    Name Week 1 Week 2 Week 3
    JSmith 43 0 0
    JDoe 16 0 12

    And with that info, it can be added to the main schedule tab:

    Name Start Date End Date # of Hours Availability
    JSmith 1/2/17 1/5/17 7 No Avail. ( the range is for Week1, which is already on 43)
    JDoe 1/1/17 1/4/17 4 Avail.
    JSmith 1/1/17 1/5/17 3 No Avail.
    JDoe 1/15/17 1/17/17 4 Avail.

    Any help would be really appreciated!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: # of Hrs per Date Range to a Week Num

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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. Week Numbers base on Date Range
    By MrServer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-24-2017, 02:12 AM
  2. [SOLVED] Making a date range using start of week?
    By Fawkes_ in forum Excel Programming / VBA / Macros
    Replies: 88
    Last Post: 02-08-2017, 08:10 PM
  3. [SOLVED] Return date of Friday of each week from a range of dates
    By emortals in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-19-2015, 12:29 PM
  4. Replies: 13
    Last Post: 10-10-2014, 06:50 AM
  5. week number by date range
    By coakle10 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-15-2014, 05:56 AM
  6. [SOLVED] Is there a way to display the week that a date falls within the range
    By john dalton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2013, 07:57 AM
  7. Convert date range to week ending date
    By minkus in forum Excel General
    Replies: 5
    Last Post: 11-29-2010, 04:30 PM

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