简体   繁体   English

Excel-公式-从所得的INDEX数组中获取n个值

[英]Excel - Formula - Get n values from resulting array of INDEX

With this table named jobSearches : 使用名为jobSearches表: 表格jobSearches

I am able to calculate the Average of the first row using following formula: 我可以使用以下公式计算第一行的平均值:

=AVERAGE(INDEX(jobsearches,1,))

Note that INDEX(jobsearches,1,) returns an array of values: 请注意, INDEX(jobsearches,1,)返回一个值数组:

值数组

Question: Is it possible to calculate the AVERAGE for just the first n values of the resolved array, and not for the whole row? 问题:是否可以针对解析数组的前n个值而不是整个行计算AVERAGE?

You can do something like this: 您可以执行以下操作:

=AVERAGE(INDEX(jobsearches,1,2):INDEX(jobsearches,1,11))

Which will return the average of the first 10 numbers on the first row. 这将返回第一行中前10个数字的平均值。

这正是OFFSET(reference,rows,cols,height,width)函数用于:

=AVERAGE(OFFSET(jobsearches,0,1,1,10))

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM