MODE Function

Excel Functions › Compatibility

All versions (legacy) Compatibility

The Excel MODE function returns the most frequently occurring value in a set of numbers. It is a legacy function; Microsoft replaced it in Excel 2010 with MODE.SNGL, which behaves identically.


Quick answer:
=MODE({1,2,2,3,4,2,5}) most frequent value = 2

Syntax

=MODE(number1, [number2], ...)
ArgumentDescription
number1RequiredThe first number, cell reference, or array for which you want the mode.
number2, ...OptionalUp to 254 additional numbers or ranges to include.

How to use it

MODE scans your numbers and returns the one that appears most often. When several values tie for most frequent, it returns the first one in the data; if no value repeats, it returns the #N/A error.

=MODE({1,2,2,3,4,2,5}) // 2 appears most = 2
=MODE({4,4,5,5,6}) // tie -> first = 4

Text and empty cells inside a referenced range are ignored. MODE returns only a single value; to list all modes of a multi-modal dataset, use the modern array function MODE.MULT.

Use MODE.SNGL in Excel 2010 and later. MODE still works for backward compatibility, but Microsoft recommends MODE.SNGL (single mode) — it is identical to MODE — or MODE.MULT when you need every tied mode.

Try it: interactive demo

Live demo

Pick a MODE example to see the formula and its result.

Result:

Practice workbook

📊
Download the free MODE practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Should I use MODE or MODE.SNGL?
Use MODE.SNGL in Excel 2010 or later — it returns the same single most-frequent value and is the supported function. MODE is kept only so older workbooks keep working.
What does MODE return when there is a tie?
It returns the first of the tied values in the order they appear in the data. To get every tied mode, use the modern array function MODE.MULT.
What if no number repeats?
If every value is unique, there is no mode and MODE returns the #N/A error. Make sure your data actually contains repeats before relying on it.
Does MODE ignore text and blanks?
Yes — inside a referenced range, text, logical values, and empty cells are ignored, so only the numbers are counted when finding the most frequent value.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: MODE.SNGL · MODE.MULT · MEDIAN · AVERAGE · COUNTIF