MODE.SNGL
Returns the most frequently occurring value in a data set.
MODE.SNGL returns a single mode value and reports #N/A if no value repeats.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=MODE.SNGL(number1, [number2], ...)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number1 | number (range) | Required | — |
number2 | number (range) | Optional | — |
Accepts a variable number of arguments. Minimum: 1.
Remarks
- Returns the first mode encountered after sorting when frequencies tie.
- Alias
MODEis supported.
Error cases
- Returns
#N/Awhen every numeric value appears only once.
Examples
Find a repeated value among four entries.
Formula =MODE.SNGL(7,7,2,9)
Expected result 7
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Supply an array with two equally frequent values.
Formula =MODE.SNGL({7,7,2,2,9})
Expected result 2
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Use a pair of identical values, the minimum input with a mode.
Formula =MODE.SNGL(8,8)
Expected result 8
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
With no repeated value there is no mode.
Formula =MODE.SNGL(7,2,9)
Expected result #N/A
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Single mode from scalar arguments
Formula =MODE.SNGL(1,2,2,3)
Expected result 2
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Single mode from a range
Formula =MODE.SNGL(A1:A5)
| A | |
|---|---|
| 1 | 4 |
| 2 | 4 |
| 3 | 6 |
| 4 | 6 |
| 5 | 6 |
Expected result 6
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
When does MODE.SNGL return #N/A?
It returns #N/A when no value repeats in the numeric dataset.