To open a comma-delimited (CSV) file properly, use Excel’s Data Import from Text feature to open the import wizard and set all columns as text. Show If you click the file and allow Excel to open it automatically, the columns might be formatted improperly. To convert CSV file to Excel columns, actually, you can handle it through three different methods. In this article, I will talk about these two methods for you. Open CSV file in Excel Insert CSV file in Excel Open CSV file in ExcelThe most usually used method must be opening CSV file directly through Excel. 1. Click File > Open > Browse to select a CSV file from a folder, remember to choose All Files in the drop-down list next to File name box. See screenshot: 2. Click Open, and the CSV file has been opened in the Excel. Tip. If you have Kutools for Excel, you can apply its Insert File at Cursor utility to quickly insert a CSV file or text file or Excel file or PRN file to the cell which cursor places. Note: But sometimes, there are some data with special formats such as the leading zeros in the CSV file, these special formats may be lost if the CSV file is opening through Excel as below screenshot shown. In this case, you need to use below method. Insert CSV file in ExcelTo keep the format of the contents CSV file, you can use the From Text utility to import the CSV file. 1. Select a cell which you will insert the CSV file and click Data > From Text. See screenshot: 2. In the Import Text File dialog, select a file you need to import. See screenshot: 3. Click Import, and a dialog of Text Import Wizard opens, check Delimited option and click Next to go to step 2 of the Wizard, and then check Comma. See screenshot: 4. Click Next and select the column with special formats in the Data preview and check a format for it in Column data format section, then one by one to format the columns, also, you can skip the columns you do not need by checking the Do not Import column (skip) option. See screenshot: I have had problems with CSV text data that contains line breaks. For example, exported spread sheet to CSV with heading cells that had line breaks. Ideally there should be an export/import CSV type variant that decodes escape chars, so it understand escaped chars like \n; \r in a quoted string. I have not seen any easy way to do this in the old version of Excel I use and not expert on latest versions of excel. I usually have to run a custom macro to convert text columns for that kind of text data. Is this any better in latest versions of Excel? I have seen CSV exports that just put a line break in the middle of the text data item. This CSV data is difficult to import. Some CSV importers (not necessarily spreadsheet software) do not even respect quoted strings. I had not heard of "sep=x" in CSV what a shame there is no way to put a header line that indicates CSV column data types rather than having to use import wizard for every to you import a CSV file or letting Excel best guess the CSV column data - that is typical lack of meeting power user needs. Note: After you change the list separator character for your computer, all programs use the new character as a list separator. You can change the character back to the default character by following the same procedure.If you have a worksheet with data in columns that you want to rotate so it’s rearranged in rows, you can use the Transpose feature. It lets you rotate the data from columns to rows, or vice versa. For example, if your data looks like this, with sales regions listed along the top and quarters along the left side: You can rotate the columns and rows to show quarters along the top and regions along the side, like this: Here’s how:
Tips for transposing your data
|