+ Reply to Thread
Results 1 to 7 of 7

How to create a formula for 35 minute breaks...

Hybrid View

  1. #1
    Registered User
    Join Date
    02-21-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    9

    How to create a formula for 35 minute breaks...

    Hello, I am new to this whole Excel thing. I have been receiving help from a friend and my Brother In Law. However, they have been busy and are unsure of how to help me in this matter.

    First of all, I need to mention that I no longer have Excel at my home computer, I am using Open Office (which I am not used to yet.) I have Excel at work which is where I need the help.

    I am trying to make an Employee Schedule that has hours worked for each individual Employee as well as Total Hours worked for each Day. My friend worked out a formula for that, however, some other Managers I work with are being difficult and now want to know if it's possible to minus out their 35 minute breaks. Which would need to be minused out for each Employee as well as each individual day.

    For each shift that is scheduled more than 5 hours they get one 35 minute break. So if someone is scheduled for 5 hours exactly or less they would not receive a break. If someone is scheduled for a double shift they would receive two 35 minute breaks.

    I hope this isn't too much. Thanks for any help you can give me.

    I will attach the schedule I have so far.

    Sincerely,
    Tricia
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to create a formula for 35 minute breaks...

    I think I understand what you're trying to achieve.

    I attached an edited version of the file you posted.
    The changes I made are in Row_7 (see the highlighted cells):
    Daily Hours Calc - New Formula:

    D7: =MOD(C7-B7,1)-SUM(FREQUENCY(ROUND(MOD(C7-B7,1)*24,2),
    {5,10,15})*{0;35;70;105})/60/24
    Copy that formula into G7, J7, M7, P7, S7, V7

    Total Hours Calculation - New Formula:
    W7: =SUM(D7,G7,J7,M7,P7,S7,V7)
    Does that help?
    Attached Files Attached Files
    Last edited by Ron Coderre; 02-22-2009 at 12:01 AM. Reason: The Row_9 ref s/b Row_7
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to create a formula for 35 minute breaks...

    Here you go. You didn't indicate what triggered the second 35 minutes break deduction, but we can add that in next.
    Attached Files Attached Files
    Last edited by JBeaucaire; 02-21-2009 at 11:29 PM. Reason: Updated the sheet
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to create a formula for 35 minute breaks...

    Ron's is way cooler. I'd suggest you use that.

  5. #5
    Registered User
    Join Date
    02-21-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to create a formula for 35 minute breaks...

    Wow! Thank you both so much for your help! I used Ron's schedule. I love the little plus and minus boxes to hide and unhide the hidden cells! I think this will work out wonderfully!

    I did have one other quick question. Is it possible to add some sort of clear button that will just delete the cells that have/will have the scheduled times in them for when a new week comes around?

    The scheduling manager likes to start with a clean slate of employees shifts and work from there.

    Also, will this affect if we need to add any new or returning staff we will put back on the schedule?

    I would like to offer up something for your help. I work at a movie theatre and would be willing to send you some movie tickets or perhaps there is a poster you would like?

    Thanks again for the help!
    Tricia
    Attached Files Attached Files

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to create a formula for 35 minute breaks...

    Honestly, no gift is necessary. We help because we enjoy sharing what we know. But, thanks so much for offering.

    Regarding resetting the sheet....I usually find it's easiest to keep
    a pristine template and distribute a copy. It's easier to
    add or delete names and re-distribute than it is to trust any
    worksheet that somebody else monkeyed around with.

    Does that help?

  7. #7
    Registered User
    Join Date
    02-21-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: How to create a formula for 35 minute breaks...

    Yes, Ron, that does help. I so appreciate everything! You have made things so much easier for me. It's one less headache to worry about.

    Thanks again!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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