The Excel MODE Function

MODE & MODE.SNGL Functions

In Excel 2010, the MODE function has been renamed as MODE.SNGL.

Although it has been replaced, the Mode function is still available in Excel 2010 (stored in the list of compatibility functions), to allow compatibility with earlier versions of Excel.

Basic Description

The Excel MODE function returns the statistical mode (the most frequently occurring value) of a list of supplied numbers. If there are 2 or more most frequently occurring values in the supplied data, the function returns the lowest of these values

The syntax of the function is:

MODE( number1, [number2], ... )

where the number arguments are a set of one or more numeric values (or arrays of numeric values), for which you want to calculate the statistical mode.

In current versions of Excel (Excel 2007 and later), you can supply up to 255 number arguments to the Mode function, but in Excel 2003, the function can only accept up to 30 number arguments.

Text and logical values within a supplied array are ignored by the function.


Mode Function Examples

Example 1

In the following spreadsheet, the Excel Mode function is used to calculate the statistical mode of the set of values in cells A1-A6.

 Formulas:
 AB
11=MODE( A1:A6 )
21 
32 
42 
52 
63 
 Results:
 AB
112
21 
32 
42 
52 
63 

Example 2

In the following spreadsheet, the Mode function is used to calculate the statistical mode of the set of values in cells A1-A10.

Note that in this case, there are two modes in the data.

 Formulas:
 AB
11=MODE( A1:A10 )
21 
32 
42 
53 
63 
73 
84 
94 
104 
 Results:
 AB
113- Returns the lowest of the two Modes, 3 and 4
21 
32 
42 
53 
63 
73 
84 
94 
104 

In the above case, where the data in column A of the above spreadsheet has two statistical modes (3 and 4), the Mode function returns the lowest of these two values.

Further details and examples of the Excel Mode function are provided on the Microsoft Office website.


Mode Function Errors

If you get an error from the Excel Mode function this is likely to be one of the following:

Common Errors
#NUM!-Occurs if there are no duplicates (and there is therefore no mode) within the supplied values.
#VALUE!-

Occurs if a value that is supplied directly to the function (i.e. that is not part of an array) is non-numeric.

(Note that non-numeric functions that are part of an array of values are ignored by the Mode function).