Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default To Display Negative Dates

Hello !

Thanks to all you for helping out me in my previous problem. This i have a
problem with diplaying negative times,

Say A1= 10:30 (format is hh:mm) and B1 = 8:30 (format is hh:mm).
when C1=B1-A1, the value is displayed as ##### with notification negative
dates and times are displayed as ######.
Is there a way to display the negative time (for e.g. 8:30 - 10:30 = -2:00)

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default To Display Negative Dates

In C1 enter:
=IF(B1<A1,"-","") & TEXT(ABS(B1-A1),"hh:mm")

--
Gary''s Student - gsnu200902


"deepak" wrote:

Hello !

Thanks to all you for helping out me in my previous problem. This i have a
problem with diplaying negative times,

Say A1= 10:30 (format is hh:mm) and B1 = 8:30 (format is hh:mm).
when C1=B1-A1, the value is displayed as ##### with notification negative
dates and times are displayed as ######.
Is there a way to display the negative time (for e.g. 8:30 - 10:30 = -2:00)

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default To Display Negative Dates

If you switch to the 1904 date system:
Tools|Options|calculation tab (in xl2003 menus)

You can see negative times and dates.

Be aware that this setting is a workbook setting and can cause trouble when
copying dates from a different workbook.

And your existing dates in this workbook will now be 4 years and 1 day larger.

Saved from a previous post:

One way to add (or subtract) 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 (or
subtract) (in theoperation box) and check values.

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

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



deepak wrote:

Hello !

Thanks to all you for helping out me in my previous problem. This i have a
problem with diplaying negative times,

Say A1= 10:30 (format is hh:mm) and B1 = 8:30 (format is hh:mm).
when C1=B1-A1, the value is displayed as ##### with notification negative
dates and times are displayed as ######.
Is there a way to display the negative time (for e.g. 8:30 - 10:30 = -2:00)

Thanks


--

Dave Peterson
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
Unable to display date correctly######dates and times are negative Cindy Excel Discussion (Misc queries) 3 June 8th 09 05:57 PM
How to display negative $ amount?? Soundar Excel Discussion (Misc queries) 12 January 3rd 08 04:51 PM
display negative number as zero Sue Excel Discussion (Misc queries) 3 January 18th 07 04:13 AM
display negative numbers as zero Andrea Excel Discussion (Misc queries) 3 November 21st 06 07:59 PM
How to display the negative bar in bar chart? ramkumar_cpt Charts and Charting in Excel 1 December 16th 05 05:40 AM


All times are GMT +1. The time now is 07:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"