close

I am trying to figure out why my formula isn't working. I am creating a
timesheet form and have correctly calculated the number of hours worked based
on a start and end time.

My problem is in needing to break out overtime. Currently, I am returning a
value of 12:30 total hours for an 8:30 am to 9 pm work day. In my next cell
down, I need to indicate how many of those hours are overtime (which is
anything over 10 hours, so the correct answer is 2:30). If there is no
overtime, I want to return a value of 0. (I would also be ok with returning
no value at all if there is no overtime.)

The formula that I am using is this:
=IF(B12gt;=10,SUM(B12-10),quot;0quot;)

The formula dialog is telling me that B12 (which has a value of 12:30) is
not greater than 10 (which is not true) and therefor returns a value of 0
since the calculation concludes that there is no overtime.

What am I doing wrong?
Total hours: SUM(TotalHoursInWeek) usually 40hours Mon-Fri
Regular hours: MIN(TotalHours,40/24) replace 40 if Reg.Hours are different
Overtime hours: TotalHours-RegularHoursquot;Sashacat7quot; wrote:

gt; I am trying to figure out why my formula isn't working. I am creating a
gt; timesheet form and have correctly calculated the number of hours worked based
gt; on a start and end time.
gt;
gt; My problem is in needing to break out overtime. Currently, I am returning a
gt; value of 12:30 total hours for an 8:30 am to 9 pm work day. In my next cell
gt; down, I need to indicate how many of those hours are overtime (which is
gt; anything over 10 hours, so the correct answer is 2:30). If there is no
gt; overtime, I want to return a value of 0. (I would also be ok with returning
gt; no value at all if there is no overtime.)
gt;
gt; The formula that I am using is this:
gt; =IF(B12gt;=10,SUM(B12-10),quot;0quot;)
gt;
gt; The formula dialog is telling me that B12 (which has a value of 12:30) is
gt; not greater than 10 (which is not true) and therefor returns a value of 0
gt; since the calculation concludes that there is no overtime.
gt;
gt; What am I doing wrong?
gt;
gt;

Another option, since you're calculating overtime by day, not by week is:

A B
1 Start 8:30am
2 End 9:00pm
3 Total =B2-B1
4 Regular =IF(B3gt;=TIME(10,0,0),TIME(10,0,0),B3)
5 Overtime = IF(B3gt;=TIME(10,0,0),B3-TIME(10,0,0),0)

The problem is that Excel isn't intepreting your quot;10quot; as a time value--so I
think you need to convert it.

quot;Sashacat7quot; wrote:

gt; I am trying to figure out why my formula isn't working. I am creating a
gt; timesheet form and have correctly calculated the number of hours worked based
gt; on a start and end time.
gt;
gt; My problem is in needing to break out overtime. Currently, I am returning a
gt; value of 12:30 total hours for an 8:30 am to 9 pm work day. In my next cell
gt; down, I need to indicate how many of those hours are overtime (which is
gt; anything over 10 hours, so the correct answer is 2:30). If there is no
gt; overtime, I want to return a value of 0. (I would also be ok with returning
gt; no value at all if there is no overtime.)
gt;
gt; The formula that I am using is this:
gt; =IF(B12gt;=10,SUM(B12-10),quot;0quot;)
gt;
gt; The formula dialog is telling me that B12 (which has a value of 12:30) is
gt; not greater than 10 (which is not true) and therefor returns a value of 0
gt; since the calculation concludes that there is no overtime.
gt;
gt; What am I doing wrong?
gt;
gt;

That did the trick!! Thank you!! I knew it had something to do with
converting time, just couldn't get my head around how to make the conversion.

(our people are contractors, so they get paid by day, not by week.)
quot;BekkiMquot; wrote:

gt; Another option, since you're calculating overtime by day, not by week is:
gt;
gt; A B
gt; 1 Start 8:30am
gt; 2 End 9:00pm
gt; 3 Total =B2-B1
gt; 4 Regular =IF(B3gt;=TIME(10,0,0),TIME(10,0,0),B3)
gt; 5 Overtime = IF(B3gt;=TIME(10,0,0),B3-TIME(10,0,0),0)
gt;
gt; The problem is that Excel isn't intepreting your quot;10quot; as a time value--so I
gt; think you need to convert it.
gt;
gt; quot;Sashacat7quot; wrote:
gt;
gt; gt; I am trying to figure out why my formula isn't working. I am creating a
gt; gt; timesheet form and have correctly calculated the number of hours worked based
gt; gt; on a start and end time.
gt; gt;
gt; gt; My problem is in needing to break out overtime. Currently, I am returning a
gt; gt; value of 12:30 total hours for an 8:30 am to 9 pm work day. In my next cell
gt; gt; down, I need to indicate how many of those hours are overtime (which is
gt; gt; anything over 10 hours, so the correct answer is 2:30). If there is no
gt; gt; overtime, I want to return a value of 0. (I would also be ok with returning
gt; gt; no value at all if there is no overtime.)
gt; gt;
gt; gt; The formula that I am using is this:
gt; gt; =IF(B12gt;=10,SUM(B12-10),quot;0quot;)
gt; gt;
gt; gt; The formula dialog is telling me that B12 (which has a value of 12:30) is
gt; gt; not greater than 10 (which is not true) and therefor returns a value of 0
gt; gt; since the calculation concludes that there is no overtime.
gt; gt;
gt; gt; What am I doing wrong?
gt; gt;
gt; gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()