如何使用VBA计算超过30个值的中位数? WorkSheetFormula
方法只能处理30个值。我现在的功能看起来像这样;
Function medval(Longitudes As Range)
'I want the median for values in the range (here 'Longitudes') B2:B100)
End Function
答案 0 :(得分:3)
您可以根据需要平均/查找尽可能多的连续数据值的中位数:
=MEDIAN(A1:A65500)
将有效
但在Excel 2003中不能超过30个单独的引用(在2007年,您可以有255个引用)。
即。
=MEDIAN(A1,A2,A3,...A31)
无效。
只要它们是连续的,一系列值就会起作用