Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Unable to display date correctly######dates and times are negative

Using Excel 2007. Inherited a spreadsheet with a column were the numbers are
7312008, which needs to be 07/31/2008. Current format shows "general". When
I choose format cell and change to date, I get ###### with an error that
shows times are negative. Making the column wider does no good, I just get
more ###'s.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Unable to display date correctly######dates and times are negative

Apply the below formula

=TEXT(TEXT(A1,"00000000"),"00-00-0000")+0
and format that to any date format

If this post helps click Yes
---------------
Jacob Skaria


"Cindy" wrote:

Using Excel 2007. Inherited a spreadsheet with a column were the numbers are
7312008, which needs to be 07/31/2008. Current format shows "general". When
I choose format cell and change to date, I get ###### with an error that
shows times are negative. Making the column wider does no good, I just get
more ###'s.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Unable to display date correctly######dates and times are nega

Thank you Jacob! Works perfect.

"Jacob Skaria" wrote:

Apply the below formula

=TEXT(TEXT(A1,"00000000"),"00-00-0000")+0
and format that to any date format

If this post helps click Yes
---------------
Jacob Skaria


"Cindy" wrote:

Using Excel 2007. Inherited a spreadsheet with a column were the numbers are
7312008, which needs to be 07/31/2008. Current format shows "general". When
I choose format cell and change to date, I get ###### with an error that
shows times are negative. Making the column wider does no good, I just get
more ###'s.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Unable to display date correctly######dates and times are negative

The ####### isn't indicating a negative number, but a number outside Excel's
range of legal dates. The largest date value which Excel recognises is 31
Dec 9999, which corresponds to a number of 2958465. Your 7312008 is larger
than 2958465, so it is invalid.
You'll have to convert your 7312008 to 7/31/2008.
If your Windows Regional Settings (in Control Panel) recognise a format of
mddyyyy, you might get away with
=--TEXT(A1,"00\-00\-0000") and formatting the result as date.
Safer might be =DATE(RIGHT(A1,4),LEFT(A1,LEN(A1)-6),MID(A1,LEN(A1)-5,2))
--
David Biddulph

"Cindy" wrote in message
...
Using Excel 2007. Inherited a spreadsheet with a column were the numbers
are
7312008, which needs to be 07/31/2008. Current format shows "general".
When
I choose format cell and change to date, I get ###### with an error that
shows times are negative. Making the column wider does no good, I just
get
more ###'s.



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
Negative Dates and/or Times watermt Excel Worksheet Functions 3 May 28th 09 06:55 PM
How to display negative times Josh W Excel Worksheet Functions 7 August 29th 07 04:53 PM
How do i display a negative time as a res of distracting 2 times? Red Bullit Excel Worksheet Functions 2 July 12th 07 07:37 PM
negative dates or times are displayed as # # # # Amr Shehata Excel Worksheet Functions 4 February 2nd 07 11:35 AM
I seem unable to display negative values with brackets Ferd Excel Discussion (Misc queries) 3 January 31st 06 10:36 PM


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