Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
james
 
Posts: n/a
Default recording negative time

I am trying to set up a spreadsheet to record staff flex-time. Formating to
record time produces errors when negative are introduced.
  #2   Report Post  
Harald Staff
 
Posts: n/a
Default

Hi

Set your spreadsheet to 1904 calendar (Tools Options menu) to display
negative time. (Note that dates will shidt 4 years 1 days off by doing
this).

HTH. Best wishes Harald

"james" skrev i melding
...
I am trying to set up a spreadsheet to record staff flex-time. Formating

to
record time produces errors when negative are introduced.



  #3   Report Post  
David McRitchie
 
Posts: n/a
Default

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.



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

It is still a correct value even if it doesn't show as such, so any further
calculations using that value will be correct.

If it is just to see it correctly, you could force it like so

=IF(B1-A1<0,"-","")&TEXT(ABS(B1-A1),"hh:mm:SS")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"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.



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
Calculating negative time. Brian Excel Discussion (Misc queries) 4 April 7th 05 08:37 PM
How do you enter a negative time number in Excel? Thomas99 Excel Discussion (Misc queries) 4 March 17th 05 11:42 PM
Calculating negative time & creating scrol bars for fixed size txt box. Jonathan hill via OfficeKB.com Excel Discussion (Misc queries) 4 February 12th 05 02:08 AM
negative time joshua Excel Discussion (Misc queries) 1 January 6th 05 06:41 PM
calculate negative or positve difference in time kpmoore Excel Discussion (Misc queries) 2 January 5th 05 01:35 AM


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