Extracting Values Appearing More than Twice

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


2

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

Protecting Bookmarks

Bookmarks are a great boon in developing and working with documents—until someone deletes them. When it comes to ...

Discover More

Changing the Color Used to Denote Selected Cells

When entering data into a range of cells, the cell in which you are working appears in a different color than the other ...

Discover More

Cross-Reference Removes Superscript Formatting

When you add a cross-reference to your document, it provides a way to dynamically reference text in another location, ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2019 For Dummies today!

More ExcelTips (ribbon)

Tracing Errors

Sometimes it can be confusing to figure out the source of an error that is displayed in your worksheet. Excel provides a ...

Discover More

Retrieving the Last Value in a Column

Need to get at the last value in a column, regardless of how many cells are used within that column? You can apply the ...

Discover More

Summing Digits in a Value

Want to add up all the digits in a given value? It's a bit trickier than it may at first seem.

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 four more than 4?

2025-11-03 23:55:13

Tomek

While the newer dynamic array functions are probably the simplest solution, using a pivot table is definitely simpler than the last solution proposed in the tip. To do so you just need to
1. Make sure the data in column A has a column heading in cell A1, such as Values.
2. Select the whole range of data, including the heading.
3. On the insert tab select Pivot table.
4. Select the location for the pivot table (it can be on the same sheet or on a New Worksheet) then press OK.
5. From the field list that shows up, drag the Values to the Rows area, and again to the Ʃ Values area. The latter will automatically
be assigned to Count of Values, unless all values are numeric. In such case you will need to right click in the Sum of Values
column that was created automatically and select Summarize values By Count.
6. Finally, you need to click on the down arrow beside the Row Labels, and select Value Filters - Greater than,
   and specify the value of 2 (or whatever number repetitions you want to ignore).

While this approach still requires several steps, in my opinion they are easier to follow than the helper-column approach from the tip. Also, if you are not familiar with pivot tables, be not afraid; they are really not that complicated once you start using them.

Even though this is not a formulaic approach Nolan asked for, it has additional benefits:
• It creates a sort of the helper column for you, but it is condensed to only unique Values,
• You can easily sort and filter the content of the pivot table by the Values or by the Count of Values.


2025-11-01 07:07:46

Alex Blakenburg

If you are using MS365 you could include the TrimRange function into the 2 options using LET ie =LET(X,A1:.A3000 (hard to see but there is a "period" before the A3000) this way Excel only has to evaluate down to the last used cell in column A instead of the full 3000 rows. Technically possible for the option without the LET but there are some traps to this if the ranges are different columns.


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.