![]() |
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?
|
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 |
All times are GMT +1. The time now is 02:13 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com