LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Date format

Are sure you don't get 16-Apr-41?

The reason this is happening is that dates are really just numbers formatted
to look like dates. The dates are measured in increments of 1 since a base
date. The default base date is Jan 1 1900 so its value is 1. Jan 2 1900 has
a value of 2. Jan 1 2007 has a value of 39083. It's the 39083rd day since
the base date.

So, when you enter this into a cell: 051607

Excel ignores the leading 0 and the value of the cell is numeric 51607. If
you have the cell formatted as a DATE then you will see 16-Apr-41 which is
actually 16-Apr-2041 or the 51607th day since the base date of Jan 1 1900.

So, you can't enter "dates" like that. There is some VBA code that will let
you do this and convert the numeric entry to the correct date:

http://cpearson.com/excel/DateTimeEntry.htm

If you have a bunch of cells with these types of entries:

051607
052207
040307

And you need to convert them to dates, try this:

Select the range of cells in question
Goto the menu DataText to Columns
Click Next, Next
In step 3 select DATE (and the format of your choice)
Finish

Biff

" wrote in message
...
Hello,

When I enter the date format of choice 051607 and hit the return tab I get
this format 17-Apr-45

How could I fix this format, I have over 300+ days to correct
--

Please advise ---- Thanks for your help.

Sallie



 
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: I enter date and format for date, but shows as number spohar Excel Discussion (Misc queries) 2 March 10th 06 08:40 PM
Can I change a date with no format (20051111) to date format? Rose New Users to Excel 2 November 11th 05 09:03 PM
day/month/year in incorrect format for date format M&A_Jack Excel Worksheet Functions 2 August 16th 05 08:15 PM
How can I convert a date format to an ISO week format (in EXCEL)? ELI Excel Discussion (Misc queries) 2 July 6th 05 06:31 PM
Excel 2000 date format cannot be set to Australian date format Brian Jones Excel Discussion (Misc queries) 1 March 30th 05 06:03 AM


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

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"