Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dokliver
 
Posts: n/a
Default time-clock calculation

I am attempting to do a calculation for hours worked using the 24-hour format
but have run into a problem. A simple minus calculation such as (C5-A5)
does not yield an accurate calculation if the time value for A5 is greater
than C5. Can you suggest a format/formula to use is my punch out time is
17:00pm and punch in time is 05:00am?
  #2   Report Post  
dcronje
 
Posts: n/a
Default


=if(c5a5,(c5+1)-a5,c5-a5)


--
dcronje
------------------------------------------------------------------------
dcronje's Profile: http://www.excelforum.com/member.php...fo&userid=5281
View this thread: http://www.excelforum.com/showthread...hreadid=273392

  #3   Report Post  
Sandy Mann
 
Posts: n/a
Default

Assuming that the 05:00 is the following morning try

=C5-A5+(C5<A5)

or


=MOD(C5-A5,1)


HTH

Sandy
--
to e-mail direct replace @mailintor.com with @tiscali.co.uk

"dokliver" wrote in message
...
I am attempting to do a calculation for hours worked using the 24-hour

format
but have run into a problem. A simple minus calculation such as (C5-A5)
does not yield an accurate calculation if the time value for A5 is greater
than C5. Can you suggest a format/formula to use is my punch out time is
17:00pm and punch in time is 05:00am?




  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=MOD(C5-A5,1)

or less cryptic

=C5-A5+(A5C5)

Regards,

Peo Sjoblom

"dokliver" wrote:

I am attempting to do a calculation for hours worked using the 24-hour format
but have run into a problem. A simple minus calculation such as (C5-A5)
does not yield an accurate calculation if the time value for A5 is greater
than C5. Can you suggest a format/formula to use is my punch out time is
17:00pm and punch in time is 05:00am?

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
elapsed time calculation rwf Excel Discussion (Misc queries) 1 January 21st 05 04:51 AM
entering numbers to display a time format Ian Williams/Eazygig Excel Discussion (Misc queries) 1 January 10th 05 11:57 AM
"Manual calculation" takes less time. Why? Kjetil Excel Discussion (Misc queries) 1 January 7th 05 12:28 AM
Help - Information with time and date PM Excel Discussion (Misc queries) 4 January 6th 05 08:25 AM
Excel - Time calculation Leyland Excel Discussion (Misc queries) 1 November 30th 04 07:43 PM


All times are GMT +1. The time now is 07:30 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"