Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi!
When saving an Excel worksheet as tab-delimited text, cells containing double-quote (") or comma (,) are surrounded by double-quotes in the resulting text file. I would like to be able to induce or control the quoting of cell values in tab-delimited text output. Specifically, I would like the content of cells containing space ( ) to be quoted in the text output. Is this possible? Thanks, Brynturk |
#2
![]() |
|||
|
|||
![]()
You will probably have to a macro to export the file according to your specs.
Seach Google for examples. On Wed, 22 Jun 2005 17:15:01 -0700, "Brynturk" wrote: Hi! When saving an Excel worksheet as tab-delimited text, cells containing double-quote (") or comma (,) are surrounded by double-quotes in the resulting text file. I would like to be able to induce or control the quoting of cell values in tab-delimited text output. Specifically, I would like the content of cells containing space ( ) to be quoted in the text output. Is this possible? Thanks, Brynturk |
#3
![]() |
|||
|
|||
![]()
Brynturk,
Instead of Save as, try creating your text file with the Text Write Program at www.smokeylake.com/excel. You'll have to decide what bracketing characters (text qualifiers) you need, if any, and specify. If no tab characters will ever be in your data, you won't need them. It depends entirely on the expectations of the program that will be reading the file. But the Text Write Program won't put those characters around a field containing commas if the field delimiter is a tab character, as Excel is now doing for you. There's a treatise on text files there that may be helpful too. As for cells containing a space having quotation marks put around them, that'd probably best be done before the file is created. Probably best done with a mirror sheet with formulas that refer to the original sheet (cell by cell) that add the quote marks as needed. If the data is on Sheet1, the formula in A1 might look like: =IF(NOT(ISERROR(SEARCH(" ",Sheet1!A1))),"""" & Sheet1!A1 & """", Sheet1!A1) Again, I'd recommend carefully looking at the requirements of the program that will read the file before investing time in getting the file written. -- Earl Kiosterud www.smokeylake.com/ ------------------------------------------- "Brynturk" wrote in message ... Hi! When saving an Excel worksheet as tab-delimited text, cells containing double-quote (") or comma (,) are surrounded by double-quotes in the resulting text file. I would like to be able to induce or control the quoting of cell values in tab-delimited text output. Specifically, I would like the content of cells containing space ( ) to be quoted in the text output. Is this possible? Thanks, Brynturk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need shortcut in Excel for coping text only and not the entire c | Excel Discussion (Misc queries) | |||
How to save an excel spreadsheet as a text file without added quot | Excel Discussion (Misc queries) | |||
REMOVE SPECIAL CHARACTERS FROM TEXT CELLS | Excel Worksheet Functions | |||
Where is text to speech in excel 2003? | Excel Discussion (Misc queries) | |||
I want Excel to allow cells with formulas and unrelated text | Excel Discussion (Misc queries) |