Military Time Subtraction

M

MWB

I do my time sheet in military time. Is there a way to subtract military
time?
Let's say:

E5 F5 G5
0800 1700 9

How do I make it 9 and not 900?


Thanks
Mark
 
M

Mike

G5: Formula =HOUR(TIME(F5/100,MOD(F5,100),0)-TIME(E5/100,MOD(E5,100),0))+MINUTE(TIME(F5/100,MOD(F5,100),0)-TIME(E5/100,MOD(E5,100),0))/100
G5: Format General
 
A

Aladin Akyurek

=(TEXT(F5,"00\:00")-TEXT(E5,"00\:00"))*24

Format the formula cell as General.
 
R

Ron Rosenfeld

I do my time sheet in military time. Is there a way to subtract military
time?
Let's say:

E5 F5 G5
0800 1700 9

How do I make it 9 and not 900?


Thanks
Mark

And another method, if you have the Analysis Toolpak installed, and want a
decimal output (in other words -- 9.5 as a result for 9 hours 30 minutes):

=dollarde(F5/100,60)-dollarde(E5/100,60)


--ron
 

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

Similar Threads


Top