Extracting Values Appearing More than Twice

Written by Allen Wyatt (last updated October 30, 2025)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365


Nolan has a column of unsorted values, comprising more than 2,500 rows. He would like to extract a list of values that appear more than twice in the column. He wonders if there is a formulaic way to do this.

A formulaic approach requires the use of the newer dynamic array functions. Assuming that the values are in column A, you can use this formula:

=UNIQUE(FILTER(A1:A3000, COUNTIF(A1:A3000, A1:A3000) >2))

The FILTER function filters the data in column A according to the specification that there are more than two of the value, and then UNIQUE returns the unique values from the results of the FILTER. You can also use the LET function to approach the task from two different angles:

=LET(X,A1:A3000, Y,COUNTIF(X,X), UNIQUE(FILTER(X,Y>2)))
=LET(X,A1:A3000, Y,UNIQUE(X), FILTER(Y,COUNTIF(X,Y)>2,""))

If you are using an older version of Excel (all the formulas so far require Excel 2021, 2024, or Microsoft 365), then there is not a simple formulaic solution. Instead, you'll need to use a helper column to specify the number of instances of each value and then use the Advanced Filter tool to copy those values with greater than 2 instances to another location. Even though Nolan specifically asked for a formulaic solution, here's how you would implement the Advanced Filter approach:

  1. Make sure the data in column A has a column heading in cell A1, such as Values.
  2. In cell B1, enter a heading such as Count.
  3. In cell B2 enter the following formula:
  4. =COUNTIF(A$2:A$3000,A2)
    
  5. Copy the formula down as many cells as necessary.
  6. In cell D1 enter the same heading you placed in cell B1 (Count).
  7. In cell D2 enter >2.
  8. Select any cell in column A.
  9. Display the Data tab of the ribbon.
  10. Click the Advanced tool. Excel displays the Advanced Filter dialog box.
  11. Make sure the Copy to Another Location radio button is selected.
  12. Make sure the List Range includes all the cells in columns A and B.
  13. In the Criteria Range box, enter the range $D$1:$D$2.
  14. In the Copy To box, specify a cell where you want the filtered results copied.
  15. Make sure the Unique Records Only check box is selected.
  16. Click on OK.

When you see how many steps it takes to perform such a filtering operation, you can easily understand why users were excited for the newer dynamic array worksheet functions that made a formulaic extraction possible.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3196) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Including a Printer's Name in a Footer

If you can produce output on a number of different printers, you may want Word to indicate on your printouts which ...

Discover More

Changing Chart Types

Want to change an existing bar chart to a different type of chart, such as a line chart or a column chart? It's easy to ...

Discover More

Empty Cells Triggers Error

By default, Excel provides some feedback on your formulas so that you can easily locate potential errors. If you get ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Totaling Across Worksheets

Want to sum the values in the same cell on a range of worksheets? It's not as easy as summing a range on the same ...

Discover More

Combining Cell Contents

Excel allows you to easily combine text together. Interestingly, it provides two ways you can perform such combinations. ...

Discover More

Counting Cells Containing a Word

If you need to know how many cells contain a particular word, there is a variety of ways that you can find the answer. ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 1 + 9?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.