Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vpuckett
 
Posts: n/a
Default How do I change the date format when importing a txt file?

My import data imports as yyyy/mm/dd even when I tell it to import m/d/y.
When I try to format the column using format cells, custom, mm/dd/yyyy, I get
###########. I tried to change width of column as was suggested in help, but
that does not work. I know I have done this before, but it escapes me now.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default How do I change the date format when importing a txt file?

Just import as pure raw text and then use:

=DATE(LEFT(A1,4)*1,MID(A1,6,2)*1,RIGHT(A1,2)*1)

this will convert 2005/12/25
into 12/25/2005 as a real usable date

--
Gary's Student


"vpuckett" wrote:

My import data imports as yyyy/mm/dd even when I tell it to import m/d/y.
When I try to format the column using format cells, custom, mm/dd/yyyy, I get
###########. I tried to change width of column as was suggested in help, but
that does not work. I know I have done this before, but it escapes me now.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default How do I change the date format when importing a txt file?

The whole point when using the text to columns is to import as the format it
comes in and excel will convert it according to your regional settings so if
you get text files with dates like YMD then use YMD in the text to columns
wizard (step 3)and it should be OK


--

Regards,

Peo Sjoblom


"vpuckett" wrote in message
...
My import data imports as yyyy/mm/dd even when I tell it to import m/d/y.
When I try to format the column using format cells, custom, mm/dd/yyyy, I

get
###########. I tried to change width of column as was suggested in help,

but
that does not work. I know I have done this before, but it escapes me

now.


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
MS Query Date Format scos00 Excel Discussion (Misc queries) 0 October 21st 05 04:58 PM
Why Does Date Format Change on Chart John Taylor Excel Discussion (Misc queries) 0 September 11th 05 08:16 AM
DATE Format Venkat Excel Worksheet Functions 1 August 16th 05 12:23 AM
How do I change the default date format in an Excel Footer Burki Setting up and Configuration of Excel 1 February 4th 05 02:15 AM
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 06:05 AM.

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"