Closed Thread
Results 1 to 7 of 7

Calculating Meal Penalties Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    11-29-2020
    Location
    NY
    MS-Off Ver
    2020
    Posts
    5

    Exclamation Calculating Meal Penalties Formula

    Hello. I am very new to Excel and the IF functions. I am hoping to get some help with a formula I am trying to create. Essentially I am trying to create something that will calculate how many "Meal Penalties" someone has. A meal is required to be given 6 hours into the workday. There is a 12 minute grace period before the first penalty is incurred. After that, there is an additional penalty every 30 min. EX: If work starts at 6:00 am and lunch is taken at 12:12 pm it would be 0 penalties. 12:13pm = 1MP. 12:31 PM=2MP. 1:01 PM=3MP and so forth.

    In C2 I have my work start time, in D2 is the time we stopped for lunch. Trying to populate this in J2. The time values are all written in the Time Format.

    Thank you in advance!
    Attached Files Attached Files
    Last edited by Cabryka96; 12-01-2020 at 11:55 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,256

    Re: Calculating Meal Penalties Formula

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    Please respond to the help offered in your previous thread.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-29-2020
    Location
    NY
    MS-Off Ver
    2020
    Posts
    5

    Re: Calculating Meal Penalties Formula

    Thank you. I've attached a sample workbook and replied to my last post.

  4. #4
    Registered User
    Join Date
    11-29-2020
    Location
    NY
    MS-Off Ver
    2020
    Posts
    5

    Re: Calculating Meal Penalties Formula

    Hi, I found this post that is kind of what I am looking for. (I tried sharing the link but it doesn't look like I am allowed to)

    This formula works to calculate how many penalties based on how many minutes you are past the lunch.

    =ROUNDUP(IF(A1<=12,0,IF(AND(A1>12,A1<=30),1,IF(A1>30,A1/30))),0)

    However, what I am looking to do is integrate the calculation of time elapsed into it. Is this possible? Any suggestions or help are greatly appreciated!

    Thank you

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,050

    Re: Calculating Meal Penalties Formula

    I used some helpers (L2:M2) to make the process more understandable.
    L2 displays the actual meal start time and is populated using: =SUM(C2,6/24)
    M2 displays the grace meal start time is populated using: =SUM(C2,6/24,12/1440)
    J2 is populated using: =IF(D2<=M2,0,ROUNDUP((D2-L2)/(30/1440),0))
    Let us know if you have any questions.
    Attached Files Attached Files
    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
    09-27-2023
    Location
    Menifee, CA
    MS-Off Ver
    16.77.1
    Posts
    1

    Re: Calculating Meal Penalties Formula

    Is there a way you could help an beginner Excel user out with the spread sheet I created? Part of my job is to conduct wage and hour audits and this can be over a span of 1 yr to 5 yrs worth of payroll records. My goal is to create a spread sheet that will assist me with calculating hours worked, OT (over 8 in a day), SICK/PTO, and identifying any mealtime penalties. This is what I have so far, but the calculations are still not adding up correctly.
    Attached Files Attached Files

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2506 Win 11
    Posts
    24,771

    Re: Calculating Meal Penalties Formula

    @bdooley87

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #1 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calculating Penalties
    By Nikunp in forum Excel General
    Replies: 6
    Last Post: 07-03-2017, 12:42 PM
  2. Replies: 4
    Last Post: 07-01-2017, 08:35 AM
  3. [SOLVED] Formula to calculate penalties for a race
    By Cyran in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-16-2016, 04:40 AM
  4. Replies: 15
    Last Post: 08-09-2015, 09:20 PM
  5. [SOLVED] Need formula to calculate meal penalties
    By Calc7827 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2015, 10:40 AM
  6. Calculating Work hours overnight with a 6th hour meal period
    By aryan8582 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-17-2014, 02:05 PM
  7. Calculating Hours For Shift Penalties
    By Cam_M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2014, 12:39 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