Import and Export Text Files in Excel

Export | Import

This lesson will teach you how to import and export text files in Excel. A text file can be of two types- comma-separated (.csv) or tab-delimited (.txt).

Export from Excel

To export as a text file from Excel, follow the steps below.

1. Open a workbook in Excel.

2. Click File tab -> Save as ->Browse.

click browse

3. Select Text (Tab delimited) from the drop-down list of the Save As type box.

import text file

5. Click Save.

Result: a text file (tab-delimited) is created. Note that you can select CSV in step 4 to get the comma-separated text file.

csv file

Import into Excel

To import a text file into Excel, follow the steps below.

1. Click File tab -> Open ->Browse.

click browse

3. Browse your file location and select “Text Files” from the drop-down list.

select text file

4. Now, select your file. In our example, we selected “ExcelMine- Tab delimited”.

5. Click Open.

6. Select “Delimited” and click Next.

text import wizard

7. Check “Tab”, uncheck all other delimiters, and click Next.

check Tab in Text Import Wizard

8. Click Finish.

click Finish in Text Import Wizard

Result: the text file (tab-delimited) is now showing in Excel.

excel worksheet is created

4 of 4 completed! Congrats!! You can now move on to Chapter 13: Next Example >>
<< Previous Example | Skip to Next Chapter 13: Protect Your Work