Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jiwolf
 
Posts: n/a
Default importing csv files, problem with date formats

I have a problem with how excel treats dates that are imported as a csv
file.

For some reason, excel occasionally transposes dates from dd/mm format to
mm/dd format.

I know that the problem isn't with the format of the cells but I think it is
the way that the exporting program recognises dates.

It may be that the problem is due to the fact that week numbers less than 12
could be interpreted as a month or a week. ( the problem does not occur on
dates that fall in week 13 or greater).

Does any one know of an easy way of solving the problem or converting the
dates ?


any help greatly appreciated


Pete




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary L Brown
 
Posts: n/a
Default importing csv files, problem with date formats

Understood.
After the program exports, using Windows Explorer, go to where the file was
exproted to, highlight it, hit F2 to edit the name and change the extension
to .txt from .csv.
HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was this
Post Helpfull to you?''.


"jiwolf" wrote:

I appreciate the prompt reply, but the problem is that the program that
generates the data only exports as a csv




"Gary L Brown" wrote in message
...
Change the file extension of the file from .csv to .txt. This will make
the
Import Wizard come up when you import the file. You can then format the
data
any way you wish.
HTH,
--
Gary Brown

If this post was helpful, please click the ''Yes'' button next to ''Was
this
Post Helpfull to you?''.


"jiwolf" wrote:

I have a problem with how excel treats dates that are imported as a csv
file.

For some reason, excel occasionally transposes dates from dd/mm format to
mm/dd format.

I know that the problem isn't with the format of the cells but I think it
is
the way that the exporting program recognises dates.

It may be that the problem is due to the fact that week numbers less than
12
could be interpreted as a month or a week. ( the problem does not occur
on
dates that fall in week 13 or greater).

Does any one know of an easy way of solving the problem or converting the
dates ?


any help greatly appreciated


Pete








  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Morefeus Direct
 
Posts: n/a
Default importing csv files, problem with date formats



"jiwolf" wrote:

I have a problem with how excel treats dates that are imported as a csv
file.

For some reason, excel occasionally transposes dates from dd/mm format to
mm/dd format.

I know that the problem isn't with the format of the cells but I think it is
the way that the exporting program recognises dates.

It may be that the problem is due to the fact that week numbers less than 12
could be interpreted as a month or a week. ( the problem does not occur on
dates that fall in week 13 or greater).

Does any one know of an easy way of solving the problem or converting the
dates ?


any help greatly appreciated


Pete







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
wjohnson
 
Posts: n/a
Default importing csv files, problem with date formats


1. Select your spreadsheet - then select Format CELLS - TEXT.
2. In EXCEL the CSV file you want to import into Excel.
Then on STEP 3 of the import menu - select all of the columns indicate
import as TEXT. Then you can format the date the way you want.
You might just try importing the file and format your date field only
in Step 3 of the Import Menu Program, (i.e. you might not have to
change the cells to "TEXT" prior to importing).


--
wjohnson
------------------------------------------------------------------------
wjohnson's Profile: http://www.excelforum.com/member.php...o&userid=29640
View this thread: http://www.excelforum.com/showthread...hreadid=500334

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
Date stamp formula results? Tricky problem? mjp Excel Discussion (Misc queries) 0 November 18th 05 04:11 PM
Problem opening excel files from email DXC001 Excel Discussion (Misc queries) 1 October 3rd 05 07:56 PM
date format problem Nigel Excel Discussion (Misc queries) 7 May 11th 05 12:57 PM
importing multiple text files??? tashayu Excel Discussion (Misc queries) 0 December 19th 04 02:43 PM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 06:01 PM


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