|
|
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 DescriptionThe 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 format 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 mode. In Excel 2007 and Excel 2010, 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 ExamplesThe following example shows 3 examples of the Mode function, used to calculate the mode of the set of values in cells A1 - A10. Although the same 10 values are used in each of the functions in cells B1 - B3, they are supplied to the function in different ways in each case. The format of the functions are shown in the spreadsheet on the left and the resulting values are shown in the spreadsheet on the right.
Further information and examples of the Excel Mode function can be found on the Microsoft Office website. Trouble ShootingIf you get an error from the Excel Mode function this is likely to be one of the following: Common Errors
Also, the following problem is encountered by some users: Common Problem
The Mode function returns the wrong value, or returns the #VALUE! error, even though the supplied values all appear to be numeric. Possible Reason
Text values, including text representations of numbers, are ignored by the Mode function. Therefore, this problem may arise if the values in the supplied array are text representations of numbers, instead of actual values (read more about Excel data types on the Excel Formatting page) Solution
This problem can be solved by converting all array values into numeric values. To do this:
|
||||||||||
|
|
Copyright © 2008-2011 ExcelFunctions.net |