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.
Related
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.
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.
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.
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.
My application needs to pass data back and forth via text files with Excel. My text files will have Unicode text, and will also need to have some way of indicating mulitple lines within a cell (which I believe is the LF character (ascii 10)).
Excel can read my csv file correctly. However, when I save the csv file in Excel, it replaces the Unicode characters with ?'s. So although it still looks fine in Excel, if I close Excel and re-open the file with Excel, I see ?'s instead of my Unicode characters.
If instead of Excel saving as csv, I save as Unicode text, that produces a tab-delimited file that does have the Unicode characters. However, if I close the file and re-open it with Excel, it takes me through an import wizard that does not recognize the LF character (produced by alt-enter) to indicate a new line within a cell. Instead, it treats the LF as a new row.
How can I get Excel to save in a text format that supports both Unicode and multiple lines within a cell?
To get around this problem do not open the .txt file from Excel. Instead right click on the file in file explorer and choose open with Excel.
If you save the .txt file with .xls extension you can double click on the file in file explorer to open in Excel.
To Open From Excel
Click File/Open...
Select the .txt file to open.
Hold down the Shift key when clicking on the Open button.