- SpreadJS Overview
- Getting Started
- JavaScript Frameworks
- Best Practices
- Features
- SpreadJS Designer
- SpreadJS Designer Component
- SpreadJS Collaboration Server
- Touch Support
-
Formula Reference
- Formula Overview
-
Formula Functions
- Barcode Functions
-
Compatibility Functions
- BETADIST
- BETAINV
- BINOMDIST
- CHIDIST
- CHIINV
- CHITEST
- CONFIDENCE
- COVAR
- CRITBINOM
- EXPONDIST
- FDIST
- FLOOR
- FTEST
- GAMMADIST
- GAMMAINV
- HYPGEOMDIST
- LOGINV
- LOGNORMDIST
- MODE
- NEGBINOMDIST
- NORM.INV
- NORMDIST
- NORMSDIST
- NORMSINV
- PERCENTILE
- PERCENTRANK
- POISSON
- QUARTILE
- RANK
- STDEV
- STDEVP
- TDIST
- TINV
- TTEST
- VAR
- VARP
- WEIBULL
- ZTEST
- Database Functions
- Date and Time Functions
- Engineering Functions
- Financial Functions
- Information Functions
- Logical Functions
- Lookup and Reference Functions
- Math and Trigonometric Functions
- Statistical Functions
- Sparkline Functions
- Text Functions
- Web Functions
- RegEx Functions
- Other Functions
- Import and Export Reference
- Frequently Used Events
- API Documentation
- Release Notes
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 cells with the value zero in calculations.
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.