Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Text to Columns not working correctly with dates in Excel 2007

I'm using Excel 2007 and when I convert a CSV file using "Text to Column"
menu command when the day is greater than 12 it does not convert the date
correctly. As can be seen in my example below hours 10:00 PM and 11:00 PM are
handled correctly for January 12 but hours 00:00, 01:00, and 02:00 for
January 13 are not. The "Text to Column" menu command works OK on this CSV
file in Excel 2003.

Any help is appreciated.

Format:
dd/mmm/yyyy h:mm AM/PM

CSV Text to Column
------------------------------- ---------------------------------------------

Date_Time,Value Date_Time Value
01/12/2003 22:00:00,689.2, 01/Dec/2003 10:00 PM 689.2
01/12/2003 23:00:00,626.4, 01/Dec/2003 11:00 PM 626.4
01/13/2003 00:00:00,558.8, 01/13/2003 00:00:00 558.8
01/13/2003 01:00:00,530.8, 01/13/2003 01:00:00 530.8
01/13/2003 02:00:00,512.8, 01/13/2003 02:00:00 512.8

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default Text to Columns not working correctly with dates in Excel 2007

Your format says day month year thus a number above 12 will screw things up.
I think you have your days and months mixed up format wise.

"AL123" wrote:

I'm using Excel 2007 and when I convert a CSV file using "Text to Column"
menu command when the day is greater than 12 it does not convert the date
correctly. As can be seen in my example below hours 10:00 PM and 11:00 PM are
handled correctly for January 12 but hours 00:00, 01:00, and 02:00 for
January 13 are not. The "Text to Column" menu command works OK on this CSV
file in Excel 2003.

Any help is appreciated.

Format:
dd/mmm/yyyy h:mm AM/PM

CSV Text to Column
------------------------------- ---------------------------------------------

Date_Time,Value Date_Time Value
01/12/2003 22:00:00,689.2, 01/Dec/2003 10:00 PM 689.2
01/12/2003 23:00:00,626.4, 01/Dec/2003 11:00 PM 626.4
01/13/2003 00:00:00,558.8, 01/13/2003 00:00:00 558.8
01/13/2003 01:00:00,530.8, 01/13/2003 01:00:00 530.8
01/13/2003 02:00:00,512.8, 01/13/2003 02:00:00 512.8

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Text to Columns not working correctly with dates in Excel 2007

No I don't think so for the following reasons.
- In Step 3 of 3 in the "Convert Text to Column" wizard in the customer data
format box I have the Date selector field set to "DMY", and
- It works OK in Excel 2003

Any other thoughts?

"tim m" wrote:

Your format says day month year thus a number above 12 will screw things up.
I think you have your days and months mixed up format wise.

"AL123" wrote:

I'm using Excel 2007 and when I convert a CSV file using "Text to Column"
menu command when the day is greater than 12 it does not convert the date
correctly. As can be seen in my example below hours 10:00 PM and 11:00 PM are
handled correctly for January 12 but hours 00:00, 01:00, and 02:00 for
January 13 are not. The "Text to Column" menu command works OK on this CSV
file in Excel 2003.

Any help is appreciated.

Format:
dd/mmm/yyyy h:mm AM/PM

CSV Text to Column
------------------------------- ---------------------------------------------

Date_Time,Value Date_Time Value
01/12/2003 22:00:00,689.2, 01/Dec/2003 10:00 PM 689.2
01/12/2003 23:00:00,626.4, 01/Dec/2003 11:00 PM 626.4
01/13/2003 00:00:00,558.8, 01/13/2003 00:00:00 558.8
01/13/2003 01:00:00,530.8, 01/13/2003 01:00:00 530.8
01/13/2003 02:00:00,512.8, 01/13/2003 02:00:00 512.8

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Text to Columns not working correctly with dates in Excel 2007

Why not set to MDY instead of DMY?
--
David Biddulph

"AL123" wrote in message
...
No I don't think so for the following reasons.
- In Step 3 of 3 in the "Convert Text to Column" wizard in the customer
data
format box I have the Date selector field set to "DMY", and
- It works OK in Excel 2003

Any other thoughts?

"tim m" wrote:

Your format says day month year thus a number above 12 will screw things
up.
I think you have your days and months mixed up format wise.

"AL123" wrote:

I'm using Excel 2007 and when I convert a CSV file using "Text to
Column"
menu command when the day is greater than 12 it does not convert the
date
correctly. As can be seen in my example below hours 10:00 PM and 11:00
PM are
handled correctly for January 12 but hours 00:00, 01:00, and 02:00 for
January 13 are not. The "Text to Column" menu command works OK on this
CSV
file in Excel 2003.

Any help is appreciated.

Format:
dd/mmm/yyyy h:mm AM/PM

CSV Text to Column
------------------------------- ---------------------------------------------

