+ Reply to Thread
Results 1 to 2 of 2

Need help tweaking a formula calculating overtime

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

    Need help tweaking a formula calculating overtime

    I have a formula to calculate meal penalty between 2 cells. Cell C2 is the time lunch starts and Cell B2 is the in time of the day.
    How MP works is that you get 12 minutes of "grace time" if you go over 12 minutes it's automatically 30 minute penalty.

    So for instance if we started at 7am and broke for lunch at 1:12PM it should be 0.0
    if we break any time between 1:13 and 1:30PM it should be 0.5
    between 1:31 and 1:36PM should be 0.6
    ect.

    The problem I'm having is any multiple of 6 once we're dealing with penalty goes to the next one up. So if I put we broke at 1:36PM it calculates to 0.7 instead of 0.6. And I'm not sure how to fix it.

    =IF(C2-B2<=TIME(6,12,0),0,IF(C2-B2<=TIME(6,30,0),0.5,QUOTIENT(C2-B2-TIME(6,30,0),TIME(0,6,0))*0.1+0.6))

    Thanks for any help!

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Need help tweaking a formula calculating overtime

    Hi,

    Can you post a sample file in excel format please? Make sure your desired results are shown, mock them up manually if necessary. Remember to desensitize the file by removing all confidential information before upload!

    See the following URL for help on how to upload a file.
    http://www.excelforum.com/members/da...ch-a-file.html

+ 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] Calculating Overtime Hours for each Day on a 40+ Overtime per Week Basis
    By HumdrumPanic in forum Excel General
    Replies: 5
    Last Post: 09-30-2020, 12:55 PM
  2. Help on formula for calculating overtime
    By polodon242 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 07-21-2015, 12:30 PM
  3. Help on formula(s) for calculating overtime/doubletime in CA
    By Jason Andi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-31-2014, 02:46 AM
  4. Formula for calculating overtime with two variables
    By whatisnucca in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-20-2014, 01:45 PM
  5. [SOLVED] IF formula with array - Calculating Overtime
    By Gtrtim112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-15-2013, 02:26 PM
  6. WHAT'S THE FORMULA FOR CALCULATING OVERTIME IN 1 CELL? EXAMPLE: 8.
    By garpavco in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-06-2005, 07:05 PM
  7. [SOLVED] need help w/formula for calculating overtime hours
    By jv749297 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2005, 04:06 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