Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in


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

Find the most common value (number or text string) from a list with VBA code

Quickly find the most comma value (number or text string) from a list/column with several clicks

Easily sort by frequency of occurrences in Excel

Kutools for Excel's Advanced Sort utility supports sorting data by text length, last name, absolute value, frequency, etc. in Excel quickly. Full Feature Free Trial 60-day!

ad sort by frequency 2

Excel Productivity Tools

Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial

Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial

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 this formula:

=INDEX($A$1:$A$16,MODE(MATCH($A$1:$A$16,$A$1:$A$16,0))), press Shift + Ctrl + Enter keys together. See screenshot:

note ribbon Formula is too complicated to remember? Save the formula as an Auto Text entry for reusing with only one click in future!
Read more…     Free trial

doc find most common data 1


1. A1:A16 is the data range that you want to get the most frequent value. You can change it to your need.

2. This array formula cannot work when there are blank cells in the list.

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

Sub FindFrequency()
'Update 20140326
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
        End If
    End If
MsgBox "The most common value is: " & xOutValue & " Appeared " & xMax & " Times"
End Sub

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:

doc find most common data 2

4. And then click OK, you will get a prompt box which displays the following information:

doc find most common data 3

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.

Kutools for Excel - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

Select a blank cell you will place the found value into, Click Kutools > Formulas > Find most comma value, and then in the Formula Helper dialog box specify the list/column and click the Ok button. See screenshots:

And then you will see the most common/frequent value have been found and placed into the selected cell. See screenshot:

doc find most common data 06

Kutools for Excel - Includes more than 300 handy Excel tools. Full feature free trial 60-day, no credit card required! Get it now!


In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!

Excel Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 70%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 80% Excel problems.

  • Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  • Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  • Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  • No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  • Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  • Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Catalina · 4 months ago

    how to do this with an horizontal arrangement? I am having and #N/A error.
    • To post as a guest, your comment is unpublished.
      kellytte · 3 months ago
      Hi Catalina,
      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.
  • To post as a guest, your comment is unpublished.
    Adithya Koutha · 10 months ago
    Hi thanks, for the info. What if there is a sentence instead of a word? then also can we get the common words in all sentences??
    • To post as a guest, your comment is unpublished.
      kellytte · 5 months ago
      Hi Adithya,
      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.
  • To post as a guest, your comment is unpublished.
    Ranjit singh · 2 years ago
    how to stop input in excel if enter value of cell larger than other cell
  • To post as a guest, your comment is unpublished.
    Tom · 2 years ago
    "Find the most common value (number or text string) from a list with Array Formula" will ignore blanks if modifying the above formula to:

  • To post as a guest, your comment is unpublished.
    Stuart House · 3 years ago
    Trying to find the 'Find most common value' function. Not showing on the formulas drop down. Has it been removed ?