SpreadJS 13
SpreadJS Documentation / Formula Reference / Formula Functions / MODE.SNGL
In This Topic
    In This Topic

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






    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.


    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.

    This function measures the central tendency which is the center location of a group of numbers in a statistical distribution. Some common measures of tendency are average, median, and mode. Average is the arithmetic mean, and is calculated by adding a group of numbers and then dividing by the number count. Median is the middle number of a group of numbers where half of the numbers have values that are greater than the median and half of the numbers have values that are less than the median.

    Data Types

    Accepts numeric data for all arguments. Returns numeric data.






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

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