Import a text file
- Click the cell where you want to put the data from the text file.
To ensure that the external data does not replace existing data, make sure that the worksheet has no data below or to the right of the cell you click.
- On the Data menu, point to Import External Data, and then click Import Data.
- In the Files of type box, click Text Files.
- In the Look in list, locate and double-click the text file you want to import as an external data range.
- To specify how you want to divide the text into columns, follow the instructions in the Text Import Wizard, and then click Finish.
- In the Import Data dialog box, click Properties to set formatting and layout options for the imported data.
- In the Import Data dialog box, do one of the following:
-
To return the data to the location you selected, click Existing worksheet, and then click OK.
-
To return the data to a new worksheet, click New worksheet, and then click OK. Microsoft Excel adds a new worksheet to your workbook and automatically puts the external data range in the upper-left corner of the new worksheet.
-