Date_Time,Value Date_Time Value
01/12/2003 22:00:00,689.2, 01/Dec/2003 10:00 PM 689.2
01/12/2003 23:00:00,626.4, 01/Dec/2003 11:00 PM 626.4
01/13/2003 00:00:00,558.8, 01/13/2003 00:00:00 558.8
01/13/2003 01:00:00,530.8, 01/13/2003 01:00:00 530.8
01/13/2003 02:00:00,512.8, 01/13/2003 02:00:00 512.8



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Text to Columns not working correctly with dates in Excel 2007

I found the problem. The PC which Excel 2003 work correctly on had it's
regional setting set to "English (United States)" while the PC which Excel
2007 didn't work correctly had it's regional setting set to "English
(Canada)". Once I set the regional setting to "English (United States)" it
worked OK. Thanks tim for your response as it pointed me in the right
direction.

"AL123" wrote:

No I don't think so for the following reasons.
- In Step 3 of 3 in the "Convert Text to Column" wizard in the customer data
format box I have the Date selector field set to "DMY", and
- It works OK in Excel 2003

Any other thoughts?

"tim m" wrote:

Your format says day month year thus a number above 12 will screw things up.
I think you have your days and months mixed up format wise.

"AL123" wrote:

I'm using Excel 2007 and when I convert a CSV file using "Text to Column"
menu command when the day is greater than 12 it does not convert the date
correctly. As can be seen in my example below hours 10:00 PM and 11:00 PM are
handled correctly for January 12 but hours 00:00, 01:00, and 02:00 for
January 13 are not. The "Text to Column" menu command works OK on this CSV
file in Excel 2003.

Any help is appreciated.

Format:
dd/mmm/yyyy h:mm AM/PM

CSV Text to Column
------------------------------- ---------------------------------------------

Date_Time,Value Date_Time Value
01/12/2003 22:00:00,689.2, 01/Dec/2003 10:00 PM 689.2
01/12/2003 23:00:00,626.4, 01/Dec/2003 11:00 PM 626.4
01/13/2003 00:00:00,558.8, 01/13/2003 00:00:00 558.8
01/13/2003 01:00:00,530.8, 01/13/2003 01:00:00 530.8
01/13/2003 02:00:00,512.8, 01/13/2003 02:00:00 512.8



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Text to Columns not working correctly with dates in Excel 2007

I just tried that and it didn't work. It seems I need to set my regional
setting to "English (United States)" and then it works OK. Changing the Date
selector field in Step 3 of the wizard to "DMY" or "MDY" doesn't seem to make
any difference (I wonder what it's good for).

"David Biddulph" wrote:

Why not set to MDY instead of DMY?
--
David Biddulph

"AL123" wrote in message
...
No I don't think so for the following reasons.
- In Step 3 of 3 in the "Convert Text to Column" wizard in the customer
data
format box I have the Date selector field set to "DMY", and
- It works OK in Excel 2003

Any other thoughts?

"tim m" wrote:

Your format says day month year thus a number above 12 will screw things
up.
I think you have your days and months mixed up format wise.

"AL123" wrote:

I'm using Excel 2007 and when I convert a CSV file using "Text to
Column"
menu command when the day is greater than 12 it does not convert the
date
correctly. As can be seen in my example below hours 10:00 PM and 11:00
PM are
handled correctly for January 12 but hours 00:00, 01:00, and 02:00 for
January 13 are not. The "Text to Column" menu command works OK on this
CSV
file in Excel 2003.

Any help is appreciated.

Format:
dd/mmm/yyyy h:mm AM/PM

CSV Text to Column
------------------------------- ---------------------------------------------

Date_Time,Value Date_Time Value
01/12/2003 22:00:00,689.2, 01/Dec/2003 10:00 PM 689.2
01/12/2003 23:00:00,626.4, 01/Dec/2003 11:00 PM 626.4
01/13/2003 00:00:00,558.8, 01/13/2003 00:00:00 558.8
01/13/2003 01:00:00,530.8, 01/13/2003 01:00:00 530.8
01/13/2003 02:00:00,512.8, 01/13/2003 02:00:00 512.8




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
Wrap Text is not working correctly on one persons computer bocikt Excel Discussion (Misc queries) 16 May 22nd 07 04:09 AM
excel vlookup not working correctly Steve Excel Worksheet Functions 3 October 29th 06 04:47 PM
Convert Text to Columns with Excel 2007 beta does not work well Martin Excel Worksheet Functions 0 June 7th 06 03:17 PM
Excel 2007 Beta 2 Error -- Text-to-Columns Wizard Data preview wha Bob from Yorktown Excel Discussion (Misc queries) 0 May 28th 06 03:49 PM
Excel 2003 Subtotals not working correctly Mike Sattan Excel Worksheet Functions 4 February 26th 06 07:28 AM


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