+ Reply to Thread
Results 1 to 10 of 10

Calculate Number of hours worked in a week

  1. #1
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    70

    Thumbs up Calculate Number of hours worked in a week

    Hello friends,
    I am working on a timesheet sreadsheet which i have developed using this great forum. i am currently struck on my last part.

    My problem:-
    Coulum I consists of number of hours worked in a week which is calculated from the column H The total is calculated on every sunday of the week.
    i have created a function where in if if change the year in cell C2 the days move and the problem is the formula to calculate the total hours is fixed to a particular cell because of which i am not getting accurate hours if i change the year.
    i am attaching my spreadsheet for referance.

    thank you for your help.
    Attached Files Attached Files
    Last edited by ismailshajji; 10-31-2019 at 06:03 PM. Reason: Thank you protonLeah

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Calculate Number of hours worked in a week

    Use helper column (L) with WEEKNUM()
    Then in I5:I35
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    70

    Re: Calculate Number of hours worked in a week

    Thank you so much protonLeah for your prompt response.
    Great, how did you add sliding tool for chaning the year and month it looks great i would like to use this functionality in different sheet.
    Last edited by AliGW; 10-28-2019 at 05:17 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Calculate Number of hours worked in a week

    Those are Form Control 'SCROLL BARS':
    On the Ribbon Developer Menu,
    Select 'Insert'
    Select Scroll Bar from the Form Controls sub menu.
    Grab one of the corners and adjust the size and orientation desired.
    Right click the scroll bar, enter the min and max values desired and the cell to link it to.

  5. #5
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    70

    Re: Calculate Number of hours worked in a week

    Thank you so much my friend.
    One final request on the sheet you have wonderfully created the formula which calculates total number hours worked per week on sundays.
    is it possible to caculate the residual hours ie on the last day of the month if the week doesnt end with the sunday? for example in our spread sheet the month of october 31 doesnt end with Sunday so is it possible to add the hours for the days 28,29,30, and 31st bearing in mind the days will change as soon as we change the year and the month.
    thanks my friend for your help.
    Attached Files Attached Files
    Last edited by AliGW; 10-28-2019 at 03:04 PM. Reason: Please don't quote unnecessarily!

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Calculate Number of hours worked in a week

    maybe:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    70

    Re: Calculate Number of hours worked in a week

    Quote Originally Posted by protonLeah View Post
    maybe:
    Please Login or Register  to view this content.
    thank you my friend it definitely worked , this formula helped enter the total hours worked in cell i36, is it possible for i35 to display the total hours worked in that week in this case it should be SUM(H32:H35) ie 30 hours. sorry for the trouble.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Calculate Number of hours worked in a week

    Sorry, my mistake. I changed the font color to white in column I for the grey rows, so you can just change it back to auto or black. The results are already calculated with the last formula.

  9. #9
    Registered User
    Join Date
    10-11-2019
    Location
    Nottingham
    MS-Off Ver
    MS Office
    Posts
    70

    Re: Calculate Number of hours worked in a week

    Quote Originally Posted by protonLeah View Post
    Sorry, my mistake. I changed the font color to white in column I for the grey rows, so you can just change it back to auto or black. The results are already calculated with the last formula.
    You are Genius thank you so much my friend.
    have a wonderful day and good night.

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Calculate Number of hours worked in a week

    You're welcome

+ 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. Calculate total hours worked in week by worker name
    By evgemans in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-23-2019, 12:24 PM
  2. Replies: 6
    Last Post: 07-20-2018, 02:40 AM
  3. Replies: 5
    Last Post: 01-11-2016, 11:15 PM
  4. Excel Spreadsheet to calculate hours worked over 17 week rolling period
    By LynnS01 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2015, 04:22 PM
  5. Replies: 5
    Last Post: 05-22-2015, 07:27 AM
  6. Calculate Worked hours per week from a client dropdown list
    By Garibaldi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2013, 04:30 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