Time sheets with Numbers program
IN OUT IN OUT
8:00 14:00 14:30 17:00 8:30 hrs.
G4, Mac OS X (10.4.10)
G4, Mac OS X (10.4.10)
crazierthanu wrote:
The best way to do this one is as follows:
Cell A1: 8:00
Cell A2: 14:00
Cell A3: 14:30
Cell A4: 17:00
In result cell, type:
=(-HOUR(A1) 60-MINUTE(A1)HOUR(A2)*60+MINUTE(A2)-HOUR(A3)*60-MINUTE(A3)+HOUR(A4)60MINUTE(A4))/60
The result will be 8.5 ... if you want to display in hours:minutes, then it gets a bit more complicated ... assuming you don't want to waste a cell, type:
=CONCATENATE(ROUNDDOWN((-HOUR(A1) 60-MINUTE(A1)HOUR(A2)*60+MINUTE(A2)-HOUR(A3)*60-MINUTE(A3)+HOUR(A4)*60+MINUTE(A4))/60,0),":", ((-HOUR(A1)*60-MINUTE(A1)+HOUR(A2)*60+MINUTE(A2)-HOUR(A3)*60-MINUTE(A3)+HOUR(A4) *60MINUTE(A4))/60-ROUNDDOWN(B4,0))60)
It works,
the result is 8:30
jaxjason wrote:
why not just =((a2-a1)+(a4-a3))*24
Worked for me.
Jason
Time sheets with Numbers program