FormulaCraft

How to find the most frequent text value in Excel and Google Sheets

Topic:RANK & statistical aggregates
Excel & Google Sheets
=INDEX(B2:B6,MATCH(MAX(COUNTIF(B2:B6,B2:B6)),COUNTIF(B2:B6,B2:B6),0))

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your text values in column B (e.g., B2:B6).
  2. 2In another cell, enter the array formula. In Excel press Ctrl+Shift+Enter (or use dynamic array in Excel 365). In Sheets it evaluates automatically.
  3. 3COUNTIF counts each value against the whole list, MAX finds the highest count, and MATCH locates it so INDEX can return the text.
  4. 4The result is the text value that appears most often in your range.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What if there is a tie for most frequent?

The formula returns the first tied value it encounters. To list all tied modes, you would need a more advanced array approach.

Does this work for numbers too?

Yes, but for numbers you can simply use =MODE(B2:B6) which is far simpler.

More on RANK & statistical aggregates

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: