Lesson 93 of 104 4 min Updated Completed

How to Import and Export Text Files

Text files are a simple way to move data between programs. There are two common types: comma-separated (.csv) and tab-delimited (.txt).

Export from Excel

  1. Open the workbook.

  2. Click File > Save As > Browse.

    Save As > Browse on the File tab

  3. Under Save as type, choose Text (Tab delimited). For a CSV file, choose CSV UTF-8 (Comma delimited) instead.

    Choosing Text (Tab delimited) as the file type

  4. Click Save.

Result: a tab-delimited text file.

The exported tab-delimited text file

Note: Text files save only the active sheet, and only values. Formulas, formatting and other sheets are lost, so keep your original .xlsx file too.

Import into Excel

  1. Click File > Open > Browse.

    Open > Browse on the File tab

  2. Go to the file’s folder and choose Text Files from the file type list.

    Choosing Text Files in the Open dialog box

  3. Select your file (here, ExcelMine- Tab delimited) and click Open.

  4. In the Text Import Wizard, choose Delimited and click Next.

    Choosing Delimited in the Text Import Wizard

  5. Tick Tab, untick the other delimiters, and click Next.

    Ticking Tab as the delimiter

  6. Click Finish.

    The last step of the Text Import Wizard

Result: the data from the text file is in Excel, one value per cell.

The imported text file in Excel

Using Microsoft 365? You can also use Data > From Text/CSV. It shows a preview and detects the delimiter for you.