#1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers
external usenet poster
 
Posts: 18
Default Date format

i have a date format like this - 13.02.2007(dd.mm.yyyy)
i like to convert it to date so that i can sort it by date.
i already used the format cells to change the category type to date but
nothings happen.
i also replace the dot(.) to slash(/) but the excel read it as mm.dd.yyyy

can someone give me a tips?
thanks!


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.newusers
external usenet poster
 
Posts: 427
Default Date format

Terminology !

Dates are stored as numbers by Excel in a cell

Format allows you to alter the way Excel displays them.

If it was originally ente4red as 13.02.2007 then that is how it will be
stored ie as TEXT

Now when you convert the Dots to / with say Replace or manual edit
Excel will then treat the new text as input and as it is now in
Date ready format it will accept it.

If your original text entered data was dd.mm.yyyy, excel doesn't know that
and as it has US style Date enabled (mm/dd/yyyy) it treats it as such.


If you alter your regional settings to UK (dd/mm/yyyy) format before
changing the dots to slashes it should work
otherwise you will have to reconstruct the date from the
components of the the original

ie a1 = "13.02.2007"
b1 = date(right(a1,4),mid(a1,4,2),left(a1,2))

Steve



On Thu, 25 Jan 2007 06:14:11 -0000, jjuan wrote:

i have a date format like this - 13.02.2007(dd.mm.yyyy)
i like to convert it to date so that i can sort it by date.
i already used the format cells to change the category type to date but
nothings happen.
i also replace the dot(.) to slash(/) but the excel read it as mm.dd.yyyy

can someone give me a tips?
thanks!





--
Steve (3)
  #3   Report Post  
Posted to microsoft.public.excel.newusers,microsoft.public.excel
external usenet poster
 
Posts: 3,718
Default Date format

Data Text to Columns Next Next Under Column data format select Date,
in the drop down select DMY

"jjuan" wrote:

i have a date format like this - 13.02.2007(dd.mm.yyyy)
i like to convert it to date so that i can sort it by date.
i already used the format cells to change the category type to date but
nothings happen.
i also replace the dot(.) to slash(/) but the excel read it as mm.dd.yyyy

can someone give me a tips?
thanks!



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
How to convert a month to a quarter ...... Epinn New Users to Excel 26 May 3rd 23 07:45 PM
Excel 2007 Date Format Problem terry Excel Discussion (Misc queries) 0 November 25th 06 06:16 AM
EASY cond format Date?? lmv Excel Discussion (Misc queries) 6 November 17th 06 02:09 AM
MS Query Date Format scos00 Excel Discussion (Misc queries) 0 October 21st 05 04:58 PM
Customized Date Format Frustrated Excel Worksheet Functions 5 October 7th 05 11:30 PM


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