Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
altona
 
Posts: n/a
Default Change date format from US to English (Australian)


Hi there,
I have to regularly download data from a US site and I need to reformat
the dates, does anyone know how to change the formats below: from
mm/dd/yyyy h:mm to dd/mm/yyyy h:mm
English (US) ................English (Australian)
01/15/2006 05:00 ................15/01/2006 5:00
01/15/2006 05:20 ................15/01/2006 5:20
01/15/2006 05:40 ................15/01/2006 5:40
01/15/2006 06:00 ................15/01/2006 6:00
01/15/2006 06:20 ................15/01/2006 6:20
01/15/2006 06:40 ................15/01/2006 6:40
01/15/2006 07:00 ................15/01/2006 7:00
I have tried to highlight the data then (Format-Cells-Custom) but the
mm/dd does not change. At the moment I start a new column with the new
format and use the click and drag, however the data is over several
months and every day or so it misses some time and then I have to
change the dates in two cells to start over again. Hope I am making
sense here?
Regards ................ Bill


--
altona
------------------------------------------------------------------------
altona's Profile: http://www.excelforum.com/member.php...o&userid=34139
View this thread: http://www.excelforum.com/showthread...hreadid=539096

  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Change date format from US to English (Australian)

This works for me although it demand a few steps:

1. Select the column with the US dates, format as Aussie dates, make sure
the column to the right is empty, do datatext to columns, select delimited
click next, select space as delimiter click next, under column data format
select MDY (you need to select the original date format) and click finish.
This will give you a column with correct dates and a column with the times,
to get back everything together use a third column, assume the original
column was A and the created time column is B, in C put

=A2+B2

Copy down and format as dd/mm/yy hh:mm


finally copy and paste special as values the so the third column is
independent of A and B

delete A and B

you might run into problem with dates that can be interpreted like 1/2/2006
which would be Feb 1st in Australia and January 2nd in the US, that can be
fixed if you always make sure the import is coming in as text..


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com




"altona" wrote in
message ...

Hi there,
I have to regularly download data from a US site and I need to reformat
the dates, does anyone know how to change the formats below: from
mm/dd/yyyy h:mm to dd/mm/yyyy h:mm
English (US) ................English (Australian)
01/15/2006 05:00 ................15/01/2006 5:00
01/15/2006 05:20 ................15/01/2006 5:20
01/15/2006 05:40 ................15/01/2006 5:40
01/15/2006 06:00 ................15/01/2006 6:00
01/15/2006 06:20 ................15/01/2006 6:20
01/15/2006 06:40 ................15/01/2006 6:40
01/15/2006 07:00 ................15/01/2006 7:00
I have tried to highlight the data then (Format-Cells-Custom) but the
mm/dd does not change. At the moment I start a new column with the new
format and use the click and drag, however the data is over several
months and every day or so it misses some time and then I have to
change the dates in two cells to start over again. Hope I am making
sense here?
Regards ................ Bill


--
altona
------------------------------------------------------------------------
altona's Profile:
http://www.excelforum.com/member.php...o&userid=34139
View this thread: http://www.excelforum.com/showthread...hreadid=539096



  #3   Report Post  
Posted to microsoft.public.excel.misc
altona
 
Posts: n/a
Default Change date format from US to English (Australian)


Thanks Peo,
however I tried your method and came up with the following hicup
02/01/2006 0:00 11:00:00 AM
02/01/2006 0:00 11:20:00 AM
02/01/2006 0:00 11:40:00 AM
02/01/2006 0:00 12:00:00 PM
02/01/2006 0:00 12:20:00 PM
02/01/2006 0:00 12:40:00 PM
02/01/2006 0:00 1:00:00 AM
02/01/2006 0:00 1:20:00 AM
02/01/2006 0:00 1:40:00 AM
02/01/2006 0:00 2:00:00 AM
it changes to PM but only for 3 rows then goes back to AM, it repeats
this every 12 hours ?
Regards ........... Bill


--
altona
------------------------------------------------------------------------
altona's Profile: http://www.excelforum.com/member.php...o&userid=34139
View this thread: http://www.excelforum.com/showthread...hreadid=539096

  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Change date format from US to English (Australian)

Do you have the AM/PM in the original import? If so use fixed width instead
of delimited when you split it and in step 2 make sure the line is between
the date and the time and if there is a line between the time values and the
AM/PM double click it to remove it, continue with the rest as earlier
If that doesn't work post back

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"altona" wrote in
message ...

Thanks Peo,
however I tried your method and came up with the following hicup
02/01/2006 0:00 11:00:00 AM
02/01/2006 0:00 11:20:00 AM
02/01/2006 0:00 11:40:00 AM
02/01/2006 0:00 12:00:00 PM
02/01/2006 0:00 12:20:00 PM
02/01/2006 0:00 12:40:00 PM
02/01/2006 0:00 1:00:00 AM
02/01/2006 0:00 1:20:00 AM
02/01/2006 0:00 1:40:00 AM
02/01/2006 0:00 2:00:00 AM
it changes to PM but only for 3 rows then goes back to AM, it repeats
this every 12 hours ?
Regards ........... Bill


--
altona
------------------------------------------------------------------------
altona's Profile:
http://www.excelforum.com/member.php...o&userid=34139
View this thread: http://www.excelforum.com/showthread...hreadid=539096



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
Forcing english date format Steve1154 Excel Worksheet Functions 5 February 15th 06 03:11 PM
How do I change the date format when importing a txt file? vpuckett Excel Worksheet Functions 2 November 28th 05 10:53 PM
I cannot change the date format to English canada DStanfield Excel Discussion (Misc queries) 2 September 28th 05 06:23 PM
How change Excel default date format to something useful mjk Excel Discussion (Misc queries) 1 September 26th 05 08:15 PM
Change the format of my footer {date} option? Tori Excel Discussion (Misc queries) 1 January 25th 05 05:33 PM


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