+ Reply to Thread
Results 1 to 12 of 12

need help with Breaking down Hours

  1. #1
    Registered User
    Join Date
    08-24-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    11

    need help with Breaking down Hours

    Hi guys,
    im sorry to disturb you,
    but i have spent forever and a day trying to solve this. and im running out of time.

    i have attached a sheet that im working on.

    basically the issue is i have a start and end time

    i need to Break this down into sections

    so

    start end total break workinghours shiftday day night sat sun
    19:30 07:30 12 1 11 Thu 2 9 0 0
    19:30 08:00 12.5 1 11.5 Fri 4.5 0 6 0


    the rules are

    06:00 on a week day is a Day untill 20:00
    20:00 - 0600 is Night
    Friday Night runs 20:00 till 00:00
    Saturday is 00:00 (fri) to 00:00 (Sat)
    sunday is 00:00 (sat) - 00:00 (sun)

    Can anyone help me.

    can't post a link or attachments sorry it wont let me
    hopefully this is enough information
    Last edited by korallis; 09-17-2018 at 03:57 AM. Reason: Solved

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Urgent Reqest need help with Breaking down Hours

    There was a very similar request a week or two ago here > https://www.excelforum.com/excel-gen...ml#post4956518 which may give you some helpful pointers.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    08-24-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    11

    Re: need help with Breaking down Hours

    Thank you for this.
    i will update the post with the results

  4. #4
    Registered User
    Join Date
    08-24-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    11

    Re: need help with Breaking down Hours

    using this method breaks down my Night shift correctly.
    but i do not know how to Reverse it so it calculates days?

    as Day is 06:00 > 20:00
    and night is 20:00 > 06:00

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: need help with Breaking down Hours

    I believe that you should be able to upload a sample file, however the paper clip icon doesn't work if that is the method you attempted.
    To upload a sample workbook (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    08-24-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    11

    Re: need help with Breaking down Hours

    Hi Thanks for the guide.
    i have attached the sample sheet

    hopefuly it makes sense
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: need help with Breaking down Hours

    Instead of attacking this with long formulas, this proposal breaks the task down into a helper table (AE4:AS10) which may be moved and/or hidden for aesthetic purposes.
    The are a large number of formulas used so I won't attempt to list them.
    The range actual outcomes are populated using assignments to the appropriate cells in the helper table.
    Let us know if you have any questions.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-24-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    11

    Re: need help with Breaking down Hours

    Its close but not working correctly for Saturday and Sunday
    07:30 start 19:30 finish should be a flat 12 hours not 11.5
    as it the start and end time for Saturday and Sunday hours is Midnight Friday to Midnight Saturday (sat) and midnight Saturday to midnight Sun

    the weekdays seem to be fine as do the nights.?
    I really appreciate the help on this

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: need help with Breaking down Hours

    I believe that I have rectified the issue.
    1) Column AH now identifies a shift started and completed on Saturday.
    2) Column AI identifies a shift started on Saturday and ended on Sunday
    3) Column AN is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-24-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    11

    Re: need help with Breaking down Hours

    Seems to be fixed
    thank you so much I've added Rep for you

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: need help with Breaking down Hours

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  12. #12
    Registered User
    Join Date
    08-24-2016
    Location
    Birmingham, England
    MS-Off Ver
    2016
    Posts
    11

    Re: need help with Breaking down Hours

    Quote Originally Posted by JeteMc View Post
    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.
    any chance you know how to create rows automatically based on the output.
    so I can have a new line for each "day " "Night" hours?

    ive had a post in the VBA section for a few days but no responses. it seems it cannot be done but thank you again for fixing my initial issue.

+ 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. Breaking down working hours in 1 hour slots
    By Paulo. in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-12-2018, 03:04 AM
  2. Urgent Help Required On : Calculation of net working hours
    By Upendra2016 in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 04-22-2016, 10:36 AM
  3. [SOLVED] Working hours attempt URGENT
    By maxward in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-29-2014, 08:23 AM
  4. Breaking down rows based on hours and days
    By Serdica in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2013, 05:38 PM
  5. [SOLVED] Paste to a cell A1 without breaking formula? (Urgent!!!)
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2013, 11:20 PM
  6. Breaking Hours Down Into Overtime Elements
    By suma in forum Excel General
    Replies: 1
    Last Post: 12-15-2011, 07:23 PM
  7. Urgent help reqd. in calculating working hours
    By prabodhkgupta in forum Excel General
    Replies: 0
    Last Post: 10-10-2006, 03:11 AM

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