+ Reply to Thread
Results 1 to 18 of 18

Net work hours Calculation

  1. #1
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Post Net work hours Calculation

    Hi, i have a similar question and mentioned below

    Start date in F2 Column 5/13/2024 3:36:32 AM
    End date in G2 Column 5/15/2024 10:38:40 AM

    from start & end date time calculate the working hours from start shift day is 8pm in AX3 column to End shift day is 7am AY3 Column by excluding the weekend and holiday range AU2:AU12 need a excel formula. Thanks
    Attached Files Attached Files

  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,181

    Re: Net work hours Calculation

    Are you still using Excel 2016?
    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
    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,181

    Re: Net work hours Calculation

    You already have formula:

    =NETWORKDAYS.INTL(F2,G2,1,Holidays)-(NETWORKDAYS.INTL(F2,F2,1,Holidays)*IF(MOD(F2,1)>ET,1,(MAX(ST,MOD(F2,1))-ST)/(ET-ST))-(NETWORKDAYS.INTL(G2,G2,1,Holidays)*IF(MOD(G2,1)<ST,1,(ET-MIN(ET,MOD(G2,1)))/(ET-ST))))*(ET-ST)*24

    If this isn't working for you, tell us in what way. What is your expected result (manually calculated)?

  4. #4
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Net work hours Calculation

    Hi, now i am using O365 version and manual calculation is below

    6th Day 7th Day 8th Day output should be 22 hours
    20.00 to 00.00 00.00 to 7.00 20 to 00 00 to 7 22.00

  5. #5
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Net work hours Calculation

    From 6th day 20.00 to next day 7.00 is 11 Hours
    From 7th day 20.00 to next day 7.00 is 11 Hours

    Total 22 hours

    I required a formula to calculate from PM to AM
    Last edited by Saikeyan; 05-21-2024 at 10:24 AM.

  6. #6
    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,181

    Re: Net work hours Calculation

    OK - so first, please update your formum profile from 2016 to 365.

  7. #7
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Net work hours Calculation

    Yes i have updated my profile
    Last edited by Saikeyan; 05-21-2024 at 10:44 AM.

  8. #8
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Net work hours Calculation

    Any updates on the query

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Net work hours Calculation

    It would be helpful if you can give more examples.

  10. #10
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Net work hours Calculation

    Sure I can provide you

    Day 1 if the user logged at 8pm and they logged off at 7am next day then the work hour is 11
    Day 2 if the user logged at 5pm and they logged off at 8am next day then the work hour is 11
    Since the shift hours will start at 8pm and end in 7am in morning

    if I have sum both day hours it should be 22 hrs.

    Note - we have to exclude the weekend and holidays for the start to end date

  11. #11
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Net work hours Calculation

    The shift starts at 8 PM and end at 7 AM next day.
    so when the shift starts at 8PM Friday it ends at 7 AM on Saturday Morning.
    shift starts at 8 PM on Monday and end at 7AM the next day.

  12. #12
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Net work hours Calculation

    Please provide a sample workbook with your examples. It would be helpful to provide at least 5 to 10 examples.

  13. #13
    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,181

    Re: Net work hours Calculation

    Yes, and provide samples that INCLUDE weekends and holidays. Make sure that not all rows have to add up to 11 hours, as that is not a good sample.

  14. #14
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Net work hours Calculation

    I have provided the samples in the workbook; please take a look.
    Attached Files Attached Files
    Last edited by Saikeyan; 05-23-2024 at 09:51 AM.

  15. #15
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Net work hours Calculation

    Try this, =(MAX(NETWORKDAYS.INTL(INT(F2)+1,INT(G2)-1,1,Holidays),0)*MOD(ET-ST,1)+MOD(IF(INT(F2)=INT(G2),ST,IF(MOD(G2,1)>ET,MIN(MOD(G2,1),ET),MAX(MOD(G2,1),ET)))-MAX(MOD(F2,1),ST),1)+IF(MOD(G2,1)>ST,MOD(G2,1)-ST,0))*24
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    06-11-2021
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    10

    Re: Net work hours Calculation

    Hi Joseph,

    the formula is working and Its really helpful, thanks you so much

  17. #17
    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,181

    Re: Net work hours Calculation

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED. You can also access the SOLVED tag by editing the opening post and choosing SOLVED from the drop-down to the left of the title box.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  18. #18
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Net work hours Calculation

    Thanks for the feedback & Rep.

+ 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] Work hours calculation
    By Eric Tsang in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-17-2022, 01:15 PM
  2. [SOLVED] Work hours calculation with break deduction
    By Unca Wook in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2020, 10:03 AM
  3. Replies: 5
    Last Post: 09-12-2019, 04:16 AM
  4. Calculation work hours
    By PatsFan12 in forum Excel General
    Replies: 4
    Last Post: 01-29-2019, 10:50 AM
  5. [SOLVED] Work Week Hours Calculation problem
    By laughingasian in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-23-2012, 11:32 AM
  6. Excel Work Hours and Time Calculation Help
    By watchoverme in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2012, 03:14 AM
  7. [SOLVED] Removing non Work Hours from Excel calculation
    By lindaho98@hotmail.com in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 03-10-2006, 09:31 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