Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Saving text with commas in a .csv file then converting to a .txt f

I need to get an Excel sheet (Office 2007) into a text format that is comma
seperated with quotations around the cells that contain text.

I can save the sheet as a .csv file which handles the commas, but when I
change the file extension to a .txt type I end up getting quotations around
the existing quotes. For example "test" in the .csv file appears as
"""test""" when I open it in the .txt file.

Any ideas?

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 515
Default Saving text with commas in a .csv file then converting to a .txt f

It is my experience that, when you open a renamed csv file, on the first
screen, it will show """ around text. However, with your text identifier set
to ", when you click on finish, it will open correctly, eg """text""" becomes
"text".

--
Hth

Kassie Kasselman
Change xxx to hotmail


"Craig" wrote:

I need to get an Excel sheet (Office 2007) into a text format that is comma
seperated with quotations around the cells that contain text.

I can save the sheet as a .csv file which handles the commas, but when I
change the file extension to a .txt type I end up getting quotations around
the existing quotes. For example "test" in the .csv file appears as
"""test""" when I open it in the .txt file.

Any ideas?

Thanks in advance!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Saving text with commas in a .csv file then converting to a .t

That doesn't seem to be the case here. Text only shows up as text with no
quotes and any text that has quotes appears with triple qoutes. I'm not sure
what you mean by "when you click on finish".

Any other thoughts?

Thanks!

Craig


"kassie" wrote:

It is my experience that, when you open a renamed csv file, on the first
screen, it will show """ around text. However, with your text identifier set
to ", when you click on finish, it will open correctly, eg """text""" becomes
"text".

--
Hth

Kassie Kasselman
Change xxx to hotmail


"Craig" wrote:

I need to get an Excel sheet (Office 2007) into a text format that is comma
seperated with quotations around the cells that contain text.

I can save the sheet as a .csv file which handles the commas, but when I
change the file extension to a .txt type I end up getting quotations around
the existing quotes. For example "test" in the .csv file appears as
"""test""" when I open it in the .txt file.

Any ideas?

Thanks in advance!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 515
Default Saving text with commas in a .csv file then converting to a .t

You obviously have to insert qyoutes before and after text, before you save
the file as a .csv. What I then also normally do, is to rename the file to a
..txt. On opening it, you then get the file import wizard, where you select
comma (iso Tab) as the delimiter, and also set your text identifier as ",
before clicking on finish. Since " is the default text identifier, I notice
that the additional quotes dissappear as soon as you set the comma as
delimiter. When I save a file as .CSV, and re-open it, it opens exactly as
saved, no extra quotes.
--
Hth

Kassie Kasselman
Change xxx to hotmail


"Craig" wrote:

That doesn't seem to be the case here. Text only shows up as text with no
quotes and any text that has quotes appears with triple qoutes. I'm not sure
what you mean by "when you click on finish".

Any other thoughts?

Thanks!

Craig


"kassie" wrote:

It is my experience that, when you open a renamed csv file, on the first
screen, it will show """ around text. However, with your text identifier set
to ", when you click on finish, it will open correctly, eg """text""" becomes
"text".

--
Hth

Kassie Kasselman
Change xxx to hotmail


"Craig" wrote:

I need to get an Excel sheet (Office 2007) into a text format that is comma
seperated with quotations around the cells that contain text.

I can save the sheet as a .csv file which handles the commas, but when I
change the file extension to a .txt type I end up getting quotations around
the existing quotes. For example "test" in the .csv file appears as
"""test""" when I open it in the .txt file.

Any ideas?

Thanks in advance!

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
Converting Excel file to text delimited file Kiran Veeramallu[_2_] Excel Discussion (Misc queries) 3 May 1st 07 07:04 PM
Excel should warn about commas when saving .csv files. hydroEng Excel Discussion (Misc queries) 1 August 15th 06 11:10 PM
Text file saving, setting file origin mauddib Excel Discussion (Misc queries) 0 May 25th 06 02:50 PM
saving an excel file as text without text in quotes John Excel Discussion (Misc queries) 2 December 6th 05 06:20 PM
When converting an .xls file to .csv I get too many commas at the. One-eyed-Ian Excel Discussion (Misc queries) 3 December 7th 04 12:03 AM


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