+ Reply to Thread
Results 1 to 4 of 4

Need help in defining the formula of working hours and excluding non working hours

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Need help in defining the formula of working hours and excluding non working hours

    Dear Team,

    My company has working timing of Monday to Friday 10:00 to 19:00 and on Saturday 10:00 to 15:00.

    I want a formula which helps me in defining the working hours (as mentioned above Monday to Saturday)and also exclude non working hours(which is Mon to fri 19:00 to 10:00 and for Sat 15:00 to Mon 10:00), Sunday and Holiday list (if any).

    Any help would be appreciated a lot.

    Thanks,
    Manish_Gupta

  2. #2
    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,884

    Re: Need help in defining the formula of working hours and excluding non working hours

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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

  3. #3
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Re: Need help in defining the formula of working hours and excluding non working hours

    Hello alan,

    Many Many thanks for your reply.

    I need this working hours formula for the TAT calculation of how much time a User had spend on one file.

    I am attaching a sample sheet which we are using currently. Current formula which we are using (in Column "H") is not able to customize the working hours for Saturday and to add Holiday List.

    The Column "H" value is the difference of either Column No "B & G" or "F & G" values depends on the Column "E". If Column "E" is mentioned as "Docs Verified" then Column "H" should calculate the time difference of values between Column "B and G" but if Column "E" is mentioned as "Resent" then Column "H" should calculate the Time TAT from Column "F and G".

    So my requirements based on attached sample sheet is:

    1. Adjustment of TAT timings in Column “H”. The TAT calculation in Column “H” should be based on working timings of 10:00 AM to 19:00 PM on Monday to Friday and 10:00 AM to 15:00 PM on Saturday and should also exclude non working hours of all working days from Monday to Saturday. (Current formula which we are using (in Column "H") would help you to understand my requirement).

    2. Formula should also deduct the Sunday and Other Holidays (mentioned in "Holiday List" sheet) from Column “H” automatically.

    Many Thanks
    Manish_Gupta
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Need help in defining the formula of working hours and excluding non working hours

    Hi Manish,

    Here's a solution using a UDF (user defined function).
    Attached Files Attached Files
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

+ 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. Elapsed working hours, without counting weekends or non-working hours
    By ebkiwi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2013, 04:18 PM
  2. Replies: 2
    Last Post: 06-14-2013, 10:45 AM
  3. Excel Formula to calculate working hours between two dates excluding weekdays with wh
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2013, 11:20 AM
  4. Replies: 0
    Last Post: 04-16-2012, 05:47 AM
  5. Replies: 0
    Last Post: 04-16-2012, 04:31 AM

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