+ Reply to Thread
Results 1 to 6 of 6

Need formula to calculate meal penalties

  1. #1
    Registered User
    Join Date
    04-18-2015
    Location
    NY
    MS-Off Ver
    Mac 2011
    Posts
    13

    Need formula to calculate meal penalties

    Hello,

    I need a formula to calculate the amount of meal penalties incurred during a film shoot by entering the total duration (minutes) in which the penalties occurred. Here are the assumptions on how meal penalties work:

    - meal must be provided at the 6th hour, otherwise it's one penalty for every half hour delayed or fraction thereof
    - there's a 12 minute grace period before the first meal penalty begins

    For example — if a meal is delayed by 125 minutes. That’s 5 meal penalties.

    I believe the formula is:

    1) if less than 12 minutes or less, return “0”
    2) if between 12 to 30 minutes, return “1”
    3) anything greater than 30 returns “1” for every 30 minutes or fraction thereof

    I have the first part down, but stuck on 2 and 3:

    Please Login or Register  to view this content.
    Any advice? Thank you!

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,737

    Re: Need formula to calculate meal penalties

    how are the times entered ?

    =IF( D13<12 , 0, IF( AND(D13>=12, D13<=30), 1, roundup(D13/30 , 0 )))

    This is not correct - but the sort of thing you probably need

    But need to see how the numbers are entered

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Need formula to calculate meal penalties

    Hi Calc,

    Welcome to the forum.

    Assuming you have your value in cell A1 then try the following formula in B1.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Let me know if this solve your purpose.

    Cheers!!

    Anil Dhawan
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Need formula to calculate meal penalties

    =IF(D13<=12,0,CEILING(D13/30,1))
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Need formula to calculate meal penalties

    Thanks for adding Reputation "Calc7827 "

  6. #6
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Need formula to calculate meal penalties

    Thanks for adding reputation Calc.

    Cheers!!!!

+ 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. Help Figuring a Formula For meal penalty
    By SkiPro17 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2015, 12:09 AM
  2. Calculating Hours For Shift Penalties
    By Cam_M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2014, 12:39 PM
  3. Penalties
    By lukadrugo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2012, 03:20 PM
  4. Replies: 6
    Last Post: 07-19-2012, 06:28 AM
  5. Excel 2007 : Penalties for cross country
    By Spike0907 in forum Excel General
    Replies: 5
    Last Post: 09-13-2010, 06:15 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