Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Troy Lea
 
Posts: n/a
Default Opening a csv file with US date format on a Australian PC

Having problems with formating dates correctly in Excel when opened from a
CSV file. The data coming in is in the US format "MM/DD/YYYY HH:MM AM/PM".
IE: "6/17/1985 12:00:00 AM".

When the CSV file is opened in Excel you are unable to change the formatting
to set it to Australian date format "DD/MM/YYYY HH:MM AM/PM"; the data stays
the same as "6/17/1985 12:00:00 AM".

When the MM and DD digits are 12 and less it recognises them as valid dates.
IE "11/1/1995 12:00:00 AM" is automatically formated as "11/01/1995 0:00".
However this is only happening because both MM and DD are equal to or less
than 12.

My question is how do I import the data into Excel telling it that the
format of the data coming in is "MM/DD/YYYY HH:MM AM/PM" and I want it
formatted as "DD/MM/YYYY HH:MM AM/PM"? Unfortunately when we receive the data
from the database it includes the time in the date field, we have no control
over this.


  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Troy

if you change the file extension before importing to .txt you will then get
the import wizard when you open the file in Excel... one of the screens
allows you to specify the date format of the imported data - you might like
to give this a go and see if it helps

Cheers
JulieD
Perth, Western Australia

"Troy Lea" wrote in message
...
Having problems with formating dates correctly in Excel when opened from a
CSV file. The data coming in is in the US format "MM/DD/YYYY HH:MM AM/PM".
IE: "6/17/1985 12:00:00 AM".

When the CSV file is opened in Excel you are unable to change the
formatting
to set it to Australian date format "DD/MM/YYYY HH:MM AM/PM"; the data
stays
the same as "6/17/1985 12:00:00 AM".

When the MM and DD digits are 12 and less it recognises them as valid
dates.
IE "11/1/1995 12:00:00 AM" is automatically formated as "11/01/1995 0:00".
However this is only happening because both MM and DD are equal to or less
than 12.

My question is how do I import the data into Excel telling it that the
format of the data coming in is "MM/DD/YYYY HH:MM AM/PM" and I want it
formatted as "DD/MM/YYYY HH:MM AM/PM"? Unfortunately when we receive the
data
from the database it includes the time in the date field, we have no
control
over this.




  #3   Report Post  
Troy Lea
 
Posts: n/a
Default

We've tried that but unfortunately because there is time included in the
field this method doesn't work.

"JulieD" wrote:

Hi Troy

if you change the file extension before importing to .txt you will then get
the import wizard when you open the file in Excel... one of the screens
allows you to specify the date format of the imported data - you might like
to give this a go and see if it helps

Cheers
JulieD
Perth, Western Australia

"Troy Lea" wrote in message
...
Having problems with formating dates correctly in Excel when opened from a
CSV file. The data coming in is in the US format "MM/DD/YYYY HH:MM AM/PM".
IE: "6/17/1985 12:00:00 AM".

When the CSV file is opened in Excel you are unable to change the
formatting
to set it to Australian date format "DD/MM/YYYY HH:MM AM/PM"; the data
stays
the same as "6/17/1985 12:00:00 AM".

When the MM and DD digits are 12 and less it recognises them as valid
dates.
IE "11/1/1995 12:00:00 AM" is automatically formated as "11/01/1995 0:00".
However this is only happening because both MM and DD are equal to or less
than 12.

My question is how do I import the data into Excel telling it that the
format of the data coming in is "MM/DD/YYYY HH:MM AM/PM" and I want it
formatted as "DD/MM/YYYY HH:MM AM/PM"? Unfortunately when we receive the
data
from the database it includes the time in the date field, we have no
control
over this.





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
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 4th 05 10:50 AM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 3rd 05 03:40 PM
Date Format Question Josh O. Excel Discussion (Misc queries) 1 February 10th 05 09:45 PM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
format question when open csv file Jeff Excel Discussion (Misc queries) 1 December 1st 04 06:53 PM


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