#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default time format

I am trying to format a formula =IF(E10TIME(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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default time format

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(E10TIME(10,30,0),E10-TIME(10,30,0),0)


--
Regards,

OssieMac


"Decreenisi" wrote:

I am trying to format a formula =IF(E10TIME(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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default time format

On 1 Apr, 11:34, Decreenisi wrote:
I am trying to format a formula =IF(E10TIME(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.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to format time in decimal format & calculate time Cheyenne Excel Discussion (Misc queries) 4 February 13th 09 04:34 PM
How to format time in decimal format & calculate time Cheyenne Excel Discussion (Misc queries) 1 February 13th 09 01:37 AM
How to format time in decimal format & calculate time Cheyenne Excel Discussion (Misc queries) 0 February 13th 09 12:49 AM
How to type format time in decimal format & calculate time Cheyenne Excel Discussion (Misc queries) 1 February 13th 09 12:09 AM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"