| Thread Closed |
Problem saving Excel as text file |
Share Thread | Thread Tools |
| Feb14-06, 06:54 PM | #1 |
|
Mentor
Blog Entries: 1
|
Problem saving Excel as text file
I'm trying to save an Excel spreadsheet as a (tab-delimited) text file for input into another database. For some reason, fields containing a comma are being displayed in the text file within quotes, which I don't want. For example:
John Doe appears as: John DoeWhat I want to see is: John Doe appearing as: John DoeIs there any clever way of saving the Excel file so I don't have those quotes? |
| Feb14-06, 07:22 PM | #2 |
|
|
I believe the quotes will go away if the cell categories (types) are not Text. Select the cells, then choose Format->Cells.
Can you change the cell type from Text to some other value? Like General or Custom? - Warren |
| Feb15-06, 08:10 AM | #3 |
|
Mentor
Blog Entries: 1
|
I've tried all sorts of cell formats, but the double quotes still appear for entries that contain a comma. So that didn't work.
(It's almost like the program is trying to prevent a comma-separated value error. But I'm saving as tab-separated text. Strange!) |
| Feb15-06, 09:48 AM | #4 |
|
Recognitions:
|
Problem saving Excel as text fileWhat I personally find obnoxious is that it doesn't quote the other stuff. If it did all or none, it would be a whole lot easier to deal with. |
| Feb15-06, 10:08 AM | #5 |
|
Mentor
Blog Entries: 1
|
|
| Feb15-06, 12:27 PM | #6 |
|
Recognitions:
|
|
| Feb15-06, 01:15 PM | #7 |
|
|
Which database system are you moving it into? I usually work with SQL Server and Access so I can just easily import data directly from Excel. I used to have to move around a lot of data, and even if my final format needed to be a delimited text file, I often pulled the data into a database system first, creating a table, and then did the export to text file from there. It gave me a chance to check and clean the data, and also better control of the export process.
|
| Feb16-06, 07:37 AM | #8 |
|
Mentor
Blog Entries: 1
|
The Excel data is being moved into a SQL Server table. That's its final destination, for use by another program. (Is there an easy way to move the data directly into SQL Server?)
|
| Feb16-06, 11:35 AM | #9 |
|
|
Yes, it's super easy. You can use DTS (Data Transformation Services) in Enterprise Manager. Have you tried out the DTS import wizard?
Here's how you can quickly move an Excel spreadsheet into a new table. In Enterprise Manager, select your database, and then right click and you should see an option for All Tasks and then Import Data. That will bring up the Wizard. Hit next and then make sure you choose Excel for your data source. Then browse to the file you want to import. Then you hit next and you'll see all the destination info, probably won't need to change anything here, just double check that the target database is correct. Hit next and you'll see an option to just simply copy everything over or you can construct a SQL Query for the transfer.Then hit next and you should get a choice for which worksheets to import. After you have chosen a worksheet, you can edit the name in the path in that destination column to be whatever name you want the new table to have. Hit Next, choose "run immediately" and hit next, check everything over and hit finish.. babdaboom-badabing! You should get a message that it was successful. Refresh Enterprise Manager and you should see your table. |
| Feb16-06, 01:42 PM | #10 |
|
|
What version are you using? My Danish 2002 sp3 have no problem exporting as a tab-delimited text file, where Doe, John appears without quotes as needed.
|
| Thread Closed |
| Thread Tools | |
Similar Threads for: Problem saving Excel as text file
|
||||
| Thread | Forum | Replies | ||
| Matlab file saving. | Math & Science Software | 3 | ||
| HTML -- posting from a form to a text file | Programming & Comp Sci | 17 | ||
| password for excel file | Computing & Technology | 7 | ||
| BitTorrent file saving problem | Programming & Comp Sci | 3 | ||
| excel file won't open under java script tree menu | Computing & Technology | 0 | ||