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
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:
=COUNTIF(A$2:A$3000,A2)
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.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
When you merge cells that already contain information, you may run into problems with formulas that refer to the ...
Discover MoreWant 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 MoreIf you need to evaluate a row of values to meet specific criteria, then you'll appreciate the discussion in this tip. It ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments