How to Import a Text File into Excel (5 Methods)

In conclusion, importing text files into Excel streamlines processes, saves time, and allows you to leverage Excel’s capabilities for efficient data manipulation and analysis.

Dataset Overview

Let’s consider the Age and Gender Distribution of Tenants dataset for a specific apartment. This dataset includes information such as Name, Age, and Gender of tenants, organized under columns B, C, and D.

dataset on text file

We have the dataset in (.txt) format, which we’ve opened in the Notepad application. Additionally, we’ve displayed the same dataset opened in Excel, allowing us to observe the differences in visualization and formatting.

age and gender distribution of tenants in Excel sheet

Note: This example uses a basic dataset for simplicity. In practical scenarios, you may encounter larger and more complex datasets.

Method 1 – Import Text File into Excel with Columns

clicking on From Text or CSV option

opening desired text file

clicking on Load To option

putting data on existing worksheet

data imported from text file to excel with columns

Method 2 – Utilize the File Tab to Import a Text File into Excel

moving to File tab

Browse option to search file from other locations in pc

opening Age and Gender of Distribution of Tenants text file

step 1 of text import wizard

step 2 of text import wizard

step 3 of text import wizard

utilizing file tab to import text file to Excel

Method 3 – Use Text to Columns Wizard

using Text to Columns wizard to import text file to Excel

step 1 of Convert Text to Columns Wizard in Excel

step 2 of Convert Text to Columns Wizard in Excel

step 3 of Convert Text to Columns Wizard in Excel

warning dialog box of replacing data

The imported data will now be split into columns.

using Text to Columns Wizard to import text file to Excel

Method 4 – Use the Copy and Paste Feature for Simplicity

using copy and paste feature for simplicity

Considerations: