Learning Excel - Lesson 11: Importing and exporting text files

There are two ways to import data from a text file (.txt or .csv) into Excel. You can open the file in Excel or import it as an external data range. To export data from Excel to text file, use the Save As command and change the file type from the drop-down menu.

Microsoft Excel Microsoft Excel for Android Microsoft Excel for iOS Microsoft Excel Online

Two commonly used text file formats include:

Simple text file (.txt), in which TAB characters (ASCII code characters 009) usually separate each text field.

A text file (.csv) is a file in which text values ​​are usually separated by commas.

You can change the delimiters used in .txt or .csv files. This is necessary to ensure the import or export operation works as you wish.

Note: You can import or export up to 1,048,576 rows and 16,384 columns.

Learning Excel - Lesson 11: Importing and exporting text files

Enter the text file by opening it in Excel

Import & export text files in Office versions 2017 and above

Enter the text file by connecting it (Power Query)

Export data to text file by saving it

Import & export text files in Office 2016-2010 version

Enter the text file by connecting it

Export data to text file by saving it

Tips to know when importing or exporting text files in Excel

Change the separator used when importing text files

Change list separator for new text file (file you can create when exporting using Save As)

Enter the text file by opening it in Excel

Enter the text file into Excel

You can open text files created in other programs as Excel workbooks with the Open command . Opening the text file in Excel does not change the file format. You can see it in the Excel title bar, where the file name contains the text file name extension. (e.g. .txt. .csv).

Go to File> Open and navigate to the location where that text file is located.

Select Text Files in the type of file drop-down list in the Open box .

Locate and double click the text file you want to open.

If it is a .txt file, Excel starts the Import Text Wizard process. When you have completed these steps, click Finish to complete the data entry process.

If it's a .csv file, Excel automatically opens the text file and displays the data in a new workbook.

Note : When opening a .csv file, it uses the current default data format setting to explain how to import each column of data. If you want to convert the column more flexibly to other data formats, you can use the Import Text Wizard. For example, the column data format in the .csv file is MDY, but Excel's default data format is YMD or you want to convert a column of numbers with the first zero leading to text so you can keep the same. this form. To force Excel to run the Import Text Wizard, you can change the file name extension from .csv to .txt before opening it. Alternatively, you can enter the text file by connecting it.

Import & export text files in Office versions 2017 and above

Enter the text file by connecting it (Power Query)

You can import data from a text file into the current worksheet.

Open the Data tab , in the Get & Transform Data group> click From Text / CSV .

In the Import Data box , locate and double-click the text file you want to import> Click Import .

In the preview dialog, you have a few options:

Select Load , if you want to load the data directly into the new worksheet.

Alternatively, select Load to if you want to load data into a table, a PivotTable / PivotChart , an existing / new Excel worksheet, or just make a connection. You also have the option of adding data to the Data Model .

Select Transform Data if you want to upload this data to Power Query and edit it before putting it into Excel.

If Excel doesn't convert a column of data to the desired format, you can convert that data after importing it.

Export data to text file by saving it

You can convert Excel worksheet to text file by using the Save As command .

Go to File> Save As .

Click Browse .

Go to Save As> Save as type , choose the text file format for the worksheet. For example, click Text (Tab delimited) or CSV (Comma delimited). Note: The feature set is supported depending on the format.

Browse to the location where you want to save the new text file, then click Save .

A dialog box appears, reminding you that only the current worksheet is saved to the new file. If you are sure the current worksheet is the only thing you want to save as a text file, click OK . You can save other spreadsheets as separate text files by repeating the above process.

You may also see a message below the ribbon that some features may be lost if you save the workbook in CSV format.

Import & export text files in Office 2016-2010 version

Enter the text file by connecting it

You can import data from the text file into the current worksheet.

Click the cell you want to put data for that text file.

On the Data tab , in the Get External Data group group> click From Text .

In the Import Data box , locate and double-click the text file you want to import, click Import . Follow the instructions in the Text Import Wizard . Click Help on any page of the Text Import Wizard to learn more information about using this wizard. After completing the steps, click Finish to finish the import process.

