+ Reply to Thread
Results 1 to 4 of 4

Solving for OT after certain hours in a time-card

  1. #1
    Registered User
    Join Date
    11-01-2007
    Location
    Stavanger, Norway
    MS-Off Ver
    Excel 2013
    Posts
    22

    Solving for OT after certain hours in a time-card

    I've got a simple time-card with the following columns:

    Time In (C) | Time Out (D) | Total Hours (E) | Overtime (F)

    Right now, in column F(OT) I've got the formula of
    Please Login or Register  to view this content.
    so that the cell is empty before any information is put in to the adjacent cells, but also because a "normal" workday is from 07:30 to 15:30. However, OT doesn't truly kick in until you've worked 8 hours. So if someone clocks in and works from 08:00-16:00 my formula is obviously returning a 1/2 hour OT when, in fact, no overtime was worked.

    I've tried changing the formula to
    Please Login or Register  to view this content.
    but that returns an incorrect result and doesn't really account for the Time In/Time Out anyway. I've also experimented with the D4-TIME() and D4-TIMEVALUE() functions (instead of D4-8) but that wasn't producing the results I wanted either.

    I assume it will require an "AND" or "OR" operator, but the attempts I've made have been wildly inconsistent.
    Please Login or Register  to view this content.
    I know at this point that it's probably a simple answer but for some reason I just can't wrap my head around the order of operations or if I'm even on the right track. Would be grateful for any help.

    Thanks in advance.

  2. #2
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Solving for OT after certain hours in a time-card

    As we don't have a sample file, so I have to assume some things.

    You state at the top that you have a Total Hours column, is this total hours of the day worked by that person or total hours worked by that person in a week/month/year?

    If it is that day. you can easily use

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


    Note that you will have to format this as time, preferably by hand, but it can also be done by adding the TEXT formula with the u:mm;@ format. (this however converts it to text, so no further calculation can be done on it)

    If E4 doesn't contain the total hours worked that they, you will have to incorporate that formula in the place of E4

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


    If these don't work, we will have to see an example sheet to see how everything is formatted, etc.

    Ferdy
    Remember to mark as Solved and give out rep.

  3. #3
    Registered User
    Join Date
    11-01-2007
    Location
    Stavanger, Norway
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Solving for OT after certain hours in a time-card

    Quote Originally Posted by FerdyHar View Post
    As we don't have a sample file, so I have to assume some things.

    You state at the top that you have a Total Hours column, is this total hours of the day worked by that person or total hours worked by that person in a week/month/year?

    If it is that day. you can easily use

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


    Ferdy

    Thank you! I think I see my issue here. I wasn't thinking in terms of nested IF functions and I was looking at times as whole numbers rather than percentages of 24 hours (which is, I'm guessing, what the 1/3 represents?).

    Regardless, your first formula works a charm. Many thanks for that.

  4. #4
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Solving for OT after certain hours in a time-card

    Yeah, when you format in time you see for example 12:00:00, but in reality, excel saves this as 0,5. As this is half a day. So naturally 8 hours is then 1/3

    Glad I could help.

+ 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] Timesheet that calcs time in, time out, lunch used, reg hours, ot hours, double hours
    By noobface in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-21-2021, 03:45 AM
  2. Replies: 4
    Last Post: 02-14-2018, 03:52 PM
  3. Filtering Card Reader Data to Total After Hours Use
    By coneill89 in forum Excel General
    Replies: 3
    Last Post: 08-09-2016, 09:21 AM
  4. Solving for hours, can it be done?
    By smbarber in forum Excel General
    Replies: 2
    Last Post: 05-17-2016, 08:58 AM
  5. Replies: 2
    Last Post: 11-12-2014, 11:56 AM
  6. [SOLVED] Formula to Calculate Normal Hours, Time & 1/2 & Double Time from Daily Hours per week
    By KazzICC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2014, 01:51 AM
  7. [SOLVED] Converting time to hours in a time card
    By frankday in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2012, 06:04 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