Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
terri
 
Posts: n/a
Default parsing data - formatting issue

In the original data file (text file - csv format) one of the fields has date
data and it looks like this: Jan-06. When I select "text to columns" and
parse the data, the format of this field changes and looks like this: 6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original form but
when I save the file and then go back into it, it shows up as 6-Jan again.
How do I keep the formatting from changing when I parse the data? Thanks.
Any help is appreciated.
--
Terri
  #2   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default parsing data - formatting issue

Try:

Format Cells... Number Custom and use mmm-yy
--
Gary's Student


"terri" wrote:

In the original data file (text file - csv format) one of the fields has date
data and it looks like this: Jan-06. When I select "text to columns" and
parse the data, the format of this field changes and looks like this: 6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original form but
when I save the file and then go back into it, it shows up as 6-Jan again.
How do I keep the formatting from changing when I parse the data? Thanks.
Any help is appreciated.
--
Terri

  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default parsing data - formatting issue

When you do the TextToColumns, format that column as TEXT instead of general.

Vaya con Dios,
Chuck, CABGx3



"terri" wrote:

In the original data file (text file - csv format) one of the fields has date
data and it looks like this: Jan-06. When I select "text to columns" and
parse the data, the format of this field changes and looks like this: 6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original form but
when I save the file and then go back into it, it shows up as 6-Jan again.
How do I keep the formatting from changing when I parse the data? Thanks.
Any help is appreciated.
--
Terri

  #4   Report Post  
Posted to microsoft.public.excel.misc
Doug Kanter
 
Posts: n/a
Default parsing data - formatting issue


"terri" wrote in message
...
In the original data file (text file - csv format) one of the fields has
date
data and it looks like this: Jan-06. When I select "text to columns"
and
parse the data, the format of this field changes and looks like this:
6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original form
but
when I save the file and then go back into it, it shows up as 6-Jan again.
How do I keep the formatting from changing when I parse the data? Thanks.
Any help is appreciated.
--
Terri


Format the cells in the Excel sheet *before* they receive the text data.
Then, copy & paste the data into those cells.


  #5   Report Post  
Posted to microsoft.public.excel.misc
terri
 
Posts: n/a
Default parsing data - formatting issue

I did try that before and it works if I save the file as an excel file. I
was trying to keep the document as a text file (csv format) before I load
into Access to keep from having to do that extra step. I should have
mentioned that in the question. Thanks anyway. It seems like we will just
have to take the extra step. Thanks.
--
Terri


"Gary''s Student" wrote:

Try:

Format Cells... Number Custom and use mmm-yy
--
Gary's Student


"terri" wrote:

In the original data file (text file - csv format) one of the fields has date
data and it looks like this: Jan-06. When I select "text to columns" and
parse the data, the format of this field changes and looks like this: 6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original form but
when I save the file and then go back into it, it shows up as 6-Jan again.
How do I keep the formatting from changing when I parse the data? Thanks.
Any help is appreciated.
--
Terri



  #6   Report Post  
Posted to microsoft.public.excel.misc
terri
 
Posts: n/a
Default parsing data - formatting issue

Thanks. I did what you advised but now I am having problems opening up the
saved csv file. I guess my computer has decided not to work any more today.
I will try opening it up on Monday and see if the formatting remained the
same.
--
Terri


"CLR" wrote:

When you do the TextToColumns, format that column as TEXT instead of general.

Vaya con Dios,
Chuck, CABGx3



"terri" wrote:

In the original data file (text file - csv format) one of the fields has date
data and it looks like this: Jan-06. When I select "text to columns" and
parse the data, the format of this field changes and looks like this: 6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original form but
when I save the file and then go back into it, it shows up as 6-Jan again.
How do I keep the formatting from changing when I parse the data? Thanks.
Any help is appreciated.
--
Terri

  #7   Report Post  
Posted to microsoft.public.excel.misc
Doug Kanter
 
Posts: n/a
Default parsing data - formatting issue

If you're doing a lot of work with text files, go to www.download.com and
get yourself a copy of the free version of Notetab. Not "notepad", but
Notetab. Handles huge text files nicely. Great for when you want to inspect
them before Excel has fiddled with them.

