time format

D

Decreenisi

I am trying to format a formula =IF(E10>TIME(10,0,0),E10-TIME(10,0,0),
0), kindly given to me for a time sheet issue. E10 has a formula H10-
G10. In cell F10 is the above formula, which gives 1 hrs overtime,
based on a 10 hr x 4 day week. I now need to calculate over a 10 1/2
hr day, however try as I might the calculation still returns 1 hr
instead if 1/2 an hr. I have tried (10.5 , 10:30) but to no avail. I
am missing something stupidly simple, can anyone help.
 
O

OssieMac

The time function is entered as TIME(hour,minute,second)

You need to change the minutes in both TIME functions in the formula. The
first part of the formula tests if E10 is greater than 10:30 and the second
part subtracts 10:30 from E10 if E10 is greater than 10:30. Otherwise returns
zero.

=IF(E10>TIME(10,30,0),E10-TIME(10,30,0),0)
 
D

Decreenisi

I am trying to format a formula =IF(E10>TIME(10,0,0),E10-TIME(10,0,0),
0), kindly given to me for a time sheet issue. E10 has a formula H10-
G10. In cell F10 is the above formula, which gives 1 hrs overtime,
based on a 10 hr x 4 day week. I now need to calculate over a 10 1/2
hr day, however try as I might the calculation still returns 1 hr
instead if 1/2 an hr. I have tried (10.5 , 10:30) but to no avail. I
am missing something stupidly simple, can anyone help.

OOOPS ! I have found what I need to know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top