+ Reply to Thread
Results 1 to 11 of 11

Working time calculation excluding Saturday and some conditions.

  1. #1
    Registered User
    Join Date
    09-26-2019
    Location
    Kuala Lumpur
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    5

    Exclamation Working time calculation excluding Saturday and some conditions.

    Hi,
    I am calculating the working hours for my office. I am using Microsoft Office 365 ProPlus

    I have attached the file below reply.


    Hope I can get help from you guys.
    Last edited by kazziimran; 10-09-2019 at 06:20 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    31,218

    Re: Working time calculation excluding Saturday and some conditions.

    Welcome to the forum.

    Will you please attach a small 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 (it hasn't worked for years, and despite our repeatedly asking the technical team who own the forum to fix it, they can't be bothered to do so), 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.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    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.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    09-26-2019
    Location
    Kuala Lumpur
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    5

    Re: Working time calculation excluding Saturday and some conditions.

    Hi, sorry for my delay reply.. I have attached the file. Hope you can help me.
    Attached Files Attached Files
    Last edited by kazziimran; 10-02-2019 at 10:32 PM.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    2007, 365
    Posts
    10,672

    Re: Working time calculation excluding Saturday and some conditions.

    In your 1st post 9/15 was a holiday. In the upload 9/30 is a holiday.

    Which set of holidays do you want us to use? I ask because this looks like it could get complicated. Knowing now could save chasing otherwise simple errors.

    Also are you constrained to using the layout you have in your upload?
    Dave

  5. #5
    Registered User
    Join Date
    09-26-2019
    Location
    Kuala Lumpur
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    5

    Re: Working time calculation excluding Saturday and some conditions.

    Hi, thanks for your assistance. Please consider the latest file.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    2007, 365
    Posts
    10,672

    Re: Working time calculation excluding Saturday and some conditions.

    kazziimran please do not "back edit" your posts once there has been response. It interrupts the flow of conversation and confuses those who join in later. By the time stamps you've changed post #1 about 2 weeks after posting and in response to a question asked in the meantime.

    Initially you listed the exact hours of day for each worker for each day of the week. Those are no longer there. Please re-post those in a new post. They will be important.

    Edit Never mind: I found worker times on the last page of the attachment.
    Last edited by FlameRetired; 10-09-2019 at 06:00 PM.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    2007, 365
    Posts
    10,672

    Re: Working time calculation excluding Saturday and some conditions.

    Am stumped on how to rearrange layouts to solve with formulas.

    Still working on it and in the meantime have called for reinforcements.

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    2013, Office 365 ProPlus
    Posts
    4,729

    Re: Working time calculation excluding Saturday and some conditions.

    Hmm, this type of calculation requires too many conditions/special handling to produce reliable result through formula as far as I can tell.

    Ex: When start/end date falls on Sat/Sun, will require special handling. You'll also need to calculate how many Saturdays will occur between two dates etc.
    EDIT: So it is much easier to handle all the exception/condition through iterative calculation for each date between start & end.

    If OP is open to restructuring some conditions table, it can be done via PowerQuery (using custom function), VBA or perhaps via DAX calculation.
    Last edited by CK76; 10-10-2019 at 05:01 PM.
    “Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.”
    ― Robert A. Heinlein

  9. #9
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    XL 2010,2016
    Posts
    11,910

    Re: Working time calculation excluding Saturday and some conditions.

    You should design a time sheet correctly.

    Time in and time out for each day or at least enter the days and hours worked separately.

  10. #10
    Registered User
    Join Date
    09-26-2019
    Location
    Kuala Lumpur
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    5

    Re: Working time calculation excluding Saturday and some conditions.

    This is my first post in this forum and looking for help not your Moderation. The data is showing replicate of my working data. If you asked to separate the date and time, it will impact huge in my working file. The file has at least 10000 cells for the datetime. So I am unable to do that.
    Kindly suggest me how can I solve it? Or, If need I can delete the post and re-post with more explanation.

  11. #11
    Registered User
    Join Date
    09-26-2019
    Location
    Kuala Lumpur
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    5

    Re: Working time calculation excluding Saturday and some conditions.

    Hi, thanks for your assistance. Please let me know if you have any further queries.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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