How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (2024)

In this article, we’ll show you 4 handy approaches to importing CSV data into Excel.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (1)

The above image shows the process of importing CSV data into Excel through the Text Import Wizard.

What Is CSV Data?

CSV stands for “Comma-Separated Values”. It is a type of text file commonly used for storing and exchanging data between different software programs, as this format is simple, lightweight, and easy to read and write. Although the name of the format is “comma-separated values”, you can separate the data by other delimiters such as tabs, semicolons, or other punctuation. CSV files can be opened with Notepad and other Text editors along with Excel..

Importing CSV Data into Excel

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (2)

In the above image, CSV data has been opened in an Excel worksheet. The data contains information on some employees stored in individual lines, with the data on each line separated by commas.

Method 1 – Open a CSV file in Excel

The easiest way to import CSV data into Excel is by opening it in Excel.

STEPS:

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (3)

  • Go to the File tab.
  • Click Open > Browse.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (4)

A dialog box will pop out.

  • Select Text Files > Employee Info (your desired CSV file) > Open.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (5)

The CSV data will appear in a new Excel workbook.

NOTES:

  • The data will appear in the default Excel data format settings.
  • The CSV file will remain in the original .csv format even after opening it in Excel. It won’t get changed to .xlsx or .xls.
  • The limit for the files is 1,048,576 rows and 16,384 columns.
  • You can also double-click the desired CSV file in Windows Explorer to open it in Excel. In this case, Microsoft Excel needs to be set as the default application for CSV files. Otherwise, you must choose Excel as another app for opening the file via the Context Menu.

Read More: Difference Between CSV and Excel Files

Method 2 – Use Excel Power Query Editor

STEPS:

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (6)

  • To import CSV files as an external data connection, go to Data > From Text/CSV.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (7)

  • In the Import Data dialog box that opens, browse to the desired CSV file location, select the file, and press Import.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (8)

  • We can simply press Load if we don’t want to change anything. However, click Transform Data to make some changes here.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (9)

The Power Query Editor will appear.

  • In the Home tab, click Split Column > By Delimiter.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (10)

A new dialog box will pop out.

  • Select Comma as the delimiter from the dropdown list.
  • Select Each occurrence of the delimiter.
  • Press OK.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (11)

  • Select Use First Row as Headers.
  • Click Close & Load.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (12)

The imported CSV data is imported as in the above image.

NOTES:

  • The imported CSV data in Excel is linked to the original CSV file. So refresh the Excel worksheet to update values after making any changes in the original file.
  • You can permanently disconnect the link by converting the table into a normal range. To do that, right-click on any cell in the table and the Context Menu will appear. Choose Table > Convert to Range.

Read More: How to Convert CSV to XLSX

Method 3 – Use the Text Import Wizard

STEPS:

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (13)

  • Go to Data > Get Data > Legacy Wizards > From Text (Legacy).

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (14)

The Import Text File dialog box appears.

  • Select the desired CSV file.
  • Press Import.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (15)

The Text Import Wizard dialog box will pop out.

  • Choose Delimited.
  • Check the My data has headers box.
  • Press Next.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (16)

  • Click the Comma as the delimiter.
  • Press Next.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (17)

  • Select General data format.
  • Click Finish.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (18)

Another dialog box appears.

  • Choose the location where you want to place the imported data.
  • Click OK.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (19)

The imported data appears.

NOTES:

  • If don’t see the Legacy Wizards in the Get Data drop-down, go to Excel Options through the File tab > select Options. There, select Data and enable From Text (Legacy).
  • The limit for importing is 1,048,576 rows and 16,384 columns.
  • Select Treat consecutive delimiters as one in step 2 of the Text Import Wizard to avoid getting empty cells when consecutive delimiters are present in the data.

Read More: Convert CSV to Excel Automatically

Method 4 – Use Excel VBA

STEPS:

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (20)

  • Go to Developer > Visual Basic.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (21)

  • In the pop-out VBA window that opens, select Insert > Module.

The Module box will appear.

  • Copy and paste the following code in the box, then click Run:
Sub ImportingCSVFile()Dim wkSheet As Worksheet, rfFile As StringSet wkSheet = ActiveWorkbook.Sheets("VBA")rfFile = Application.GetOpenFilename("Text Files (*.csv),*.csv", , "Provide Text or CSV File:")With wkSheet.QueryTables.Add(Connection:="TEXT;" & rfFile, Destination:=wkSheet.Range("B2")).TextFileParseType = xlDelimited.TextFileCommaDelimiter = True.RefreshEnd WithEnd Sub

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (22)

