Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Marcus Ahlbäck
 
Posts: n/a
Default Get Excel to accept negative values using time-format

Hello

Excel seems to refuse negative values in cells that are having i time-format.
Is there a way to solve this?

(Yes, time can be negative. If you for example compare planned time with
actual time, the difference can be positive or negative)

Kind regards Marcus
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default Get Excel to accept negative values using time-format

Hi Marcus

Excel will not display negative time using the standard 1900 date system. It
displays a series of #########'s. However, the result can be used in further
calculations.

If you switch to the 1904 date system, ToolsOptionsCalculationclick 1904
dates. Beware of other changes to dates already entered as they will alter
by 4 years and 1 day.

A way of getting the time to work under the 1900 date system is to use
=MOD(A1-B1,1)
but the resulting value will always be positive. You could use Conditional
Formatting to show the negative values as Red.
FormatConditional FormattingFormula is=B1<A1 and set text format to Red.

Regards

Roger Govier


Marcus Ahlbäck wrote:
Hello

Excel seems to refuse negative values in cells that are having i time-format.
Is there a way to solve this?

(Yes, time can be negative. If you for example compare planned time with
actual time, the difference can be positive or negative)

Kind regards Marcus

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
Excel keeps converting text to date format John T via OfficeKB.com Excel Discussion (Misc queries) 4 September 12th 05 06:48 PM
How do I calculate and show negative time in Excel? Ramonak Excel Worksheet Functions 1 September 7th 05 01:54 AM
How do i get excel to format a cell for a negative result. Cisco Excel Discussion (Misc queries) 4 July 21st 05 08:40 AM
Negative Time Values B. Baumgartner Excel Discussion (Misc queries) 1 July 1st 05 10:16 AM
how to use time format to present negative value? ex. -00:42 min hass Excel Discussion (Misc queries) 4 April 19th 05 06:04 AM


All times are GMT +1. The time now is 11:48 AM.

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"