+ Reply to Thread
Results 1 to 5 of 5

Need formula to help calculate meal penalties for film timecard/production report

  1. #1
    Registered User
    Join Date
    06-30-2017
    Location
    New York
    MS-Off Ver
    10.2
    Posts
    1

    Lightbulb Need formula to help calculate meal penalties for film timecard/production report

    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 1 Penalty(written as 1L) up until 30 minutes, afterwhich the amount of penalties increases.


    For example — if work started at 8:00AM, lunch is owed at 2:00PM. If the lunch meal is delayed by 12 minutes (aka 2:12PM). There's no meal penalty.
    If the crew breaks at the 2:13, there is a lunch penalty and would be written as 1L. If the crew breaks at 2:31, it now becomes 2L. 3:01, 3L. etc.

    I'm trying to build a formula that will calculate if the time in D2 is 6 hours and 13 minutes passed the time in C2, then G2 will equal 1L, and for every situation after becomes 2L, then 3L.


    A B C D E F . G
    1 Name Call In Out Wrap MP
    2 Steve 7:00A 1:13P 1:43P 7:00P ??



    Thanks so much for your help. Hope this makes sense.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,250

    Re: Need formula to help calculate meal penalties for film timecard/production report

    I had not understood at first, but here's a possible way to accomplish what you're looking for.
    Attached Files Attached Files
    Last edited by Estevaoba; 06-30-2017 at 07:03 PM.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Need formula to help calculate meal penalties for film timecard/production report

    Estevaoba Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Need formula to help calculate meal penalties for film timecard/production report

    dsg To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    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.

  5. #5
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,250

    Re: Need formula to help calculate meal penalties for film timecard/production report

    Hello, FDibbins.

    Thank you for your note and congrats for the excellent job you guys do in this Forum!

    Here is an explanation of how my formula works.

    I use nested IF functions to first determine whether the amount of time is under the tolerance range. If not, I use IF+AND functions, combined with SUM function to determine whether elapsed time beyond tolerance is within the first and second half-hour increments range. Then I use QUOTIENT function to determine the number of half-hour increments occurred past the first two increments. The QUOTIENT result is used to count the number of fines. Finally, I use the concatenating operator “&” to include the character “L” as requested by Forum user.

+ 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. formula to calculate timecard compliance with multiple variables
    By lovelyanai in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2017, 12:34 AM
  2. [SOLVED] Need formula to calculate meal penatlies
    By Rift_tide in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-05-2016, 06:26 PM
  3. Help with Production Report Formula
    By pdreyest123 in forum Excel General
    Replies: 4
    Last Post: 06-18-2016, 11:55 AM
  4. [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
  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. Replies: 2
    Last Post: 09-28-2013, 02:40 AM
  7. Replies: 0
    Last Post: 03-16-2005, 03:13 AM

Tags for this Thread

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