+ Reply to Thread
Results 1 to 7 of 7

Calculating total effort per employee

  1. #1
    Registered User
    Join Date
    07-19-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    5

    Calculating total effort per employee

    Hello All,

    I have master spread sheet where the data is coming from different worksheets.

    Basically have different employees working on different project(each project is on different sheet) with effort entered against each project.

    And on master spread sheet i want to show all the project an employee associated with and effort spent . And also have Total effort(indicating the employee occupancy) shown.

    I tried adding row directly in master spreadsheet but it disappears once employee is associated with new project.

    I have used the below script to create master table

    Please Login or Register  to view this content.
    Attached is the spreadsheet


    Thanks in advance
    Abhi
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Calculating total effort per employee

    .
    The workbook does not open here. There is an error.

  3. #3
    Registered User
    Join Date
    07-19-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    5

    Re: Calculating total effort per employee

    Have uploaded again.
    Hope this work


    cheers
    Abhi
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Calculating total effort per employee

    Taking your table that you created in PQ, I converted it to a range (right click anywhere in the table and select Table-->Convert to Range). Once I had a range, I then went to Sub- Totals on the Data Tab of the Ribbon and set the sub totals to every change of Employee ID.

    Data Range
    A
    B
    C
    D
    1
    EmployeeId
    EmployeeName
    Project
    Effort in hours
    2
    1235
    Aldo
    P3
    0.2
    3
    1235
    Aldo
    P2
    0.2
    4
    1235 Total
    0.4
    5
    1237
    Dan
    P3
    0.3
    6
    1237
    Dan
    P2
    0.3
    7
    1237 Total
    0.6
    8
    1234
    Don
    P3
    0.1
    9
    1234
    Don
    P2
    0.1
    10
    1234 Total
    0.2
    11
    1236
    Rob
    P3
    0.4
    12
    1236
    Rob
    P2
    0.2
    13
    1236 Total
    0.6
    14
    Grand Total
    1.8


    You could also take your PQ result and build a Pivot Table either within PQ or within Excel. Here is what a PT would look like and you would not have to convert the table to a range.

    Data Range
    F
    G
    H
    I
    15
    EmployeeId
    EmployeeName
    Project
    Sum of Effort in hours
    16
    1234
    17
    Don
    18
    P2
    0.1
    19
    P3
    0.1
    20
    Don Total
    0.2
    21
    1235
    22
    Aldo
    23
    P2
    0.2
    24
    P3
    0.2
    25
    Aldo Total
    0.4
    26
    1236
    27
    Rob
    28
    P2
    0.2
    29
    P3
    0.4
    30
    Rob Total
    0.6
    31
    1237
    32
    Dan
    33
    P2
    0.3
    34
    P3
    0.3
    35
    Dan Total
    0.6
    Attached Files Attached Files
    Last edited by alansidman; 07-24-2019 at 05:45 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    07-19-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    5

    Re: Calculating total effort per employee

    Thanks it did work. Used the pivot table .
    However for some reason my master sheet is not automatically updation when new row/columns added in other work sheet?
    Do you see any issue with my script am using ?

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Calculating total effort per employee

    Are you clicking on Refresh twice?

  7. #7
    Registered User
    Join Date
    07-19-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    5

    Re: Calculating total effort per employee

    Yes i did refresh twice
    Basically i want to create master sheet based on other worksheets.

    Want master sheet to update automatically when there any changes in the other worksheets..

    Any guidelines/pointers would be much appreciated

    Thanks
    Abhi

+ 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 Employee Headcount by month.
    By jekeith in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-25-2018, 10:44 PM
  2. [SOLVED] Calculating Employee Leave Accrual
    By pknivens1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-02-2016, 10:50 AM
  3. Calculating Employee errors when the employee is "unknown"
    By dibianst in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2015, 06:34 PM
  4. Employee hours - total for each employee
    By 1joie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2014, 06:01 PM
  5. Replies: 0
    Last Post: 11-26-2012, 03:15 AM
  6. Calculating a timesheet for employee's
    By Sammy21 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-29-2012, 03:03 PM
  7. Calculating total overtime hours worked per employee
    By markjmcl in forum Excel General
    Replies: 3
    Last Post: 09-07-2011, 06:49 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