"terri" wrote in message
...
Thanks. I did what you advised but now I am having problems opening up
the
saved csv file. I guess my computer has decided not to work any more
today.
I will try opening it up on Monday and see if the formatting remained the
same.
--
Terri


"CLR" wrote:

When you do the TextToColumns, format that column as TEXT instead of
general.

Vaya con Dios,
Chuck, CABGx3



"terri" wrote:

In the original data file (text file - csv format) one of the fields
has date
data and it looks like this: Jan-06. When I select "text to columns"
and
parse the data, the format of this field changes and looks like this:
6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original
form but
when I save the file and then go back into it, it shows up as 6-Jan
again.
How do I keep the formatting from changing when I parse the data?
Thanks.
Any help is appreciated.
--
Terri



  #8   Report Post  
Posted to microsoft.public.excel.misc
Doug Kanter
 
Posts: n/a
Default parsing data - formatting issue

By way of information, if you make certain kinds of formatting changes to a
csv file, and then close it, Excel will usually tell you that certain styles
can't be saved in a csv file. That's your hint, and the reason why you have
to have the Excel file as an intermediate step. Out of curiosity, though,
why are you sending the file through Excel before putting the data in
Access?

"terri" wrote in message
...
I did try that before and it works if I save the file as an excel file. I
was trying to keep the document as a text file (csv format) before I load
into Access to keep from having to do that extra step. I should have
mentioned that in the question. Thanks anyway. It seems like we will
just
have to take the extra step. Thanks.
--
Terri


"Gary''s Student" wrote:

Try:

Format Cells... Number Custom and use mmm-yy
--
Gary's Student


"terri" wrote:

In the original data file (text file - csv format) one of the fields
has date
data and it looks like this: Jan-06. When I select "text to columns"
and
parse the data, the format of this field changes and looks like this:
6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original
form but
when I save the file and then go back into it, it shows up as 6-Jan
again.
How do I keep the formatting from changing when I parse the data?
Thanks.
Any help is appreciated.
--
Terri



  #9   Report Post  
Posted to microsoft.public.excel.misc
terri
 
Posts: n/a
Default parsing data - formatting issue

My concern is that our data may be too big for excel so I need to keep it in
a text file to load into Access. Any other words of wisdom? Thanks.
--
Terri


"Doug Kanter" wrote:


"terri" wrote in message
...
In the original data file (text file - csv format) one of the fields has
date
data and it looks like this: Jan-06. When I select "text to columns"
and
parse the data, the format of this field changes and looks like this:
6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original form
but
when I save the file and then go back into it, it shows up as 6-Jan again.
How do I keep the formatting from changing when I parse the data? Thanks.
Any help is appreciated.
--
Terri


Format the cells in the Excel sheet *before* they receive the text data.
Then, copy & paste the data into those cells.



  #10   Report Post  
Posted to microsoft.public.excel.misc
Doug Kanter
 
Posts: n/a
Default parsing data - formatting issue

Excel has a limit of 65536 rows. Opening your text file in an text editor
and hitting CTRL-END will tell you how many lines you have. Again, my
question: Why are you opening the text file in Excel if its final
destination is Access?

"terri" wrote in message
...
My concern is that our data may be too big for excel so I need to keep it
in
a text file to load into Access. Any other words of wisdom? Thanks.
--
Terri


"Doug Kanter" wrote:


"terri" wrote in message
...
In the original data file (text file - csv format) one of the fields
has
date
data and it looks like this: Jan-06. When I select "text to columns"
and
parse the data, the format of this field changes and looks like this:
6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original
form
but
when I save the file and then go back into it, it shows up as 6-Jan
again.
How do I keep the formatting from changing when I parse the data?
Thanks.
Any help is appreciated.
--
Terri


Format the cells in the Excel sheet *before* they receive the text data.
Then, copy & paste the data into those cells.







  #11   Report Post  
Posted to microsoft.public.excel.misc
terri
 
Posts: n/a
Default parsing data - formatting issue

I just started here last week so I am trying to figure out what is where. It
sounds like I need to talk to the folks that actually download the csv file.
They are the ones saving it as a csv file in excel. It sounds like you are
saying it will make things easier if the csv file is downloaded from its
source into Access, correct? I am not even sure where the file comes from
but I will find out. You pointed out a good question. I may be coming back
with some more questions once I find out where the data begins. Thanks.

