Excel is not opening csv file without .csv extension properly - excel

The columns in a csv file are grouped together into column A if
the file has a different extension other than .csv
I have to use Data > Text To Columns and change the delimiter from '\t' to ','
to format the contents properly.
Can I tell Excel say to treat .ext as a .csv file?

In these cases, I've usually removed the extension from the file altogether. In Excel 2007, if I take a file filename.ext and change that to filename before opening it, it forces Excel's Text Import Wizard to open:
Other than that, I don't know of an Excel setting to map file extensions to specific behaviors.

Have you tried clicking on the all files dropdown menu when you navigate to the file?

Related

Excel 2013 converts text to dates in csv comma separated file

I am editing a csv comma separated file in Excel 2013.
When I enter 6/60 in a column, Excel turns it to jun-60 and I don't want that.
I've tried:
Choosing "Text" in "Cell format" options. I save the changes and close the program. When I open back the file I have: jun-60
Pasting only values. I save the changes and close the program. When I open back the file I have: jun-60
Entering '6/60. I save the changes and close the program. When I open back the file I have: jun-60
Entering "=""6/60""". I save the changes and close the program. When I open back the file I have: "=""6/60"""
I also had combined all the options. But it is not working.
Any ideas?
Please remember I am editing a csv comma separated file in Excel 2013 not a xlsx format.
Thanks!
How about this:
Use your own option 1. Do not re-open the file from the File menu, but import it as data (Data-tab, From Text). On the last page of the wizzard, choose 'Text' for the Column data format. That should work.

Automatically convert csv file into Excel table?

I generate some csv files using a script. Next I manually convert those csv files into excel tables using the import wizard in excel based on:
https://www.youtube.com/watch?v=z5Pxil4jVO4
Is it possible to do this automatically - e.g. by calling an excel importer from command line - so I don't need to open excel and do all the manual work?
I can open the csv file directly in Excel but its not formatted as a table. E.g. this csv file:
a,b,c
a,b,c
results in this Excel sheet:
I would like each letter to be in a separate column.
I have looked at this:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/370ee470-f2cd-4f30-a167-b106dd51d47a/powershell-convert-csv-to-xlsx?forum=winserverpowershell
but its an awful lot of boiler plate code from create a simple table.
Add an extra line to your CSV file to tell Excel what the seperator is. Add the following line to the top of your CSV file:
sep=,
The easiest way, without close and edit your file - you can choose which separator you want in Excel 2010-2016 go to DATA, Text To Columns, choose Delimited, then choose your separator Comma (or other) and you will see changes immediately in the "Data preview", then click FInish.
Once you have the format you wanted, you simply save the document and it will be permanent.

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 xlsx file saving as CSV file - Korean and Japanese cracking badly

I am trying to make a CSV file from an Excel file. It has English, Korean and Japanese inputs. Right now it's saved as file.xlsx.
But when I try to save-as CSV through Excel as file.csv, all the Korean and Japanese inputs turn into question marks (???????)
I tried importing into Google Spreadsheets and exporting out as csv from there (from reading some other solutions) but it still turns into question marks.
I tried building a CSV file from scratch and just copying/pasting values from the Excel file into the CSV, but after I save it as CSV, the characters always crack.
Does anybody know how to work-around this? Thank you
I don't know that there IS an answer for this. CSV has no encoding, so it gets lost when you save in that format.
I tried, as a test, saving Chinese characters as a Unicode Text file, and believe it or not, that worked. So you may be able to do that, and simply change the filename to CSV. Assuming for some reason you NEED the filename to be CSV.
EDIT: I just ran addional testing on this. I was able to reimport the TXT file with either TXT or CSV extension, and the characters stayed just fine. So I think Unicode text is your answer.
Simply opening a CSV file in Excel only works when default assumptions hold. You may be writing the CSV correctly but not validating it properly.
It is more reliable to open a blank worksheet and then use Data Import. The encoding of the CSV file is one of the parameters you can specify.
To fully retain the characters while saving it on a CSV format and to somehow be able to import/re-use the data in the future.
You can follow these steps.
In Microsoft Excel, open the *.xlsx file.
Select Menu | Save As.
Enter any name for your file.
Under "Save as type," select Unicode Text.
Click Save.
Open your saved file in Microsoft Notepad.
Replace all tab characters with commas (",").
Select a tab character (select and copy the space between two column headers)
Open the "Find and Replace" window (Press Ctrl+H) and replace all tab characters with comma .
Click Save As.
Name the file, and change the Encoding: to UTF-8.
Change the file extension from .txt to .csv.
Click Save.
Open the .csv file in Excel to view your data.
Had the same issue. the below article shows the workaround in details:
https://help.salesforce.com/articleView?id=000003837&type=1
However, i decided to go with LibreOffice Calc, as it requires less steps to achieve the desired outcome. While exporting, you get to select charecter set, field delimiter and text decimeter.
For all other tasks, i prefer Excel.
Download and install Unicode CSV Addin for excel.
Save the csv from the new "Unicode CSV" menu as shown in picture
below.

Resources