+ Reply to Thread
Results 1 to 7 of 7

Add up the number of hours worked in a week. - Cross-Posted to Mr. Excel

  1. #1
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Add up the number of hours worked in a week. - Cross-Posted to Mr. Excel

    Hello all,

    I am trying to find a formula to add up how many hours an employee worked in each work week. There is lots of data on my sheet, but attached is a sample of the columns that I believe will be pulled from. I'm fine with adding a helper column (shown in my example as the "total hours per week" column). Note, our work weeks are Friday to Saturday, so I need that factored in during the summing. It would also be nice if I can get the data to just appear once per name.

    Let me know if none of that makes sense.

    Cross-Posted on Mr. Excel
    Attached Files Attached Files
    Last edited by mrsbrannon; 07-19-2018 at 01:56 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,480

    Re: Add up the number of hours worked in a week. - Cross-Posted

    Could you please tell us where you have cross-posted, as per the forum rules? Thanks.
    Ali


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

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-27-2018
    Location
    TX
    MS-Off Ver
    2016
    Posts
    54

    Re: Add up the number of hours worked in a week. - Cross-Posted to Mr. Excel.

    Updated title.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,480

    Re: Add up the number of hours worked in a week. - Cross-Posted to Mr. Excel

    Thank you. saying so in the post is fine - there's no need in the title, but thank you for being thorough.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Add up the number of hours worked in a week. - Cross-Posted to Mr. Excel

    Note, our work weeks are Friday to Saturday
    The upload data shows Thursdays off. Does the workweek start Friday and end Wednesday?
    Dave

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Add up the number of hours worked in a week. - Cross-Posted to Mr. Excel

    This is a guess.

    In the attached find a helper column in E. It returns the week number based on a Friday work week start. Change the second argument if that needs to change. The rest of the formulas will follow the change.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In G2 and filled down this returns the unique week numbers.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    With the employee names across H1:J1 this in H2 filled down and across. It returns the hours per week per employee.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    146

    Re: Add up the number of hours worked in a week. - Cross-Posted to Mr. Excel

    Hi,

    similar to my answer posted on MrExcel:

    Without helper column, try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    HtH,

    Joris

    --------------------------------------------------------------------------------
    If you found my answer helpful, please hit the Like or Thank button.

    Please follow the forum Rules and Guidelines and use Code tags around your VBA code.

    Remember: test VBA code always on a copy of your file because usually you can't use undo

+ 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. VBA place hours worked on master sheet depending of the date worked in that week
    By guhaseelan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2017, 10:35 AM
  2. Total hours worked for the week
    By bud11dy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2013, 09:18 AM
  3. Figure out the hours worked for the week
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] Excel needs hh:mm where hh>24 for hours worked per week
    By pmba in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2005, 04:06 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