ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Displaying negative time (https://www.excelbanter.com/excel-discussion-misc-queries/222734-displaying-negative-time.html)

babs

Displaying negative time
 
Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The formula
calculates fine and when the time is positive is shown in the time format (ie
15:30 etc) but when it is negative I just get #### which usually means the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK

Bernard Liengme[_3_]

Displaying negative time
 
Babs,
Excel does not let you have negative time (or date) value
Some help may be obtained from
http://j-walk.com/ss/excel/usertips/tip051.htm
http://exceltip.com/st/Negative_time...Excel/525.html
http://www.techonthenet.com/excel/qu...time_calcs.php
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Babs" wrote in message
...
Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The
formula
calculates fine and when the time is positive is shown in the time format
(ie
15:30 etc) but when it is negative I just get #### which usually means
the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK




Dave Peterson

Displaying negative time
 
You can display negative time if you're using the 1904 base date.

In xl2003 menus:
Tools|Options|Calculation tab|check "1904 date system"

Be aware that your existing dates will be now be off by 4 years and one day.
You can fix this, though. But a bigger problem may be when you copy dates from
one workbook to another (each using different date systems).

Saved from a previous post:

Be aware that any existing date will now be off by 4 years and 1 day. And
copying dates between workbooks becomes a problem, too.

One workbook was using a base year of 1900 and the other was using 1904.
(tools|options|calculation tab|1904 date system)

One way to add those four years back is to find an empty cell, put 1462 into
that cell.

Copy that cell.

Select your range that contains the dates. Edit|PasteSpecial|click Add (in the
operation box).

You may have to reformat the cell as a date (mine turned to a 5 digit number).
But it should work.

You may want to do it against a copy...just in case.

(I'm not sure which one you'll fix. You may want to edit|pastespecial|click
subtract.)

Most windows users use 1900 as the base date. Mac users (mostly??) use 1904 as
the base date.

Babs wrote:

Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The formula
calculates fine and when the time is positive is shown in the time format (ie
15:30 etc) but when it is negative I just get #### which usually means the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK


--

Dave Peterson

Fred Smith[_4_]

Displaying negative time
 
The only way to display negative times is to switch to the 1904 date system.
However, this will change every date in your spreadsheet by 4 years and 1
day, so for most people it's impractical.

Excel will do all the calculations, it just won't *display* negative times.
An alternative, therefore, may be to display decimal hours rather than
times. To do this, multiply your result by 24, and format as a number (or
general).

Is this something you can work with?

Regards,
Fred.

"Babs" wrote in message
...
Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The
formula
calculates fine and when the time is positive is shown in the time format
(ie
15:30 etc) but when it is negative I just get #### which usually means
the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK



Niek Otten

Displaying negative time
 
Although Excel can't display negative times, the undelying value is still
correct, so you can include them in calculations like SUM().
To display them, you would need a separate cell like

=IF(C10,TEXT(C1,"hh:mm:ss"),"-"&TEXT(ABS(C1),"hh:mm:ss"))

Of course that is text, so only for display, not for calculation

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Bernard Liengme" wrote in message
...
Babs,
Excel does not let you have negative time (or date) value
Some help may be obtained from
http://j-walk.com/ss/excel/usertips/tip051.htm
http://exceltip.com/st/Negative_time...Excel/525.html
http://www.techonthenet.com/excel/qu...time_calcs.php
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Babs" wrote in message
...
Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The
formula
calculates fine and when the time is positive is shown in the time format
(ie
15:30 etc) but when it is negative I just get #### which usually means
the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK





babs

Displaying negative time
 
Many thanks Niek,
I prefer your option rather than changing the date system so I've inserted a
row and used your formula which works fine! ...... the next question is can
I now use conditional formatting to make the negative (text) time show in red
& bold! I have tried and it doesn't seem to work but of course it's now text
not a number below zero.

At lease it does show the time with a - (minus) sign so I'm please with that
and I can hide the calculating cell if needs,
thanks again
--
Babs - Leicester UK


"Niek Otten" wrote:

Although Excel can't display negative times, the undelying value is still
correct, so you can include them in calculations like SUM().
To display them, you would need a separate cell like

=IF(C10,TEXT(C1,"hh:mm:ss"),"-"&TEXT(ABS(C1),"hh:mm:ss"))

Of course that is text, so only for display, not for calculation

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Bernard Liengme" wrote in message
...
Babs,
Excel does not let you have negative time (or date) value
Some help may be obtained from
http://j-walk.com/ss/excel/usertips/tip051.htm
http://exceltip.com/st/Negative_time...Excel/525.html
http://www.techonthenet.com/excel/qu...time_calcs.php
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Babs" wrote in message
...
Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The
formula
calculates fine and when the time is positive is shown in the time format
(ie
15:30 etc) but when it is negative I just get #### which usually means
the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK





Fred Smith[_4_]

Displaying negative time
 
You can still use conditional formatting, you just have to do it for text,
not a number. Use a formula like:
=left(a1,1)="-"

Regards
Fred

"Babs" wrote in message
...
Many thanks Niek,
I prefer your option rather than changing the date system so I've inserted
a
row and used your formula which works fine! ...... the next question is
can
I now use conditional formatting to make the negative (text) time show in
red
& bold! I have tried and it doesn't seem to work but of course it's now
text
not a number below zero.

At lease it does show the time with a - (minus) sign so I'm please with
that
and I can hide the calculating cell if needs,
thanks again
--
Babs - Leicester UK


"Niek Otten" wrote:

Although Excel can't display negative times, the undelying value is still
correct, so you can include them in calculations like SUM().
To display them, you would need a separate cell like

=IF(C10,TEXT(C1,"hh:mm:ss"),"-"&TEXT(ABS(C1),"hh:mm:ss"))

Of course that is text, so only for display, not for calculation

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Bernard Liengme" wrote in message
...
Babs,
Excel does not let you have negative time (or date) value
Some help may be obtained from
http://j-walk.com/ss/excel/usertips/tip051.htm
http://exceltip.com/st/Negative_time...Excel/525.html
http://www.techonthenet.com/excel/qu...time_calcs.php
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Babs" wrote in message
...
Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The
formula
calculates fine and when the time is positive is shown in the time
format
(ie
15:30 etc) but when it is negative I just get #### which usually
means
the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK





babs

Displaying negative time
 
Absolutely brilliant! I'd never have know how to do this, many thanks for
your help

--
Babs - Leicester UK


"Fred Smith" wrote:

You can still use conditional formatting, you just have to do it for text,
not a number. Use a formula like:
=left(a1,1)="-"

Regards
Fred

"Babs" wrote in message
...
Many thanks Niek,
I prefer your option rather than changing the date system so I've inserted
a
row and used your formula which works fine! ...... the next question is
can
I now use conditional formatting to make the negative (text) time show in
red
& bold! I have tried and it doesn't seem to work but of course it's now
text
not a number below zero.

At lease it does show the time with a - (minus) sign so I'm please with
that
and I can hide the calculating cell if needs,
thanks again
--
Babs - Leicester UK


"Niek Otten" wrote:

Although Excel can't display negative times, the undelying value is still
correct, so you can include them in calculations like SUM().
To display them, you would need a separate cell like

=IF(C10,TEXT(C1,"hh:mm:ss"),"-"&TEXT(ABS(C1),"hh:mm:ss"))

Of course that is text, so only for display, not for calculation

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Bernard Liengme" wrote in message
...
Babs,
Excel does not let you have negative time (or date) value
Some help may be obtained from
http://j-walk.com/ss/excel/usertips/tip051.htm
http://exceltip.com/st/Negative_time...Excel/525.html
http://www.techonthenet.com/excel/qu...time_calcs.php
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Babs" wrote in message
...
Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The
formula
calculates fine and when the time is positive is shown in the time
format
(ie
15:30 etc) but when it is negative I just get #### which usually
means
the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK






Bernard Liengme[_3_]

Displaying negative time
 
Thanks, Niek, for putting me straight. I do not work much with time and have
always assumed the #### was an error rather than just a message "I cannot
show you that"
best wishes
--
Bernard

"Niek Otten" wrote in message
...
Although Excel can't display negative times, the undelying value is still
correct, so you can include them in calculations like SUM().
To display them, you would need a separate cell like

=IF(C10,TEXT(C1,"hh:mm:ss"),"-"&TEXT(ABS(C1),"hh:mm:ss"))

Of course that is text, so only for display, not for calculation

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Bernard Liengme" wrote in message
...
Babs,
Excel does not let you have negative time (or date) value
Some help may be obtained from
http://j-walk.com/ss/excel/usertips/tip051.htm
http://exceltip.com/st/Negative_time...Excel/525.html
http://www.techonthenet.com/excel/qu...time_calcs.php
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Babs" wrote in message
...
Hi everyone,
first time on here so hope you can help me.

I use Excel (2003) for recording employee time / flexi hours. This is
allowed to go into a negative but I can't seem to display this. The
formula
calculates fine and when the time is positive is shown in the time
format (ie
15:30 etc) but when it is negative I just get #### which usually means
the
column needs widening but this doesn't make any difference.
Any ideas anyone?
Thanks

--
Babs - Leicester UK








All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com