--
Terri


"Doug Kanter" wrote:

Excel has a limit of 65536 rows. Opening your text file in an text editor
and hitting CTRL-END will tell you how many lines you have. Again, my
question: Why are you opening the text file in Excel if its final
destination is Access?

"terri" wrote in message
...
My concern is that our data may be too big for excel so I need to keep it
in
a text file to load into Access. Any other words of wisdom? Thanks.
--
Terri


"Doug Kanter" wrote:


"terri" wrote in message
...
In the original data file (text file - csv format) one of the fields
has
date
data and it looks like this: Jan-06. When I select "text to columns"
and
parse the data, the format of this field changes and looks like this:
6-Jan.
I need to import this data into access and this date field is causing
problems. I tried manually changing the format back to its original
form
but
when I save the file and then go back into it, it shows up as 6-Jan
again.
How do I keep the formatting from changing when I parse the data?
Thanks.
Any help is appreciated.
--
Terri

Format the cells in the Excel sheet *before* they receive the text data.
Then, copy & paste the data into those cells.






  #12   Report Post  
Posted to microsoft.public.excel.misc
Doug Kanter
 
Posts: n/a
Default parsing data - formatting issue

I'll leave this discussion "watched", so I don't miss anything you add
later. Or, feel free to email me with questions.

Meanwhile, two things to remember:

1) Almost any program that imports text may mess things up a bit. They're
trying to help by guessing how different types of data should look. So, it
makes no sense to pass the data through TWO programs, both of which may
force their "opinion" on the results. This is why I suggest going directly
to Access, skipping Excel.

2) Any time you're dealing with a text file from a new source, you should
inspect it with a text editor, which will NOT make any changes to the data.
This allows you to see the text in its pure form, so you can compare it to
the results in Access, and it alerts you to potential problems which you
need to deal with.

There's a nice, free text editor called Notetab (not to be confused with
Notepad, which comes with Windows, but won't open very large files).
Definitely worth getting:
http://www.download.com/NoteTab-Ligh...ml?tag=lst-0-1

-Doug

"terri" wrote in message
...
I just started here last week so I am trying to figure out what is where.
It
sounds like I need to talk to the folks that actually download the csv
file.
They are the ones saving it as a csv file in excel. It sounds like you
are
saying it will make things easier if the csv file is downloaded from its
source into Access, correct? I am not even sure where the file comes from
but I will find out. You pointed out a good question. I may be coming
back
with some more questions once I find out where the data begins. Thanks.

--
Terri


"Doug Kanter" wrote:

Excel has a limit of 65536 rows. Opening your text file in an text editor
and hitting CTRL-END will tell you how many lines you have. Again, my
question: Why are you opening the text file in Excel if its final
destination is Access?

"terri" wrote in message
...
My concern is that our data may be too big for excel so I need to keep
it
in
a text file to load into Access. Any other words of wisdom? Thanks.
--
Terri


"Doug Kanter" wrote:


"terri" wrote in message
...
In the original data file (text file - csv format) one of the fields
has
date
data and it looks like this: Jan-06. When I select "text to
columns"
and
parse the data, the format of this field changes and looks like
this:
6-Jan.
I need to import this data into access and this date field is
causing
problems. I tried manually changing the format back to its original
form
but
when I save the file and then go back into it, it shows up as 6-Jan
again.
How do I keep the formatting from changing when I parse the data?
Thanks.
Any help is appreciated.
--
Terri

Format the cells in the Excel sheet *before* they receive the text
data.
Then, copy & paste the data into those cells.








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
From several workbooks onto one excel worksheet steve Excel Discussion (Misc queries) 6 December 1st 05 08:03 AM
Conditional Formatting not applied to data exported from Access Mark A Excel Worksheet Functions 5 October 24th 05 12:11 PM
Conditional formatting in a data table TimR Excel Discussion (Misc queries) 0 October 5th 05 07:28 PM
Excel changing number formatting and source data in graphs on it's own!!! JohnHamer Excel Discussion (Misc queries) 2 September 22nd 05 02:29 PM
Number formatting issue Gayle Excel Worksheet Functions 2 August 8th 05 08:51 PM


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