How to Edit CSV File in Excel: 3 Simple Ways

Method 1 – Employ File Tab to Edit CSV File in Excel

Step-01: Open CSV File in Excel

Open the CSV file in Excel.

  • Go to the File tab.

Employ File Tab to Edit CSV File in Excel

  • Select Open.
  • Select Browse.

Open CSV File in Excel to Edit

  • Open dialog box will appear.
  • Select the file type as Text Files.
  • Select the CSV file.
  • Select Open.

Open Dialog Box to Edit CSV File in Excel

  • Text Import Wizard – Step 1 of 3 will appear.
  • Select Delimited.
  • Click on the drop-down option for File origin.
  • Select 65001:Unicode (UTF-8).

Text Import Wizard - Step 1 of 3 to Edit CSV File in Excel

  • Select Next.

  • The Text Import Wizard – Step 2 of 3 will appear.
  • Select Comma as Delimiters.
  • Select Next.

Text Import Wizard - Step 2 of 3 will appear to Edit CSV File in Excel

  • The Text Import Wizard – Step 3 of 3 will appear.
  • Select the Column data format you want. Here, I selected General.
  • Select Finish.

  • You will see that you have opened the CSV file in Excel.

 


Step-02: Format CSV File in Excel

  • Right-click on column A.
  • Select Insert.

Format CSV File in Excel to Edit

  • You will see that you have inserted a new column before the table.

Adding New Column to Edit CSV File in Excel

  • Add 3 rows before the table.
  • Select the cell range B2:E2.
  • Go to the Home tab.
  • Select Merge & Center.

Adding New Rows to Edit CSV File in Excel

  • Write the heading you want to give to this dataset in the merged cell.

  • Change the alignment of the Excel sheet.
  • Select the whole sheet by clicking on the marked portion in the following picture.
  • Go to the Home tab.
  • Select the alignment you want. We selected Middle Align.

Changing Alignment to Edit CSV File in Excel

  • Change the alignment of the data I got from the CSV file.
  • Select cell range B4:E10.
  • Go to the Home tab.
  • Select Center.

  • Change the cell style for the heading.
  • Select the cell.
  • Go to the Home tab.
  • Select Cell Styles.

Changing Cell Styles to Edit CSV File in Excel

  • A drop-down menu will appear.
  • Select Heading 2 from the drop-down menu.

  • You will see the cell style of the heading has changed.

  • Change the Font Size of the heading.
  • Select the cell where the heading is.
  • Go to the Home tab.
  • Click on the Drop-down menu for Font Size.
  • Select the Font Size you want. We selected 16.

Changing Font to Edit CSV File in Excel

  • Change the Fill Color of the heading.
  • Select the merged cell.
  • Go to the Home tab.
  • Click on the drop-down option for Fill Color.
  • Select the color you want.

Changing Fill Color to Edit CSV File in Excel

  • Change the Font Color.
  • Select the cell where you want to change the font color.
  • Go to the Home tab.
  • Click on the drop-down option for Font Color.
  • Select the color you want.

Changing Font Color to Edit CSV File in Excel

  • In the following picture, you can see the final look at my heading.

  • Change the formatting of the other cells as you want in the same way.

  • Select cell range B4:E10.
  • Go to the Home tab.
  • Click on the drop-down menu for Borders.

Adding Borders to Edit CSV File in Excel

  • Select All Borders.

  • See borders are added to your dataset.

  • Select the whole Excel worksheet by clicking the marked portion in the following picture.
  • Go to the View tab.
  • Uncheck the Gridlines.

Removing Gridlines to Edit CSV File in Excel

  • In the following picture, you can see how my file looks after formatting.


Step-03: Save CSV File in Excel

  • In the beginning, go to the File tab.

Save CSV File in Excel

  • Select Save as.

  • Click on the drop-down option.
  • Select CSV (Comma delimited).

  • Select Save and your file will be saved as CSV.


Method 2 – Use From Text/CSV Feature in Excel

Step-01: Import CSV File in Excel

  • Go to the Data tab.
  • Select From Text/CSV.

Use From Text/CSV Feature in Excel to Edit CSV File

  • The Import Data dialog box will appear.
  • Select the CSV file.
  • Select Import.

Import CSV File in Excel to Edit

  • Another dialog box will appear.
  • Select 65001:Unicode (UTF-8) as File Origin.
  • Select Comma as Delimiter.

  • Click on the drop-down option for Load.
  • Select Load To.

  • The Import Data dialog box will appear.
  • Select Existing worksheet.
  • Select the location where you want to import the data.
  • Select OK.

Import Data Dialog Box to Edit CSV File in Excel

  • See that you have imported the CSV file in Excel.


Step-02: Add More Data to CSV File in Excel

  • Format the table by following the procedure from Step-02 of method-1.

Add More Data to CSV File in Excel to Edit

  • Select the first cell after the table.
  • Write a student’s Name in that cell.

Adding New Name to Edit CSV File in Excel

  • Press Enter and you will see a new row is added to the table.

  • Enter the obtained marks for that student.

  • We added data for two more students, and this is how my final table looks.
  • You can Save the file as CSV by following the procedure from Step-03 of method-1.


Method 3 – Edit CSV File in Excel Using Legacy Wizards Feature

Step-01: Add Legacy Wizards in Excel

  • Go to the File tab.

Edit CSV File in Excel Using Legacy Wizards Feature

  • Select Option.

Selecting Option to Edit CSV File in Excel

  • The Excel Options dialog box will appear.
  • Select the Data tab.
  • Check the FromText (Legacy) option.
  • Select OK and Legacy Wizards will be added to Excel.

Excel Options Dialog Box to Edit CSV File in Excel


Step-02: Insert CSV File in Excel Worksheet

  • Go to the Data tab.
  • Select Get Data.
  • Select Legacy Wizards.
  • Select From Text (Legacy).

Insert CSV File in Excel Worksheet to Edit

  • The Import Text File dialog box will appear.
  • Select the CSV file you want to edit.
  • Select Import.

  • The Text Import Wizard – Step 1 of 3 will appear.
  • Select Delimited.
  • Select 65001:Unicode (UTF-8) as File origin.
  • Select Next.

  • The Text Import Wizard – Step 2 of 3 will appear.
  • Select Comma as Delimiters.
  • Select Next.

  • The Text Import Wizard – Step 3 of 3 will appear.
  • Select the Column data format you want. We selected General.
  • Select Finish.

  • The Import Data dialog box will appear.
  • Select Existing Worksheet.
  • Select the location where you want the data.
  • Select OK.

  • You will see that the data from the CSV file is imported to your Excel sheet.


Step-03: Edit CSV File in Excel

  • Format the table by following the procedure from Step-01 of method-1.

Editing CSV File in Excel

  • Create a new column for calculating Total.

Creating New Column to Calculate Total to Edit CSV File in Excel

  • Select the cell where you want to calculate the Total. Here, I selected cell F5.
  • In cell F5 write the following formula.
=SUM(C5:E5)

Using SUM Function to Edit CSV File in Excel

  • Press Enter to get the result.

In the SUM function, I selected cell range C5:E5 as numbers. The formula will return the summation of the cell range C5:E5.
  • Drag the Fill Handle down to copy the formula to the other cells.

  • You can see that I have copied the formula to the other cells and got my desired results.
  • Save the file as CSV by following the procedure from Step-03 of method-1.


How to View CSV File in Excel

We’ll show how you can view CSV file in Excel. It contains both commas and semicolons and shows the State in one column and Sales Person in another column. How to View CSV File in Excel

Steps:

  • Go to the Data tab.
  • Select Get Data.
  • Select Legacy Wizards.
  • Select From Text (Legacy).

  • The Import Text File dialog box will appear.
  • Select the CSV file you want to edit.
  • Select Import.

  • The Text Import Wizard – Step 1 of 3 will appear.
  • Select Delimited.
  • Select 65001:Unicode (UTF-8) as File origin.
  • Select Next.

  • The Text Import Wizard – Step 2 of 3 will appear.
  • Select Semicolon as Delimiters.
  • Select Next.

  • The Text Import Wizard – Step 3 of 3 will appear.
  • Select the Column data format you want. Here, I selected Text.
  • Select Finish.

  • The Import Data dialog box will appear.
  • Select Existing Worksheet.
  • Select the location where you want the data.
  • Select OK.

  • You will be able to view the CSV file in Excel.

  • See that I have formatted the data to give them a clear look. But it is optional.


Download Practice Workbook

You can download the practice workbook from here.


Related Articles


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

Get FREE Advanced Excel Exercises with Solutions!
Mashhura Jahan
Mashhura Jahan

Mashhura Jahan, BSc in Industrial and Production Engineering from Bangladesh University of Engineering and Technology, invested 1.5 years at ExcelDemy. In roles like Excel & VBA Content Developer, Excel Charts, and Dashboard course trainer, she wrote 90+ articles. She was previously part of the forum support team and a junior software analyst on the Excel Add-in project. With interests spanning Excel, VBA, Power Query, Python, Data Science, and Software Development, Mashhura brings a diverse skill set to her... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo