Find duplicate data in an Excel worksheet with a formula

Source: Internet
Author: User

Not long ago, a netizen asked to find out the duplicate data in the Excel worksheet and list it in the cell. I gave an array formula for reference, but not too well, because the array formula finds duplicate data, but if the array formula is copied down beyond the number of duplicate data, an error is displayed in the corresponding cell. Soon, the friend got a better formula. This formula is very good, solves this kind of problem very well, for interested friend's reference.

There is a series of data in columns A and B (the table is just an example, and there may be a lot of data) that requires finding all the training records (that is, the data in column B) for someone (the name in column a). That is, when you enter a person's name in cell E1, the following automatically displays all of the training records for that person.

We know that the functions of the lookup family of Excel can easily implement lookups, but when a lookup returns a series of results, such functions are powerless and can only be implemented in conjunction with other functions.

Here, the index function, the small function, the IF function, and the row function are used in method one, and the new Iferror function in Excel 2007 is used in method two.

Method One:

1, select cell E3;

2. Input formula: =index (B:b,small ($A $ $A $25= $E $1,row ($A $ $A $), 65536), ROW (1-1))) & ", and then press the Ctrl+shift+enter key at the same time, is the input array formula.

3. Select cell E3 and pull down to all cells.

Method Two:

1, select cell F3;

2. Input formula: =iferror ($A $ $B $9,small (IF ($A $ $A $9= $E $1,row ($A $ $A $)-row ($A $) +1,row ($A $) +1), ROW (1:1)), 2), " "), and then press the Ctrl+shift+enter key at the same time, which is the input array formula.

3. Select cell F3 and pull down to all cells.

Note : More wonderful tutorials Please pay attention to the triple computer Tutorials section, triple Office group: 185219299 welcome you to join

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.