无涯教程-JavaScript - MODE.SNGL函数

38 阅读1分钟

描述

MODE.SNGL函数返回数组或数据范围中最频繁出现或重复的值。

语法

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

争论

Argument 描述 Required/Optional
Number1 The first argument for which you want to calculate the mode. Required
Number2, ...

争论 2 to 254 for which you want to calculate the mode.

您也可以使用单个数组或对数组的引用,而不要使用以逗号分隔的参数。

Optional

Notes

  • MODE.SNGL函数测量集中趋势,集中趋势是统计分布中一组数字的中心的位置。

  • 争论 can either be numbers or names, arrays, or references that contain numbers.

  • 如果数组或引用参数包含文本,逻辑值或空单元格,则将忽略这些值;但是,包含零值的像元。

  • 如果直接提供给函数的值(即不是提供值数组的一部分)是非数字的,则MODE.SNGL返回#VALUE!值。

  • 如果数据集不包含重复的数据点,则MODE.SNGL返回错误值#N/A。

适用性

Excel 2010,Excel 2013,Excel 2016

Example

Mode.Sngl Function

参考链接

www.learnfk.com/javascript/…