Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 根据同一行中单元格的值查找可变大小范围_Google Sheets_Google Spreadsheet - Fatal编程技术网

Google sheets 根据同一行中单元格的值查找可变大小范围

Google sheets 根据同一行中单元格的值查找可变大小范围,google-sheets,google-spreadsheet,Google Sheets,Google Spreadsheet,我想在另一列中找到与条件相对应的单元格范围的中位数 对于下图所示的示例,将查找第2列中与第1列中的数字相同的数字的中位数。如第3列所示。行数是动态的,因此需要将其与列1关联 下面是一个示例表: |---------------------|------------------|------------------| | Column1 | Column2 | Column3 | |---------------------|------

我想在另一列中找到与条件相对应的单元格范围的中位数

对于下图所示的示例,将查找第2列中与第1列中的数字相同的数字的中位数。如第3列所示。行数是动态的,因此需要将其与列1关联

下面是一个示例表:

|---------------------|------------------|------------------|
|      Column1        |     Column2      |      Column3     |
|---------------------|------------------|------------------|
|          1          |         0.1      |        0.25      |
|---------------------|------------------|------------------|
|          1          |         0.2      |        0.25      |
|---------------------|------------------|------------------|
|          1          |         0.3      |        0.25      |
|---------------------|------------------|------------------|
|          1          |         0.4      |        0.25      |
|---------------------|------------------|------------------|
|          2          |         1        |        1.5       |
|---------------------|------------------|------------------|
|          2          |         2        |        1.5       |
|---------------------|------------------|------------------|
|          3          |         1.1      |        1.1       |
|---------------------|------------------|------------------|
我试过像这样使用
索引
匹配

=INDEX(MEDIAN(B:B), MATCH(A1,A:A,0))
但这(显然)是不正确的。感谢您的帮助

使用过滤器返回中值函数的正确范围

=median(filter($B$2:$B,$A$2:$A=A2))