How to Convert CSV to Excel with Columns (5 Methods)

 

Method 1 – Applying Save As to Convert CSV Files to Excel with Columns

We have opened our sample CSV file in Notepad. The data in the file is separated into multiple columns. However, we can only see comma-separated values in Notepad.

Apply ‘Save As’ Option to Turn CSV Files into Excel

Steps:

  • Right-click on the file and go to Open with, then select Excel.

Apply ‘Save As’ Option to Turn CSV Files into Excel

  • The CSV file is now open in Microsoft Excel.
  • From the Excel Ribbon, click on the File tab.

Apply ‘Save As’ Option to Turn CSV Files into Excel

  • Go to File, then to Save As, and select Browse.

Apply ‘Save As’ Option to Turn CSV Files into Excel

  • The Save As dialog shows up. Go to the location where you want to save the file.
  • Provide a File Name and in the Save as type: box, choose Excel Workbook (*.xlsx).
  • Press Save.

  • The file is saved and can be formatted in Excel as needed.

Read More: Difference Between CSV and Excel Files


Method 2 – Using the Text to Column Tool to Convert CSV to Excel with Columns

Steps:

  • Open the CSV file with Excel.
  • Select the column (column A) that has comma-separated values.

Insert ‘Text to Column’ Option to Convert CSV to Excel with Columns

  • Go to Data and choose Text to Columns.

Insert ‘Text to Column’ Option to Convert CSV to Excel with Columns

  • The Convert Text to Columns Wizard appears. Click on Delimited and press Next.

Insert ‘Text to Column’ Option to Convert CSV to Excel with Columns

  • Check Comma and press Next again.

Insert ‘Text to Column’ Option to Convert CSV to Excel with Columns

  • Choose the Destination location and press Finish.

  • You will get the following output in Excel.

Insert ‘Text to Column’ Option to Convert CSV to Excel with Columns

  • Go to Save As and save the file in the .xlsx format (see Method 1).

Read More: How to Convert CSV to XLSX Command Line


Method 3 – Converting a CSV to Excel Using the Import From Text/CSV Feature

Steps:

  • Open Excel, go to Data, and select the From Text/CSV icon.

Convert CSV to Excel Files Using ‘From Text/CSV’ Feature

  • The Import Data dialog will appear. Select the CSV file that you want to import and press Import.

Convert CSV to Excel Files Using ‘From Text/CSV’ Feature

  • The CSV file is imported into Excel as below. Click on Load.

Convert CSV to Excel Files Using ‘From Text/CSV’ Feature

  • The data from the CSV file is loaded as an Excel table.

Convert CSV to Excel Files Using ‘From Text/CSV’ Feature

  • Click on the table and the Table Design tab appears in the ribbon.
  • Go to Table Design and select Convert to Range.

Convert CSV to Excel Files Using ‘From Text/CSV’ Feature

  • Excel will prompt you with a warning. Press OK.

Convert CSV to Excel Files Using ‘From Text/CSV’ Feature

  • You can clear the cell formatting by going to Home > Editing > Clear > Clear Formats.

Convert CSV to Excel Files Using ‘From Text/CSV’ Feature

  • Go to the File tab.

Convert CSV to Excel Files Using ‘From Text/CSV’ Feature

  • Click on Save.

  • When the Save As dialog comes up, name your file and press Save.

Note:

You can get to the From Text/CSV command by following the path: Data > Get Data > From File > From Text/CSV.

Read More: Convert CSV to Excel Automatically


Method 4 – Using the Legacy Wizard for the CSV-to-Excel Conversion

Steps:

  • Open a blank Excel file and go to the File tab.

CSV to Excel File Conversion with ‘Legacy Wizard’

  • Go to Options.

CSV to Excel File Conversion with ‘Legacy Wizard’

  • Go to Data options.
  • Check From Text (Legacy) and press OK.

CSV to Excel File Conversion with ‘Legacy Wizard’

  • Go to Data then to Get Data.
  • Select Legacy Wizard and pick From Text (Legacy).

CSV to Excel File Conversion with ‘Legacy Wizard’

  • The Import Text File dialog appears. Choose the CSV file and press Import.

CSV to Excel File Conversion with ‘Legacy Wizard’

  • The Text Import Wizard will pop up. Click on the Delimited, check My data has headers, and press Next.

CSV to Excel File Conversion with ‘Legacy Wizard’

  • Check Comma and press Next.

CSV to Excel File Conversion with ‘Legacy Wizard’

  • Press Finish.

CSV to Excel File Conversion with ‘Legacy Wizard’

  • The Import Data dialog shows up.
  • Choose the data destination location and press OK.

  • The CSV data is imported into Excel, separated into columns.

  • Go to Save, type a file name, and click Save (see Method 3).

Read More: How to Import Text File to Excel Automatically


Method 5 – Running VBA Macro to Transform a CSV to Excel with Columns

We have a CSV file in a specified location stated below. This will differ on your device.

Excel VBA to Transform CSV to Excel with Columns

Steps:

  • Open Excel and go to the Developer tab.
  • Select Visual Basic to bring up the VBA window.

Excel VBA to Transform CSV to Excel with Columns

  • Go to Insert and pick Module.

Excel VBA to Transform CSV to Excel with Columns

  • Insert the following code in the newly opened Module.
Sub Convert_CSV_to_EXCEL()

Dim w As Workbook
Set w = Workbooks.Open("C:\Users\User\OneDrive\Desktop\ExcelDemy\How to Convert CSV to Excel with Columns\CSV FIle.csv")
w.SaveAs Filename:="C:\Users\User\OneDrive\Desktop\ExcelDemy\How to Convert CSV to Excel with Columns\CSV FIle.xlsx", _
FileFormat:=xlWorkbookDefault, _
ReadOnlyRecommended:=False, CreateBackup:=False

End Sub
  • Save the file and run the code using the F5 key.

Excel VBA to Transform CSV to Excel with Columns

  • You will get a new Excel file.

  • The file is saved in the same folder as the original CSV.

You will need to manually change the file path in the code to match your source and destination locations.


Download the Practice Workbook


Related Articles


<< Go Back to How to Convert CSV to Excel | Import CSV to Excel | Importing Data in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Hosne Ara
Hosne Ara

Hosne Ara is a materials and metallurgical engineer who loves exploring Excel and VBA programming. To her, programming is like a time-saving superhero for dealing with data, files, and the internet. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. With a B. Sc. in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, she's shifted gears and now works as a content developer. In this role, she... Read Full Bio

2 Comments
  1. Great detailed doc. in newer excel u can import files and folders. u should do an article on folders of csv

    • Dear Map,

      Thanks for your appreciation and suggestion. Sooner we will write an article regarding this topic.

      Regards
      Shamima Sultana | Project Manager | ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo