Spread.Sheets Documentation
MODE
Spread.Sheets Documentation > Formula Reference > Formula Functions > MODE

This function returns the most frequently occurring value in a set of data.

Syntax

MODE(value1,value2,...)

MODE(array)

MODE(array1,array2,...)

Arguments

Each argument can be a double-precision floating-point value, an integer value, or an array (cell range) of these. Up to 255 arguments may be included. You can use a single array (cell range) instead of a list of values. You can use multiple arrays (cell ranges) as well.

Remarks

If no value occurs more than once, the function does not return a value. If more than one value occurs the same number of times, the function returns the first value that repeats that same number of times.

If an array or reference argument contains text, logical values, or empty cells, the function ignores those values; however, the function includes in calculations cells with the value zero.

Data Types

Accepts numeric data for all arguments. Returns numeric data.

Examples

MODE(A3,B3,C3,D3)

MODE(A1:A9)

MODE(R1C2,12,10,R2C3)

MODE(A2:A9,B2:B9,B12:35)

MODE(89,95,88,97,88,74) gives the result 88

MODE(1,2,2,3,4,5,5) gives the result 2

See Also