Importing TXT files into Excel tables is not a confusing way

Source: Internet
Author: User

In the process of using Excel you will probably encounter this situation, that is, to import some files into the Excel table, but many text file characters are irregular, bad arrangement, imported into the Excel table looks very confusing. For this problem, there is a good solution, we can refer to the following.

Question: How to import the contents of TXT into Excel?

Description: 20090921|0037184959|09 Art |410503|410503117|1|60 These contents are individually imported into each cell by the separator number.

Workaround: Suppose the above content is stored in a text file (. txt). The operation is as follows: (menu) file--> open--> ("File type" select "Text File"; " FileName "Select the. txt file to import"--> next--> "separator" select "Other" and enter "|" --> complete.

Description: TXT files in the data are comma-separated, but in line, the problem is when you choose to import, comma separated, all the data will be imported into the first row, now want to put these data into the column is said: 00FE in the first line, that is A1,00DC, in the second line A2 ...

Solve:

You can use Word to open a text file and use Word to replace the command. In the replacement dialog box to find the characters to fill in the comma, ready to replace the edit box into the "^p" without quotes, and then select All Replace, all the commas replaced by the newline character.

At this point, select All copy, and then switch to Excel, select Paste it.

Operation Steps

1, open the Excel2010, click the Data tab, and then in the leftmost "Get External Data" menu, select the "From Text" option.

2. In the Import Text File window, select the file you want to import. Press the Import button.

3, open the Text Import Wizard-Step 1 (Total 3 Steps) dialog box and select the Separator symbol option. Click "Next".

4, open the Text Import Wizard-Step 2 dialog box, and add a broken line, click the "Next" button.

5. Open the Text Import Wizard-Step 3 dialog box, select "Text" in the column data format combo box, and then click the "Finish" button.

6, at this time will pop up an "Import data" window, select "New Sheet" in, press "OK" button.

7, return to Excel worksheet, you can see the data import successfully, and neatly arranged.

The operation was successful and seemed to be neat and methodical.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.