考虑到过滤器,您如何找出列的MEDIAN? [英] How do you figure out the MEDIAN of a column taking into account filters?

查看:164
本文介绍了考虑到过滤器,您如何找出列的MEDIAN?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现,您可以使用 SUBTOTAL 来进行各种功能,使您能够总结或查找列的总计,即使过滤器被应用于

I've recently discovered that you can use SUBTOTAL for various functions which allow you to sum up or find totals of a column, even whilst there are filters being applied to it.

但是,函数列表 SUBTOTAL 不包括 MEDIAN

However, the list of functions SUBTOTAL has does not include MEDIAN.

是否可以找到一列数字的中位数,这些数字已被滤除?

Is it possible to find the median of a column of numbers taking into that some rows have filtered out?

推荐答案

更新以从lori_m下方获取评论

Updated to pick up comments from lori_m below

1。原始答案 - 所有xl版本

感谢这个解决方案中的阿拉丁Akyurek
如果你的数据是A1:A10,数组用 shift ctrl enter
= MEDIAN(IF(SUBTOTAL(3,OFFSET(A1:A10,ROW(A1:A10)-MIN(ROW(A1:A10)),, 1) A1:A10))

2。更新的答案(非数组) - 所有xl版本
= MEDIAN(IF(SUBTOTAL(3,OFFSET(A1:A10,MMULT(ROW(A1:A10),1 )-MIN(MMULT(ROW(A1:A10),1)),, 1)),A1:A10))

强> 3。 Excel 2010& Excel 2013

= AGGREGATE(12,5,A1:A10)

3. Excel 2010 & Excel 2013
=AGGREGATE(12,5,A1:A10)

这篇关于考虑到过滤器,您如何找出列的MEDIAN?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