In the Import Data box , follow these instructions:

In Where do you want to put the data? , do the following:

To return the data to the position you selected, click Existing worksheet .

Return the data to the upper left corner of the worksheet, click New worksheet .

Optionally, click Properties to set the refreshing, formatting and layout options for the imported data.

Click OK .

Excel places the external data range in the position you select.

If Excel does not convert the data column to the format you want, you can convert the data after importing it.

Export data to text file by saving it

You can convert Excel worksheet to text file by using the Save As command .

Go to File> Save As .

The Save As box is displayed.

In the Save as type box , select the text file format for that worksheet. For example, click Text (Tab delimited) or CSV (Comma delimited).

Go to the location where you want to save the new text file, then click Save .

A box appears, reminding you to save the current worksheet only to a new file. If you are sure about this action, click OK .

A second dialog box appears, reminding you that the worksheet may contain features that are not supported by the text file format. If you just want to save the data in the worksheet as a new text file, click Yes . If you are unsure and want to know more about unsupported Excel features, click Help to learn more.

Tips to know when importing or exporting text files in Excel

Change the separator used when importing text files

The way you change the separator when importing depends on how you import the file.

If using Get & Transform Data> From Text / CSV , after selecting the text file and clicking Import , select the characters used from the list in Delimiter . You can see the effect of the new option immediately in the data preview window. This way you can be sure of your decision before continuing.

If using the Text Import Wizard to import text files, you can change the separator used for import operation in step 2 of the Text Import Wizard. In this step, you can also change the way you handle consecutive delimiters.

Change list separator for new text file (file you can create when exporting using Save As)

When saving the workbook as a .csv file, the default list separator is a comma. You can change it via Windows Region settings.

Windows 10

In Microsoft Windows 10 , right-click the Start button > click Settings .

Click Time & Language> Region in the left panel.

In the main control panel, go to Regional settings> click Additional date, time, and regional settings .

In Region , click Change date, time, or number formats .

In Region , on the Format tab , click Additional settings .

In the Customize Format dialog box , on the Numbers tab , type the character that uses the delimiter in the List separator box .

Click OK twice.

Note : After changing the delimiter character for a computer, the entire program uses this character as a delimiter. You can change this character back to the default by repeating the above process.

In older Windows

In Microsoft Windows, click the Start button > click Control Panel .

In Clock, Language, and Region , click Change date, time, or number formats .

In Region , on the Format tab , click Additional settings .

In the Customize Format dialog box , on the Numbers tab , type the character that serves as the new delimiter in the List separator box .

Click OK twice.

Hopefully after this Excel lesson, you will be proficient in importing and exporting text files in Microsoft Excel.

Sign up and earn $1000 a day ⋙

Exploring the Features of IP Anonymizer Database

Exploring the Features of IP Anonymizer Database

In an era where online privacy and data protection have become paramount concerns for individuals and organizations alike, the need for effective tools to safeguard personal information is more critical than ever. The IP Anonymizer Database emerges as a vital resource for those seeking to navigate the complexities of digital anonymity.

TOP AI tools help you add color to old black and white photos

TOP AI tools help you add color to old black and white photos

TOP AI tools help you add color to old black and white photos. If you want to add color to old black & white photos, use one of the AI ​​tools below.

7 rules for storing a bank card

7 rules for storing a bank card

Each bank card is marked with important information - number, owner’s name, expiration date, CVC or CVV and a chip, thanks to which payments are made at terminals (including contactless). In order for this information to be preserved, it is important to treat the means of payment with care.

IObit Malware Fighter 11 Review 2024

IObit Malware Fighter 11 Review 2024

When your computer gets attacked by a virus or malware, you’ll certainly such for a powerful antivirus to fight back. Well, IObit Malware Fighter is exactly what you need. From its name alone, you can be certain that you are getting the tough protection your computer needs.

How To Find Quality And Fast Internet In Montreal

