subtracting time

A

aggierian

I am making a spreadsheet that tracks my hours at work. I want to enter
my start and end time and find out how many hours worked. The problem
I run into is that if I start before midnight, and get out after
midnight and try to subtract (Ex: 1a minus 6p) excel won't return the
value, it says it won't display a negative time.
 
G

GB

aggierian said:
I am making a spreadsheet that tracks my hours at work. I want to enter
my start and end time and find out how many hours worked. The problem
I run into is that if I start before midnight, and get out after
midnight and try to subtract (Ex: 1a minus 6p) excel won't return the
value, it says it won't display a negative time.
Try

If(T2>T1,T2-T1,1+T1-T2)

Geoff
 
T

theroo

Excel is very smart. If you enter your values as date-time excel automatically handles the cross over midnight. Enter your values this way 11/8/02 23:25. The trick is date SPACE time. You can choose whatever date/time format you want but enter both in the same cell separated by a space. Amazing ain't it. Nurses have to know these things.
 

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