+ Reply to Thread
Results 1 to 4 of 4

help creating a formula (maybe a mocros) in excel to calculate break entitlement

  1. #1
    Registered User
    Join Date
    01-03-2017
    Location
    ashford
    MS-Off Ver
    2007
    Posts
    12

    help creating a formula (maybe a mocros) in excel to calculate break entitlement

    Hi there, i am trying to create a new break plan at my work and I need a calculation to tell us what breaks the employee is entitled to during their shift, I currently have a column for their start time, a column for their end time and then 4 columns each representing a different break ( 15 min, 15 min, 30 min and 60 min) and then a total hours column. I basically want a tick or similar to appear in the break columns when the employee is entitled to the break, so if the employee is on a 8 hour shift, they are entitled to 2 15 minute breaks and one 60 minute break, so I want a macro that will result in a tick in both 15 boxes and the 60 box when the start and end times are entered (I have already done the formula to calculate the total hours worked) Can anyone tell me what formula I need to do this?

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,925

    Re: help creating a formula (maybe a mocros) in excel to calculate break entitlement

    This would go a lot better if you could show us some sample data and a mock up of what you want the results to look like.

    Please attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    01-03-2017
    Location
    ashford
    MS-Off Ver
    2007
    Posts
    12

    Re: help creating a formula (maybe a mocros) in excel to calculate break entitlement

    this thread was accidently duplicated several times (site was telling me it wasn't working and to try again, then it seems when the server was back up and running, it posted several all at once)can't seem to delete the excess ones. there is a attachment on one of the other threads (the only one with more than 1 reply) but I'll attach and explain here too. I basically tried at first to set a conditional formula, so that a tick would appear in the correct boxes when certain criteria are met. The criteria are as follows: a tick in the first 15 box when the TOT HRS column is 4 or more hours, a tick in both 15 boxes and the 30 box when the TOT HRS is 6 hrs or more, a tick to appear in both 15 boxes and the 60 box when the TOT HRS is 8 hrs or more, and a tick in both 15 boxes the 30 and the 60 if the TOT HRS is 10 or more. for some reason the conditional formula wouldn't set in the cell, and my knowledge of excel is limited.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,276

    Re: help creating a formula (maybe a mocros) in excel to calculate break entitlement

    Try

    in first 15

    =IF($I3>=4/24,"x","")

    in second 15

    =IF($I3>=6/24,"x","")

    in 30

    =IF(OR(AND($I3>6/24,$I3<8/24),$I3>=10),"x","")

    in 60

    =IF($I3>8/24,"x","")

+ 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. First ever post.. Sickness Entitlement Spreadsheet formula help...
    By H_hicky in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-28-2016, 10:36 AM
  2. Replies: 3
    Last Post: 03-27-2015, 03:39 AM
  3. [SOLVED] Holiday Entitlement Formula
    By Calamity98 in forum Excel General
    Replies: 9
    Last Post: 02-17-2015, 06:06 PM
  4. Calculate entitlement from multipule fields
    By LukeThorn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-06-2013, 01:26 PM
  5. Replies: 2
    Last Post: 01-08-2012, 04:28 PM
  6. Replies: 1
    Last Post: 01-02-2012, 02:47 PM
  7. Creating a formula to calculate age...
    By homeuser in forum Excel General
    Replies: 3
    Last Post: 09-25-2006, 02:19 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