+ Reply to Thread
Results 1 to 3 of 3

Need to adjust totals proportionally

  1. #1
    Registered User
    Join Date
    11-06-2014
    Location
    Rowlett, TX
    MS-Off Ver
    2010
    Posts
    2

    Need to adjust totals proportionally

    This is my first post, so please be patient!

    I have a set of data from our time reporting system. The data contains 6 columns: Employee name, Project name, Project Activity Number, Project Activity, Number of Hours and Date.

    Capture.JPG

    I need to sum the hours for each week by employee. If the employee worked more or less than 40 hours, I need to be able to adjust the hours proportionally so they add up to 40.

    For example, if an employee worked on 2 projects and spent 25 hours on each during the week, his total would be 50. I need to calculate that the difference is 20%, then subtract 20% from each of the project hours (25 hours) in order to get back to a total of 40.

    I download this data once a month to upload into a different system, so I would like it to be fairly well automated.

    I created a pivot table by employee/project/activity then grouped the sum of the hours by week, however, I am not sure if this is the right approach, as I don't know what to do next.

    Thank you,
    Julie

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Need to adjust totals proportionally

    It seems you have the right idea, first you need to summarize hours by employee then calculate/adjust the hours per project per employee.
    Where are you stuck exactly?

    Also, it is much better to post a sample workbook to the forum (using GO ADVANCED then MANAGE ATTACHMENTS) instead of a photo.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    11-06-2014
    Location
    Rowlett, TX
    MS-Off Ver
    2010
    Posts
    2

    Re: Need to adjust totals proportionally

    I am stuck figuring out how to make it automatically figure out which lines are totals over 40 hours. I am thinking I need to add some columns that aren't part of the pivot table. Since I have about 7,000 lines of data each month, I really prefer this to be as automated as possible.

    I have attached a sample workbook showing what I have done.
    Attached Files Attached Files

+ 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] Pivot Chart Date Axis, need dates seperated proportionally not equally
    By Peter.M in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 10-18-2013, 09:51 AM
  2. How to make Proportionally Sized Pie Charts
    By ebase131 in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 08-27-2013, 09:31 AM
  3. change numbers proportionally to sum up to 100
    By MichaelSSSS in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-08-2010, 06:42 AM
  4. code to change values proportionally to always sum up to 100
    By MichaelSSSS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2010, 05:59 AM
  5. [SOLVED] proportionally fill a cell
    By M John in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2006, 05:20 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