How to repeat table data?

Source: Internet
Author: User
Tags repetition

How does the table data repeat? The data in the table is sometimes abnormal--knowing that the company does not have the same name, but there are duplicate names; it was the only ID number that appeared on the heads of two of people. Repetition sometimes occurs in a table, needs to be identified, and sometimes you need to find out what data is not in a single table. So how do you quickly find duplicate items? In fact, with two small functions if and countif can be completely done.

Take this staff table below, there are some duplicate records, need to find out quickly.

Now, use a small formula to fix it. Create a secondary column B, which holds the label for the duplicate of the judgment, and if there is a repetition, mark "repeat", and do not mark anything without repetition. Enter the formula in cell B2 and return:

=if (COUNTIF (A:A,A2) >1, "Repeat", "")

You can then automatically populate each row by dragging the small box fill handle button (or double-click the fill handle) in the lower-right corner of the B2 cell. After that, all duplicate data lines show "Get Away".

To make the duplicated items look more conspicuous, we can also add color to the duplicated items. Set through the start → conditional formatting → highlight cell rule → repeat value path.

In the Duplicate Value dialog box, set a fill color and text color for the repeat value, and then determine.

Then we see that all the duplicated items are marked with the specified color.

If there is a duplicate ID number in the registration form, how do I get it? Please look at the table below, the number of dense, you can suddenly determine a few repeat it?

In fact, we just need to use another formula in cell B2:

=if (COUNTIF (a:a,a2& "*") >1, "Repeat", "" ")

Using the fill handle to apply the formula to subsequent lines automatically gives the duplicate ID's location.

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.