How to find most common value (number or text string) from a list in Excel?
Supposing you have a list of names which contain some duplicates, and now, you want to extract the value that appears the most frequently. The direct way is to count the data one by one from the list to get the result, but if there are thousands of names in the column, this way will be troublesome and time-consuming. The following tutorial will introduce you some tricks to solve this task quickly and conveniently.
Find the most common value (number or text string) from a list with Array Formula
Generally, we can apply the MODE function (=MODE(A1:A16)) to find the most common number from a range. But this MODE function does not work with text strings. To extract the most occurring value, you can apply the following array formula. Please do as this:
In a blank cell besides the data, enter below formula, and press Shift + Ctrl + Enter keys together.
Find the most common value (number or text string) from a list with VBA code
With the following VBA code, you can not only find the most occurring value, but also count the number of times for the most common word.
1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.
2. Click Insert > Module, and paste the following code in the Module Window.
VBA code: Find the most common value from a list
Dim Rng As Range
Dim WorkRng As Range
Set dic = CreateObject("scripting.dictionary")
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
xMax = 0
xOutValue = ""
For Each Rng In WorkRng
xValue = Rng.Value
If xValue <> "" Then
dic(xValue) = dic(xValue) + 1
xCount = dic(xValue)
If xCount > xMax Then
xMax = xCount
xOutValue = xValue
MsgBox "The most common value is: " & xOutValue & " Appeared " & xMax & " Times"
3. Then press F5 key to run this code, and a prompt box will pop out to remind you to select the range that you want to use. See screenshot:
4. And then click OK, you will get a prompt box which displays the following information:
Quickly find the most comma value (number or text string) from a list/column with several clicks
If you have Kutools for Excel installed, you can easily apply its Find most comma value formula to quickly get the most frequent value from a list or column in Excel.
1. Select a blank cell you will place the found value into, and click Kutools > Formula Helper> Formula Helper.
2. In the Formula Helper dialog box, choose Lookup from the Formula Type drop-down list, click to select Find most common value in the Choose a formula list box, specify the list/column in the Range box, and click the Ok button. See screenshot:
And then you will see the most common/frequent value have been found and placed into the selected cell. See screenshot:
Kutools for Excel includes more than 300 handy tools for Excel, free to try without limitation in 30 days. Download and Free Trial Now!
Find the lowest common denominator or greatest common factor in Excel All of us may remember that we are asked to calculate some numbers’ lowest common denominator or greatest common factor when we are students. But if there are ten or more and some big numbers, this work will be complicated. Fortunately, Excel provides some functions for us to get the lowest common denominator or greatest common factor of numbers. Please read this article for the details.
How to find common values in 3 columns in Excel? In general case, you may need to find and select the same values between two columns in Excel, but, have you ever tried to find the common values among three columns which means the values exist in 3 columns at the same time as following screenshot shown. This article, I will introduce some methods to finish this task in Excel.
How to find most common number or text in a list in Excel? If you have a list of numbers including some duplicates, and you want to find the number which appears most frequently in this list, except count them one by one, I can introduce some tricks to quickly find the most common number of the list in Excel.
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
More than 300 powerful features. Supports Office/Excel
2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features
30-day free trial. 60-day money back guarantee.
Both the VBA (the second method in above article) and the Find most common value formula provided by Kutools for Excel (the third method in above article) can find the most common value from a horizontal row.
The array formula =INDEX($A$1:$A$16,MODE(MATCH($A$1:$A$16,$A$1:$A$16,0))) can also find out the most common sentence in a column.
However, please note that each sentence should be place in a single cell.