Another dialog box appears.

  • Choose the desired CSV file and click Open.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (23)

The CSV data is imported into Excel.

Read More: How to Convert CSV to Excel with Columns

How to Save CSV Files in Excel

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (24)

STEPS:

  • Go to the File tab and click Save As.

On the right side, you’ll find different file options in the drop-down list.

  • Choose CSV UTF-8 or just CSV (Comma delimited) and Save it.

How to Open CSV Files in Excel

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (25)

STEPS:

  • Go to the File tab.
  • Click Open > Browse.
  • In the pop-out Open dialog box choose the CSV files to open.
  • Press Open.

Read More: How to Open Notepad or Text File in Excel with Columns

How to Import Data into Excel from Another Excel File

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (26)

STEPS:

  • Go to the Data tab > Get Data > From File > From Excel Workbook.

How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (27)

The Import Data dialog box will appear.

  • Choose the desired Excel file and press Import.

The Excel file data appears in the active workbook.

Read More: How to Convert CSV to XLSX without Opening

Download Practice Workbook

Import CSV Data.xlsm

Employee Info.csv

Import CSV to Excel: Knowledge Hub

  • Open CSV File in Excel
  • View CSV File in Excel
  • Read CSV File in Excel
  • Keep Leading Zeros in Excel CSV Programmatically
  • Convert CSV to XLSX Command Line
  • Compare 2 CSV Files in Excel
  • Import Text File to Excel Automatically
  • Import CSV into Existing Sheet in Excel
  • Stop Excel from Auto Formatting Dates in CSV
  • Convert CSV to Excel

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

Get FREE Advanced Excel Exercises with Solutions!
How to Import CSV Data into Excel (4 Handy Approaches) - ExcelDemy (2024)

References

Top Articles
Knox County Detention Facility, TN Inmate Search: Roster & Mugshots
There Are *So* Many 4th of July Clothing Sales Worth Celebrating This Year
Www.mytotalrewards/Rtx
Dairy Queen Lobby Hours
Jazmen Jafar Linkedin
Research Tome Neltharus
Math Playground Protractor
Mohawkind Docagent
Ribbit Woodbine
Citi Card Thomas Rhett Presale
Grand Park Baseball Tournaments
Jessica Renee Johnson Update 2023
Shariraye Update
Goldsboro Daily News Obituaries
Nonne's Italian Restaurant And Sports Bar Port Orange Photos
Busty Bruce Lee
Rhinotimes
How to find cash from balance sheet?
7543460065
State HOF Adds 25 More Players
Troy Bilt Mower Carburetor Diagram
Hennens Chattanooga Dress Code
Saritaprivate
Closest Bj Near Me
Nearest Walgreens Or Cvs Near Me
Jeffers Funeral Home Obituaries Greeneville Tennessee
Talkstreamlive
Zillow Group Stock Price | ZG Stock Quote, News, and History | Markets Insider
Mandy Rose - WWE News, Rumors, & Updates
Carroway Funeral Home Obituaries Lufkin
Tinyzonehd
Pronóstico del tiempo de 10 días para San Josecito, Provincia de San José, Costa Rica - The Weather Channel | weather.com
Bend Missed Connections
San Jac Email Log In
Superhot Free Online Game Unblocked
Alternatieven - Acteamo - WebCatalog
Ghid depunere declarație unică
Appraisalport Com Dashboard /# Orders
Selfservice Bright Lending
John F Slater Funeral Home Brentwood
Colorado Parks And Wildlife Reissue List
Tds Wifi Outage
2008 DODGE RAM diesel for sale - Gladstone, OR - craigslist
Weather Underground Cedar Rapids
5A Division 1 Playoff Bracket
Movie Hax
Contico Tuff Box Replacement Locks
A jovem que batizou lei após ser sequestrada por 'amigo virtual'
Abigail Cordova Murder
Acellus Grading Scale
211475039
Latest Posts
Article information

Author: Edwin Metz

Last Updated:

Views: 6163

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Edwin Metz

Birthday: 1997-04-16

Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

Phone: +639107620957

Job: Corporate Banking Technician

Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.