Skip to content

MODE.SNGL

Returns the most frequently occurring number in a set. If no number repeats, it returns #N/A.

Syntax

=MODE.SNGL(, [number2], ...)

Statistical

Excel 2010 and later, including Excel for Microsoft 365 and Excel for the web. The older MODE function works in every version.

Try it

Edit the formula in B11 or change the inputs. The sheet recalculates as you type.

B11
A
B
C
1
Sale
Size
2
S1
8
3
S2
9
4
S3
10
5
S4
9
6
S5
8
7
S6
9
8
S7
11
9
S8
10
10
11
Most common size
9

B11 =MODE.SNGL(B2:B9) returns 9

How MODE.SNGL works

MODE.SNGL returns the number that appears most often. It answers "which size sells the most?", "what is the usual number of items per order?" and "what score did most people give?".

How it works

MODE.SNGL looks through the numbers and counts how often each appears. It returns the one with the highest count.

  • Ties. If two numbers appear equally often, MODE.SNGL returns the one that appears first in the data. If you need every tied value, use MODE.MULT, which spills them in Microsoft 365.
  • No repeats. If every number appears once, there is no mode and the result is #N/A.
  • Text and blanks. Text, blanks and logical values in a range are ignored. MODE.SNGL only works with numbers, so it can't find the most common word. For text, combine INDEX, MATCH, MAX and COUNTIF, or in Microsoft 365 use a UNIQUE and COUNTIF construction.
  • Errors. An error value in the data makes the result an error.

MODE.SNGL and MODE

MODE.SNGL was introduced in Excel 2010 to sit alongside MODE.MULT. The older MODE function returns the same answer and still works in every version. Microsoft keeps MODE for compatibility and files it as a compatibility function, so new work should use MODE.SNGL. If a workbook must open in Excel 2007 or earlier, use MODE.

Handling "no mode"

The #N/A result is correct, but unfriendly in a report. Wrap the formula:

=IFERROR(MODE.SNGL(B2:B9), "No repeats")

Be careful with IFERROR, because it also hides errors that come from bad data. If the range might hold errors, test the count of repeats directly instead.

When to use the mode

The mode is the right "typical" value for discrete data, such as shoe sizes, ratings from 1 to 5, or the number of bags per order. It is a poor summary of continuous data, such as exact prices or timings, where repeats are rare and a single repeated value tells you little. For those, use MEDIAN or AVERAGE.

The mode, median and mean can all differ. Ratings of 1, 2, 2, 2, 5 have a mode of 2, a median of 2 and a mean of 2.4. Ratings of 5, 5, 5, 4, 1 have a mode and median of 5 but a mean of 4.

Arguments

number1
The first number, cell or range, such as B2:B9.
number2, ...optional
More numbers, cells or ranges, up to 254 more arguments.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

The most common shoe size

B11 =MODE.SNGL(B2:B9)

Result: 9

Size 9 sold three times, more than any other size.

B11
A
B
C
1
Sale
Size
2
S1
8
3
S2
9
4
S3
10
5
S4
9
6
S5
8
7
S6
9
8
S7
11
9
S8
10
10
11
Most common size
9

B11 =MODE.SNGL(B2:B9) returns 9

Example 2

A tie returns the first value reached

B9 =MODE.SNGL(B2:B7)

Result: 8

Both 8 and 9 appear twice. MODE.SNGL returns 8, because it comes first in the list.

B9
A
B
C
1
Order
Bags
2
O1
7
3
O2
8
4
O3
9
5
O4
8
6
O5
9
7
O6
10
8
9
Mode
8
10

B9 =MODE.SNGL(B2:B7) returns 8

Example 3

No repeats gives #N/A

B7 =MODE.SNGL(B2:B5)

Result: #N/A

Every value appears once, so there is no mode.

B7
A
B
C
1
Order
Value
2
O1
410
3
O2
520
4
O3
475
5
O4
390
6
7
Mode
#N/A
8
9

B7 =MODE.SNGL(B2:B5) returns #N/A

Example 4

Show a message when there is no mode

B7 =IFERROR(MODE.SNGL(B2:B5),"No repeats")

Result: No repeats

IFERROR replaces the #N/A with a message.

B7
A
B
C
1
Order
Value
2
O1
410
3
O2
520
4
O3
475
5
O4
390
6
7
Mode
No repeats
8
9

B7 =IFERROR(MODE.SNGL(B2:B5),"No repeats") returns No repeats

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In B11, return the most common size sold in Store 1.

Answer in B11.

B11
A
B
C
D
1
Order
Store 1 size
Store 2 size
2
O1
9
6
3
O2
8
7
4
O3
10
8
5
O4
9
9
6
O5
11
10
7
O6
9
11
8
O7
8
12
9
O8
10
13
10
11
Most common size
12

Common mistakes

  • If no value repeats, MODE.SNGL returns #N/A. That is a valid answer, so decide how to show it rather than assuming the formula is broken.
  • With a tie, only the first mode is returned, which can hide that two values are equally common. Use MODE.MULT to see them all.
  • Numbers stored as text are ignored. If the mode looks wrong, check that the column holds real numbers.
  • MODE.SNGL works on numbers only. It cannot return the most common word or code.
  • Continuous measurements, such as 12.37 and 12.4, rarely repeat exactly, so the mode of that kind of data is usually meaningless.

Questions people ask

What is the difference between MODE and MODE.SNGL?

Nothing in the result. MODE.SNGL is the newer name, introduced in Excel 2010, and MODE is kept for compatibility. Use MODE.SNGL in new work.

How do I find the most common text value?

MODE.SNGL only handles numbers. For text, use `=INDEX(A2:A9,MODE.SNGL(MATCH(A2:A9,A2:A9,0)))`, which matches each entry to its first position and finds the most common position.

Why does MODE.SNGL return #N/A?

No number in the range appears more than once. Wrap the formula in IFERROR to show a message instead.

How do I get all the modes when there is a tie?

Use MODE.MULT. In Microsoft 365 it spills every tied value into the cells below.

Learn MODE.SNGL in a real sheet.

Tracks take you from the basics to modelling, one graded exercise at a time.