-
gregoryr35 posted an update 3 years ago
How to remove headers in Excel when opening a TXT file directly in Excel
Importing data from a text file into Excel is a useful and commonly used feature for data analysis and management. However, it can be frustrating when the imported data includes unnecessary headers or footers that can cause confusion and disrupt the data analysis process. This article will guide you through the steps on remove header in excel when importing data into Excel from a TXT file.
Excel supports two methods of importing data from a text file: opening a TXT file directly in Excel or importing data as an external data range. In both methods, the data can be saved in different file formats, such as delimited text files (.txt) or comma-separated values (.csv) files. The most common delimiter is the TAB character, ASCII character codes 000-9, which usually separates the text fields in a delimited text file. On the other hand, comma-separated values files contain commas that separate the text fields.
How to remove headers in Excel when opening a TXT file directly in Excel
When opening a text file in Excel, the header row is automatically selected as the first row of the imported data. If the header row is unnecessary or needs to be removed, follow these steps to remove the header row:
Step 1: Open the text file in Excel
To open the text file in Excel, open a new Excel workbook, and click on the “Data” tab. Then, select “From Text/CSV” from the “Get & Transform Data” group.
Step 2: Select the text file to import
In the “From Text/CSV” dialog box, locate and select the text file to import. Then, click on the “Import” button.
Step 3: Select the file format
In the “Text Import Wizard – Step 1 of 3” dialog box, select the appropriate file format, such as “Delimited” or “Fixed width,” depending on how the text fields are separated in the text file.
Step 4: Select the header row
In the “Text Import Wizard – Step 2 of 3” dialog box, select the checkbox next to “My data has headers” to remove the header row. Then, click on the “Finish” button.
Step 5: Save the imported data
In the “Import Data” dialog box, select the location where you want to save the imported data, such as a new worksheet or an existing worksheet. Then, click on the “OK” button to complete the import process.
How to remove headers in Excel when importing data as an external data range
Another method of importing data into Excel is by using the “External Data” feature. This feature allows you to create a connection to an external data source, such as a text file, and import data as a table or pivot table. To remove headers when importing data as an external data range, follow these steps:


日本語
EN
日本語