Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a file in which one column consists of dates in a "dd.mm.yyyy" format
(e.g. 25.12.2006). I need to replace the "." with a "/" to obtain a "dd/mm/yyyy" format (i.e. 25/12/2006). When I do that manually with search and replace it works fine. However when I record a macro to do the job the following happens: all dates there the dd is 13 and above convertes correctly (e.g. 15.11.2006 becomes 15/11/2006); however all dates where the dd is 12 or less swaps the dd and mm, e.g. 12.11.2006 becomes 11/12/2006! It looks as if the macro causes some of the records to assume a US-type mm/dd/yyyy format. I have tried to define the date format in different ways both before and during the replacement but nothing seems to work. I'm using Excel 2003 (11.8120.8122) SP2, fully opdated. Anybody has an idea about how to solve this? Thanks Henrik |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy and Paste Date - weird behavior | Excel Discussion (Misc queries) | |||
Date Format Behavior | Excel Discussion (Misc queries) | |||
Excel 2000 date format cannot be set to Australian date format | Excel Discussion (Misc queries) | |||
How do I stop excel replacing numerical values with the date? | Excel Discussion (Misc queries) | |||
Combine & Display “Fixed” & “Automatically Updated” Date Parts | Excel Worksheet Functions |