Hi James,
If you are trying to obtain the hours through midnight, you would have
to add 24 hours (24 hours = 1 day) to the end time.
C2: 22:00
D2: 06:00
E2: =D2-C2+(C2D2)
C2D2 is a logical test it returns True or False
or in arithmetic 1=True 0=False
More information on Date and Time in
http://www.mvps.org/dmcritchie/excel/datetime.htm
http://www.cpearson.com/excel/datetime.htm
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages:
http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page:
http://www.mvps.org/dmcritchie/excel/search.htm
"james" wrote in message ...
I am trying to set up a spreadsheet to record staff flex-time. Formating to
record time produces errors when negative are introduced.