+ Reply to Thread
Results 1 to 14 of 14

Calculate total hours worked in week by worker name

  1. #1
    Registered User
    Join Date
    06-08-2019
    Location
    Israel
    MS-Off Ver
    365
    Posts
    7

    Calculate total hours worked in week by worker name

    Hello, i would like to know how to calculate the time that every worker have in a week?
    there is a schedule, workers are called user1, user2,user3...
    everyone work different time a week, so i would like to calculate and put the time they worked in weekly hours table by their names.

    thank you


    example photo:Untitled-2.jpg
    Last edited by evgemans; 06-08-2019 at 02:59 PM.

  2. #2
    Registered User
    Join Date
    06-08-2019
    Location
    Israel
    MS-Off Ver
    365
    Posts
    7

    Re: Calculate total hours worked in week by worker name

    this is the link to file: 3 times w.excelforum.com/attachment.php?attachmentid=627613&stc=1&d=1560020114

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, Suffolk (England), but grew up in Sawley, Derbyshire
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2211 (Windows 11 22H2 64-bit)
    Posts
    65,408

    Re: Calculate total hours worked in week by worker name

    What results are you expecting in the yellow cells? Give your manually calculated results.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  4. #4
    Registered User
    Join Date
    06-08-2019
    Location
    Israel
    MS-Off Ver
    365
    Posts
    7

    Re: Calculate total hours worked in week by worker name

    Weekly hours =
    user1 total week hours (day1 total hours + day2 total hours .....day7...)
    user2 (day1 total hours + day2 total hours .....day7...)
    ....


    in the picture example user3 worked at day2 from 7:15 to 16:15 and in day6 from 7:15 to 16:15,
    so in table weekly hours user3 will show: 18
    Last edited by evgemans; 06-09-2019 at 09:30 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, Suffolk (England), but grew up in Sawley, Derbyshire
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2211 (Windows 11 22H2 64-bit)
    Posts
    65,408

    Re: Calculate total hours worked in week by worker name

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  6. #6
    Registered User
    Join Date
    06-08-2019
    Location
    Israel
    MS-Off Ver
    365
    Posts
    7

    Re: Calculate total hours worked in week by worker name

    in this example user3 worked at Monday from 7:15 to 16:15 and in Friday from 7:15 to 16:15,
    so user 3 total weekly hours will show: 18

    attached the schedule, thank you
    Attached Files Attached Files
    Last edited by evgemans; 06-09-2019 at 09:46 AM.

  7. #7
    Registered User
    Join Date
    06-07-2019
    Location
    Singapore
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    5

    Re: Calculate total hours worked in week by worker name

    Try U8 in array formula {=SUMPRODUCT((B3:N16=S8)*INDEX(IF(NOT(ISERROR(B4:N17-C4:O17)),B4:N17-C4:O17,0),0))} and copy down and change the time format to TIME


    --------------------------------------------------------------------------------
    Please click on the small star icon below the post if the response helps

  8. #8
    Registered User
    Join Date
    06-08-2019
    Location
    Israel
    MS-Off Ver
    365
    Posts
    7

    Re: Calculate total hours worked in week by worker name

    Thank you for help

    but nothing happens when i put it in u8 (it doesnt give me the result)

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 Version 2211, rarely 2007
    Posts
    12,843

    Re: Calculate total hours worked in week by worker name

    Withdrawn by FR.
    Last edited by FlameRetired; 06-16-2019 at 10:58 PM.
    Dave

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 Version 2211, rarely 2007
    Posts
    12,843

    Re: Calculate total hours worked in week by worker name

    Did you try array entering Alvin Chung's formula? --- Ctrl + Shift + Enter

    This is a little shorter. Same idea. It still requires Ctrl + Shift + Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    06-08-2019
    Location
    Israel
    MS-Off Ver
    365
    Posts
    7

    Re: Calculate total hours worked in week by worker name

    Attachment 628556

    i tried but the answer is wrong
    all the shifts set to "time"

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 Version 2211, rarely 2007
    Posts
    12,843

    Re: Calculate total hours worked in week by worker name

    From your screen shot you seem to be expecting a integer hours. If you are not aware of it times are decimal fractions of a day. The formatting is cosmetic. 16/24 of a day is 0.666666666666667. Formatted for time [hh]:mm = 16:00 or 04:00 PM.

    In U10 the underlying value is 0.75. That is 18:00 when formatted to time.

    Does that help?

    Edit I forgot that the formatting for time needs to have square brackets around the hours to display hours > 24. [hh]:mm

    If so


    U
    8
    28:45
    9
    09:00
    10
    18:00
    11
    25:30
    12
    26:00
    13
    27:45
    14
    15:00
    15
    10:30
    Last edited by FlameRetired; 06-17-2019 at 02:02 AM.

  13. #13
    Registered User
    Join Date
    06-08-2019
    Location
    Israel
    MS-Off Ver
    365
    Posts
    7

    Re: Calculate total hours worked in week by worker name

    Thank you guys, working well.

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 Version 2211, rarely 2007
    Posts
    12,843

    Re: Calculate total hours worked in week by worker name

    Good. You are welcome. Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Formula to calculate hours worked w/lunch or w/o + OT column only total after 40 hours
    By blinhart in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2018, 01:27 PM
  2. Replies: 5
    Last Post: 01-11-2016, 11:15 PM
  3. (Help) Time Sheet total hours worked per day and overall week
    By SirDraco in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-10-2014, 05:35 AM
  4. Total hours worked for the week
    By bud11dy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2013, 09:18 AM
  5. [SOLVED] Creating a population of total hours worked for that week ?
    By calamityjane in forum Excel General
    Replies: 8
    Last Post: 09-13-2012, 06:00 PM
  6. Total Hours worked per Job or Worker
    By DJohnson2 in forum Excel General
    Replies: 2
    Last Post: 07-19-2012, 11:10 AM
  7. [SOLVED] Getting a total of hours & mins worked per week
    By big_weegie in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-16-2005, 07:05 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