Excel2010 How to merge cells with the same content in a table

Source: Internet
Author: User

Excel2010 How to merge cells with the same content in a table

1, such a problem of course can be entered at 1.1 or copy text into the same cell, but the data is not good, if the number of such a workload is very large. So we take the following approach to achieve the goal.

2, first set up a secondary column, named "Results" (the name of God horse does not matter ~) in the C2 cell input formula =if (a2=a3,b2& "," &c3,b2). Fills down to the last row of the table.

3. At this point, it can be found that the first occurrence of the line in each province shows a comma-linked text of all cities in the province. These texts are exactly the result we want!

4, copy the third column, still in the third column "Paste selectively", the third column of the formula into a numerical value.

5, select the data table, this example is the choice of A1~C10. Click "Data" in the toolbar and click "Delete Duplicates", as shown in the following figure.

6, the pop-up window is as follows. Cancel the hook before column B, column C, and click OK. As shown in the following figure.

7, this time the system will prompt you to delete the completion, as shown in the following figure. Click Finish to OK. Do you think it's practical? Come on, give it a try.

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.