How To Find Quality And Fast Internet In Montreal

Montreal, a city brimming with culture, history, and Poutine (a famous Canadian dish), deserves an internet connection that can keep up. Whether you’re a streamer glued to Twitch, a workaholic juggling video conferences, or a casual web surfer, a reliable and fast internet plan is essential.

Google Drive for desktop will be discontinued in March 2018

Google Drive for desktop will be discontinued in March 2018

Google Drive for desktop will be discontinued in March 2018, Google has officially announced that it will stop supporting Google Drive for desktop and then the company will remove the application.

Simple ways to fix AirDrop not working error

Simple ways to fix AirDrop not working error

Simple ways to fix AirDrop not working error, AirDrop not working on iPhone, iPad, Mac what to do? This article will provide you with simple ways

TOP best computer screen recording software 2024

TOP best computer screen recording software 2024

TOP best computer screen recording software 2024, Which is the best lightweight, free, high-quality computer screen recording software? Let's find out the top with WebTech360

What is an email address? How to get an email address?

What is an email address? How to get an email address?

What is an email address? How to get an email address?, What is an email address? What is email address entry? This article will answer all your related questions

Every WhatsApp shortcut for computer you need to know

Every WhatsApp shortcut for computer you need to know

Every WhatsApp shortcut for your computer you need to know, WhatsApp is one of the most popular free messaging apps today. The keyboard shortcuts below will help

Unlocking Baccarats Social Thrills: Tedbets Global Gaming Hub

Unlocking Baccarats Social Thrills: Tedbets Global Gaming Hub

Discover the vibrant social scene of baccarat on Tedbet, where players worldwide connect, chat, and enjoy the excitement of live dealer games.

Summary of how to find videos on TikTok

Summary of how to find videos on TikTok

Summary of how to find videos on TikTok, Finding videos on TikTok is not difficult. Let's learn together how to find the original video on TikTok or find the Tik Tok clip you want to watch

Improved mouse sensitivity for Free Fire on BlueStacks

Improved mouse sensitivity for Free Fire on BlueStacks

Improved mouse sensitivity for Free Fire on BlueStacks, BlueStacks has made important improvements for Free Fire gamers. Please upgrade BlueStacks 4.230.10

Huang you: Butter Camera sparkling photo editing app

Huang you: Butter Camera sparkling photo editing app

Huang you: Sparkling photo editing application Butter Camera, Huang you (黄油 相机) is an extremely hot Chinese editing application today, here we would like to invite you

Tips for using Chrome Web Store you need to know

Tips for using Chrome Web Store you need to know

Tips for using Chrome Web Store you need to know, Chrome Web Store or Chrome Web Store offers a selection of apps, extensions and stylish browser wallpapers

What is CapCut? Is it safe to use CapCut?

What is CapCut? Is it safe to use CapCut?

What is CapCut? Is it safe to use CapCut?, What is CapCut? Is music on CapCut copyrighted? Let's find out with WebTech360 what you need to know about CapCut!

Why is buying TikTok coins cheaper on PC?

Why is buying TikTok coins cheaper on PC?

Why is it cheaper to buy TikTok coins on PC?, TikTok gives users the option to exchange real money for coins in the app. However, buying TikTok coins on PC is cheap

How much Internet capacity does Zoom use?

How much Internet capacity does Zoom use?

How much Internet capacity does Zoom use?, Zoom is an indispensable remote online learning and working software during the epidemic, but it can be extremely bandwidth-consuming.

EmuOS: Relive your childhood with legendary games of the past

EmuOS: Relive your childhood with legendary games of the past

EmuOS: Relive your childhood with legendary games of the past, EmuOS is a Web interface that simulates basic Windows 3.1, 95, 98, NT operating systems that provide a lot

TOP best ways to open and read PDF files on your computer

TOP best ways to open and read PDF files on your computer

TOP best ways to open and read PDF files on your computer. How to open PDF files on your computer is not too difficult. In fact, you have many ways to read PDF files. Join WebTech360