JavaScript 中的 MEDIAN函数

首页 / JavaScript入门教程 / JavaScript 中的 MEDIAN函数

描述

MEDIAN函数返回给定数字的中位数。中位数是一组数字中间的数字。

语法

MEDIAN (number1, [number2] ...)

争论

Argument 描述 Required/Optional
Number1 1 to 255 numbers for which you want the median. required
number2, ... Optional

Notes

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

  • 如果集合中有偶数个数字,则MEDIAN将计算中间两个数字的平均值。

    无涯教程网

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

  • 您直接在参数列表中键入的逻辑值和数字的文本表示形式将被计算在内。

    链接:https://www.learnfk.comhttps://www.learnfk.com/javascript/advanced-excel-statistical-median-function.html

    来源:LearnFk无涯教程网

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

  • 争论 that are error values or text that cannot be translated into numbers cause errors.

适用性

Excel 2007,Excel 2010,Excel 2013,Excel 2016

Example

Median Function

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

邱岳的产品手记 -〔邱岳〕

从0开始学架构 -〔李运华〕

许式伟的架构课 -〔许式伟〕

互联网人的英语私教课 -〔陈亦峰〕

分布式系统案例课 -〔杨波〕

Python自动化办公实战课 -〔尹会生〕

去无方向的信 -〔小麥〕

反爬虫兵法演绎20讲 -〔DS Hunter〕

Serverless进阶实战课 -〔静远〕

好记忆不如烂笔头。留下您的足迹吧 :)