+ Reply to Thread
Results 1 to 12 of 12

Need formula to calculate meal penatlies

  1. #1
    Registered User
    Join Date
    06-27-2016
    Location
    Vancouver, BC
    MS-Off Ver
    2016
    Posts
    8

    Need formula to calculate meal penatlies

    I need a formula to calculate the amount of meal penalties for a film shoot based off of start time and lunch in time. Here are the assumptions on how meal penalties work:

    - meal must be provided at the 6th hour, otherwise it's .1 for ever 6 minute increment. There's a 12 minute grace period before the first meal penalty begins, if it goes beyond the grace period it's automatically 30 minutes of penalty (or .5) before it goes up by .1 for each 6 minutes, and all times should be rounded up to the nearest 6 minute mark.


    For example — if a meal is delayed by 12 minutes. There's no meal penalty.
    If they break at the 13, 20 or 30 minute mark it's .5
    and if they break at the 31 minute mark it's .6

    I'm trying to build a formula that will minus the time in B2 from C2 and put the decimal in Column F if one is required.


    A B C D E F
    1 Name Start In Out Wrap MP
    2 Steve 0700 1313 1343 1800



    Thanks so much for your help.

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Need formula to calculate meal penatlies

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

  3. #3
    Registered User
    Join Date
    06-27-2016
    Location
    Vancouver, BC
    MS-Off Ver
    2016
    Posts
    8

    Re: Need formula to calculate meal penatlies

    That is exactly what I was looking for.

    Thank you!

  4. #4
    Registered User
    Join Date
    06-27-2016
    Location
    Vancouver, BC
    MS-Off Ver
    2016
    Posts
    8

    Re: Need formula to calculate meal penatlies

    I've run into a problem that I hadn't noticed before, every 6th minute should be included in the previous .1,

    so basically if we started at 7am and broke for lunch at 2pm, it should read 1.0. Right now the formula is giving me 1.1

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Need formula to calculate meal penatlies

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

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Need formula to calculate meal penatlies

    this one's a little shorter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-27-2016
    Location
    Vancouver, BC
    MS-Off Ver
    2016
    Posts
    8

    Re: Need formula to calculate meal penatlies

    The longer formula works like a charm, thanks!

  8. #8
    Registered User
    Join Date
    06-27-2016
    Location
    Vancouver, BC
    MS-Off Ver
    2016
    Posts
    8

    Re: Need formula to calculate meal penatlies

    If I wanted to modify it so that it starts calculating right after the 6 hour mark with no grace, what would I need to modify? I'm just trying to understand how it works.

  9. #9
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Need formula to calculate meal penatlies

    to start from 6 hour mark, with a .1 for every 6 minutes, try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    06-27-2016
    Location
    Vancouver, BC
    MS-Off Ver
    2016
    Posts
    8

    Re: Need formula to calculate meal penatlies

    That works right up to the 6 minute mark, where it switches to .2 for 6 minutes over. It should still read 0.1 and only switch over to 0.2 at the 7 minute mark.

  11. #11
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Need formula to calculate meal penatlies

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

  12. #12
    Registered User
    Join Date
    06-27-2016
    Location
    Vancouver, BC
    MS-Off Ver
    2016
    Posts
    8

    Re: Need formula to calculate meal penatlies

    That's got it. Thanks!

+ 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. [SOLVED] Need formula to calculate meal penalties
    By Calc7827 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2015, 10:40 AM
  2. Help Figuring a Formula For meal penalty
    By SkiPro17 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2015, 12:09 AM
  3. Meal Tracking and Planning Project
    By BrokeCollegeKid in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 10-01-2014, 10:43 PM
  4. Meal Tracking and Planning Project
    By BrokeCollegeKid in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-01-2014, 05:07 PM
  5. Creating meal plans using formulas
    By evaudio in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2014, 10:03 PM
  6. Meal Generator using food groups
    By simonious1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2014, 09:07 AM
  7. Help with calculations in a meal plan!
    By TASan in forum Excel General
    Replies: 7
    Last Post: 06-21-2012, 09:53 AM

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