Saving a .csv in Excel converts to a .tsv - excel

I have a simple test csv file:
If I open this file in Excel, delete column 2 and click the save icon, close and reopen the file, it converts it to a tab delimited, rather than comma delimited file. I've reproduced this on two machines.

Open the file in Notepad and see what it uses, if it's the tab then you need to change the regional settings on the computer:
Change the separator in all .csv text files:
1) In Microsoft Windows, click the Start button, and then click Control Panel.
2) Open the dialog box for changing Regional and Language settings.
3) Type a new separator in the List separator box.
4) Click OK twice.

Related

Convert csv to xlsx using cmd

I'm working in a solution that creates a .csv file in a server and download it to the user machine.
I would like to download it as a .xlsx file.
I have access to the server using SQLPlus (where I can use command lines if necessary) and I know the server does not have Excel installed.
Is that a way to convert the .csv file?
Thanks
If you want the .csv to be an .xlsx, then open blank Excel document.
Note: I am using Excel 2013.
Make sure you have clicked in top left cell, A1, and that it is
blank.
Click "DATA" tab at the top.
Click "From Text" option.
It will open up browsing option.
Find the .csv file you want to open/"convert".
Click import.
Once it is open, you can pick to have it Delimited by tabs, spaces, or commas.
Click next.
Pick the delimiters you need it separated by, so that it will fill out the columns.
Click finish.
It will ask where to put, and it you selected A1 in the steps above it will default there and just click okay.
Now save the file as an .xlsx file and you are done.

opening excel or text file - options for comma delimited not showing up

I am trying to open a .dat file in excel or sigma plot. First, the file kept downloading as a PDF automatically. Then I changed the file extension to excel and also tried txt. When I try to open it from right clicking, choosing open with and then choosing excel, it doesn't give me the option to open the file as comma delimited. The data is all squished into one column with the commas still there.
How to I get my windows computer to allow me to open the file with commas delimiting so I can separate the data into cells?
Open up an instance of Excel first, then open the file from there. This should give you the dialogue to open with comma delimiting. Be sure to select "All Files" when opening the file so that .txt files are visible.

EXCEL and csv files: can Excel open a .$$$ file as a .csv file without using the Text import wizard?

I have lines of data in a text file that I want to open in Excel.
Each line represents different columns which are separated by a comma.
If my file's extension is CSV, the file association is showing the Excel icon on the file and Excel opens the file immediately, sorting rows and columns just fine.
If my file's extension is not CSV, say .ABC, then I need to use Excel the following way: File->Open then I need to use the Text Import Wizard and specify that the delimiter is a comma.
Is there a way to set up my computer (a register to edit?) so it forces Excel to open my .ABC file as a CSV file?
If you are on windows you can change the program that Windows uses to open all files of the same type. In your case .ABC.
1) Right-click the file you want to change and then click Choose default program.
Click the program you want to use to open the file. In this case EXCEL.
If you want all files of that type to open in the same software program, select the Always use the selected program to open this kind of file check box, and then click OK.
If you want only that file to open in the software program this one time, clear the Always use the selected program to open this kind of file check box, and then click OK.
I hope it helps.

Excel saving CSV with tabs

I have a colleague using Excel 2007 on XP, and every time she saves her workbook as a .csv file, she is getting tabs for delimiters. Any idea what is happening, and how we can get commas instead?
choose ms-dos csv as the file type!
http://mavericksquest.blogspot.com/2011/06/excel-to-custom-character-delimited.html
if your default delimeter changed you can set it back there (in windows: Control Panel > Regional and Language Settings > Customize > Set List Separator field to ,)
now you can save as csv through excel (saveas > other formats > csv)

how to make opening txt file in Excel work like if you right-click in Windows Explorer and Open With Excel?

My application interfaces with Excel using tab-delimited Unicode text files. I require that some cells have multiple lines (alt-enter in Excel, produces LF character (10)).
If I right-click on the txt file in Explorer and Open With..Excel, it opens correctly. However, if I open Excel, and from within Excel either open the txt file by browsing to it, or open it through the Most Recently Used list, it treats the LF as a CR and creates a new row starting at that point.
How can I get Excel to open the file correctly from within Excel (i.e., open the file the same way as if I had right-clicked on it in Explorer and selected Open With..Excel)?
Edit: Chris Persichetti provided a lot of good information on a related question here.
I think that you should try this: on the ribbon, click the Data tab, then in the "Get External Data" section, click "From Text". this allows you to customize how excel opens the text file.

Resources