+ Reply to Thread
Results 1 to 6 of 6

Proration of hours

  1. #1
    Registered User
    Join Date
    05-15-2007
    Posts
    35

    Proration of hours

    I have a timesheet report that tracks hundreds of people and what projects they work on on a daily basis. So any given person can have multiple entries per day. I also have a column that shows the week #.

    Since the majority of our employees aren't paid overtime I need to prorate hours based on a standard 40 hour work week. So if there's 20 entries for a given employee for the week and that totals 48 hours I need to take each of those down by a percentage to a total of 40 hours. If the 20 entries are equal to or less than 40 than it just takes that time.

    I can't seem to get a formula that sums the hours by person, by week and if it's over 40 prorates it by the current distribution and if it's not just gives me the current distribution. Any suggestions?
    Attached Files Attached Files
    Last edited by wburbage; 04-26-2019 at 08:26 AM.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,633

    Re: Proration of hours

    Attach a sample workbook (not a picture or pasted copy). 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.
    Quang PT

  3. #3
    Registered User
    Join Date
    05-15-2007
    Posts
    35

    Re: Proration of hours

    Thanks, I just uploaded a sample.

    Column A is where I'm looking to apply the formula which calculates the total number of hours for that person, by week. If the hours are 40 or less it takes the hours provided in column G. If the hours are greater than 40 it prorates it based on the current split. I showed the split in column H but I'm not planning on having that as a separate column. The rows highlighted in the attached are where the hours are greater than 40 but the formula would also need to account for the ones where it's 40 or less.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Proration of hours

    Perhaps
    =IF(SUMIFS($G$2:$G$15,$D$2:$D$15,D2,$B$2:$B$15,B2)<=40,G2,G2*40/SUMIFS($G$2:$G$15,$D$2:$D$15,D2,$B$2:$B$15,B2))
    if the sum for the week for the person is <=40 you can just have the value, otherwise prorata is the value x 40 /sum for the week

  5. #5
    Registered User
    Join Date
    05-15-2007
    Posts
    35

    Re: Proration of hours

    That did it!! Thanks a ton Davsth!!

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,249

    Re: Proration of hours

    First in create additional column "I"
    In "I2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    "J2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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] Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours
    By noobface in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-21-2021, 03:45 AM
  2. Replies: 3
    Last Post: 07-24-2018, 03:24 AM
  3. Seperate simple hours, holiday hours and night hours
    By enitron in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2014, 07:22 AM
  4. Replies: 3
    Last Post: 06-18-2014, 07:26 AM
  5. [SOLVED] Calculate hours with predefined Working Hours and Weekend Hours
    By garciapliz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-05-2013, 11:17 AM
  6. Replies: 4
    Last Post: 02-12-2013, 07:01 AM
  7. Replies: 2
    Last Post: 02-11-2013, 02:26 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