ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving spreadsheets as delimited text files (https://www.excelbanter.com/excel-programming/295726-saving-spreadsheets-delimited-text-files.html)

rwebster3[_2_]

Saving spreadsheets as delimited text files
 
I have a need to save data from some spreadsheets as a pipe (|) delimited file. I've been able to import data that way, but have yet to figure out a way (short of writing each cell individually) into this format. Anyone know of a way to preserve the | delimiter after reading in the file?

Mark_K[_2_]

Saving spreadsheets as delimited text files
 
Some suggestions.

1. In Excel, save the file as "Comma Delimited (*.csv)", then open i
in Notepad, replace all comma characters with pipe characters, and the
save the file as "Text Documents (*.txt)".

2. After editing in Excel, insert a new column A and add a formula t
concatenate each cell from column B onwards, with a pipe character i
between, e.g. =B1&"|"&C1&"|"&D1. Copy this formula for all cells i
column A, then convert these formulas to values before deleting column
B onwards. Save the file as "Text (Tab delimited) (*.txt)". The pip
delimiter will remain.

3. Write a macro to do either of the above

--
Message posted from http://www.ExcelForum.com


Dave Peterson[_3_]

Saving spreadsheets as delimited text files
 
Try changing your windows settings.

In win98:
windows start button|settings|control panel|regional settings applet|
Number tab

At the bottom is a list separator. Change it to the pipe.

Remember that this is a windows property and may affect other programs.



rwebster3 wrote:

I have a need to save data from some spreadsheets as a pipe (|) delimited file. I've been able to import data that way, but have yet to figure out a way (short of writing each cell individually) into this format. Anyone know of a way to preserve the | delimiter after reading in the file?


--

Dave Peterson



All times are GMT +1. The time now is 02:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com