Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Opening CSV file in column A?

I have a .csv file where a few records are 'split' across multiple columns, I
presume because they have a comma (or similar) in them. All other records
remain in the A column.

That is annoying because Isubsequently need to manipulate all records in the
same way (using 'Text to Columns'and other manipulations). It is thus
essential that *all* records *stay* in the A column, i.e. that no 'Text to
column' type functionality engages immediately upon opening the csv file.

Is there a way to ensure this does not happen, i.e. that all records stay in
column A?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Opening CSV file in column A?

Rename the file from .csv to .txt.
Open it from within Excel as a delimited file, but unselect comma or any
other potential delimiter.
--
David Biddulph

"Henrik" wrote in message
...
I have a .csv file where a few records are 'split' across multiple columns,
I
presume because they have a comma (or similar) in them. All other records
remain in the A column.

That is annoying because Isubsequently need to manipulate all records in
the
same way (using 'Text to Columns'and other manipulations). It is thus
essential that *all* records *stay* in the A column, i.e. that no 'Text to
column' type functionality engages immediately upon opening the csv file.

Is there a way to ensure this does not happen, i.e. that all records stay
in
column A?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Opening CSV file in column A?

Thanks, David, that works. It is of course a bit of a workaround -- is there
really no way to do this straight from a .txt file?

"David Biddulph" wrote:

Rename the file from .csv to .txt.
Open it from within Excel as a delimited file, but unselect comma or any
other potential delimiter.
--
David Biddulph

"Henrik" wrote in message
...
I have a .csv file where a few records are 'split' across multiple columns,
I
presume because they have a comma (or similar) in them. All other records
remain in the A column.

That is annoying because Isubsequently need to manipulate all records in
the
same way (using 'Text to Columns'and other manipulations). It is thus
essential that *all* records *stay* in the A column, i.e. that no 'Text to
column' type functionality engages immediately upon opening the csv file.

Is there a way to ensure this does not happen, i.e. that all records stay
in
column A?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Opening CSV file in column A?

If you do File|Open and select the .txt file (you wrote .txt in your response),
you can shift-click on the Open button and excel will put it all in column A.

Henrik wrote:

Thanks, David, that works. It is of course a bit of a workaround -- is there
really no way to do this straight from a .txt file?

"David Biddulph" wrote:

Rename the file from .csv to .txt.
Open it from within Excel as a delimited file, but unselect comma or any
other potential delimiter.
--
David Biddulph

"Henrik" wrote in message
...
I have a .csv file where a few records are 'split' across multiple columns,
I
presume because they have a comma (or similar) in them. All other records
remain in the A column.

That is annoying because Isubsequently need to manipulate all records in
the
same way (using 'Text to Columns'and other manipulations). It is thus
essential that *all* records *stay* in the A column, i.e. that no 'Text to
column' type functionality engages immediately upon opening the csv file.

Is there a way to ensure this does not happen, i.e. that all records stay
in
column A?

Thanks





--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Opening CSV file in column A?

Henrik

Change the extension from .csv to .txt

Open that and the Text to Columns Wizard opens.

Choose to keep all data in column A.


Gord Dibben MS Excel MVP

On Thu, 15 Mar 2007 13:33:20 -0700, Henrik
wrote:

I have a .csv file where a few records are 'split' across multiple columns, I
presume because they have a comma (or similar) in them. All other records
remain in the A column.

That is annoying because Isubsequently need to manipulate all records in the
same way (using 'Text to Columns'and other manipulations). It is thus
essential that *all* records *stay* in the A column, i.e. that no 'Text to
column' type functionality engages immediately upon opening the csv file.

Is there a way to ensure this does not happen, i.e. that all records stay in
column A?

Thanks




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Opening CSV file in column A?

The whole point of .csv files is so that text files can be easily imported into
excel in different columns.

If you really, really want to break this behavior, you could try this:

Look at the .csv file in notepad. Make a note of the field separator character.

Then make sure that windows regional settings doesn't use that character as the
list separator.

windows start button|settings|control panel|regional and language options
On the Regional Options tab
click the Customize button
On the numbers tab, check the list separator box.

But this sounds like a pretty strange requirement to me. In fact, I wouldn't
want you to mess with that setting on my pc.

It would screw up lots of things--including the way I enter a formula:

=if(a1=1,2,3)
would have to use that list separator that you chose.





Henrik wrote:

I have a .csv file where a few records are 'split' across multiple columns, I
presume because they have a comma (or similar) in them. All other records
remain in the A column.

That is annoying because Isubsequently need to manipulate all records in the
same way (using 'Text to Columns'and other manipulations). It is thus
essential that *all* records *stay* in the A column, i.e. that no 'Text to
column' type functionality engages immediately upon opening the csv file.

Is there a way to ensure this does not happen, i.e. that all records stay in
column A?

Thanks


--

Dave Peterson
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
File:1 and File:2 -- Double Files when Opening One File dallin Excel Discussion (Misc queries) 1 January 25th 07 02:53 AM
opening an excel file opens a duplicate file of the same file skm Excel Discussion (Misc queries) 1 December 7th 05 05:52 PM
"Unable to read file" error message when opening a Excel file that contains a PivotTable report. Tim Marsden Charts and Charting in Excel 2 October 15th 05 02:10 PM
How to use the exact format in a csv file when opening a csv file tong Excel Discussion (Misc queries) 1 October 13th 05 05:41 AM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 4th 05 10:50 AM


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