How to Convert Text & CSV Files to Excel: 2 Easy Methods

This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.

This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.

This article has been viewed 73,250 times.

Do you have a plain text or CSV file you want to convert to an Excel spreadsheet? Whether you want to import a simple list of items or an extensive set of data that's delimited by commas, tabs, or other characters, you can use Excel's handy Text Import Wizard to open and format your data in organized columns and rows. This wikiHow guide will show you how to create a new Excel file from a text or CSV file, and how to import a text or CSV file into an existing workbook.

Things You Should Know Method 1 of 2:

Creating a New Excel File from Text

Step 1 Open Excel.

Fair Use (screenshot)
\n">

Step 2 Click Browse (Windows) or On My Mac (Mac).

Fair Use (screenshot)
\n">

Click Browse (Windows) or On My Mac (Mac). This opens your computer's file browser. [2] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source

Advertisement

Step 3 Click the drop-down menu and select All Files (Windows only).

Fair Use (screenshot)
\n">

Click the drop-down menu and select All Files (Windows only). This allows you to view all files instead of just those ending with Excel-specific formats.

Step 4 Select your text file and click Open.

Fair Use (screenshot)
\n">

Step 5 Choose whether the text file is Delimited or Fixed Width.

Fair Use (screenshot)
\n">

Step 6 Check the box next to

Fair Use (screenshot)
\n">

Check the box next to "My data has headers" (if your columns have headers). This tells Excel to format the first line as column headers rather than typical cell values.

Step 7 Click Next in the Text Import window.

Fair Use (screenshot)
\n">

Click Next in the Text Import window. This will take you to the next step, which varies depending on whether you're working with delimited data or fixed width data.

Step 8 Choose your delimiter preferences and click Next.

Fair Use (screenshot)
\n">

Step 9 Adjust your Fixed Width preferences and click Next.

Fair Use (screenshot)
\n">

Step 10 Click Finish.

Fair Use (screenshot)
\n">

Click Finish . Your text file is now imported into Excel. You can now edit the data as you would on a standard worksheet. [6] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source

Step 11 Save the file in the XLSX format.

Fair Use (screenshot)
\n">

Save the file in the XLSX format. Now that you've imported your text file, you can easily save it as an Excel file. Just press Control + S (PC) or Command + S (Mac) on the keyboard to open the Save dialog, choose a file name and location, and click Save. The file will automatically save in Excel's default format.

Advertisement Method 2 of 2:

Import Text into an Existing File

Step 1 <a href=Open your Excel workbook." width="460" height="345" />

Fair Use (screenshot)
\n">

Open your Excel workbook. If you want to import a text file into a worksheet in an existing workbook, you can easily do so using Excel's built-in data tools.

Step 2 Click the Data tab at the top of Excel.

Fair Use (screenshot)
\n">

Click the Data tab at the top of Excel. You can find this tab above the toolbar ribbon at the top of your spreadsheet.

Step 3 Click From Text/CSV or From Text on the toolbar.

Fair Use (screenshot)
\n">

Step 4 Select a text file and click Import.

Fair Use (screenshot)
\n">

Select a text file and click Import . This can be any text file, including those which contain comma separated values (CSV). The selected file will open in the Text Import Wizard. [8] X Research source

Step 5 Choose whether the text file is Delimited or Fixed Width.

Fair Use (screenshot)
\n">

Step 6 Check the box next to

Fair Use (screenshot)
\n">

Check the box next to "My data has headers" (if your columns have headers). This tells Excel to format the first line as column headers rather than typical cell values.

Step 7 Click Next in the Text Import window.

Fair Use (screenshot)
\n">

Click Next in the Text Import window. This will take you to the next step, which varies depending on whether you're working with delimited data or fixed width data.

Step 8 Choose your delimiter preferences and click Next.

Fair Use (screenshot)
\n">

Step 9 Adjust your Fixed Width preferences and click Next.

Fair Use (screenshot)
\n">

Step 10 Click Finish.

Fair Use (screenshot)
\n">

Click Finish . This takes you back to the Import window, where you'll be asked where you'd like to place the imported text. [10] X Research source

Step 11 Select <a href=a worksheet and click OK." width="460" height="344" />

Fair Use (screenshot)
\n">

Select a worksheet and click OK . The text file is now imported into your Excel worksheet. You can edit this data as you would any other Excel data, such as using it to create graphs or pivot tables.

Step 12 Save the file.

Fair Use (screenshot)
\n">

Save the file. Now that you've imported your text file, you can save it in the Excel format. Just press Control + S (PC) or Command + S (Mac) on the keyboard to save your changes to the workbook you've opened, or click File > Save As to create a new file containing your data. [11] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source

Advertisement

Expert Q&A

Ask a Question 200 characters left Include your email address to get a message when this question is answered. Advertisement

Tips

Submit a Tip All tip submissions are carefully reviewed before being published Please provide your name and last initial Thanks for submitting a tip for review!

You Might Also Like

Merge Cells in Excel

How to Merge Cells in Microsoft Excel: A Quick Guide

Password Protect an Excel Spreadsheet

How to Password Protect a Microsoft Excel Spreadsheet

Use If‐Else in Excel

How to Use If‐Else in Microsoft Excel: Step-by-Step Tutorial

Unprotect an Excel Sheet

Unprotect an Excel Sheet

Link Sheets in Excel

Link Sheets in Excel

Create a Mortgage Calculator With Microsoft Excel

Create a Mortgage Calculator With Microsoft Excel

Insert Pictures in Excel That Automatically Size to Fit Cells

Insert Pictures in Excel That Automatically Size to Fit Cells

Make a Spreadsheet in Excel

Make a Spreadsheet in Excel

Recover a Corrupt Excel File

Recover a Corrupt Excel File

Unhide Columns in Excel

How to Show Hidden Columns in Microsoft Excel & Unhide Column A

Insert Rows in Excel

How to Insert and Delete Rows in Microsoft Excel: Quick Guide

Add Links in Excel

4 Easy Ways to Add Links in Microsoft Excel

Ethernet Doesn

How to Fix Ethernet Doesn't Have a Valid IP Configuration on Windows

Create an Inventory List in Excel

How to Create an Inventory List in Microsoft Excel: Step-by-Step Guide