简体   繁体   English

Maxifs在Google表格中使用多个importrange

[英]Maxifs using multiple importrange in Google Sheets

The following code: 以下代码:

=MAX(MAXIFS(IMPORTRANGE("url"),IMPORTRANGE("url"),B9), MAXIFS(IMPORTRANGE("url"),IMPORTRANGE("url"),B9), MAXIFS(IMPORTRANGE("url"),IMPORTRANGE("url"),B9)) 

It is not working. 它不起作用。

[mainsheet] [0]: https://docs.google.com/spreadsheets/d/1CuVq262QHv_Lv0WSHjhSvbgolJCWc6TuiaCvNJxA45w [mainsheet] [0]: https//docs.google.com/spreadsheets/d/1CuVq262QHv_Lv0WSHjhSvbgolJCWc6TuiaCvNJxA45w

[test1][1] https://docs.google.com/spreadsheets/d/1HoQQQziMuIiIHoWxODG7ixQW5wk4FCK5y5cigACc7Vo [test1] [1] https://docs.google.com/spreadsheets/d/1HoQQQziMuIiIHoWxODG7ixQW5wk4FCK5y5cigACc7Vo

[test2][2] [TEST2] [2]

https://docs.google.com/spreadsheets/d/13Fi516nyXYvLLk3-9KPOMmwaUcyJPUubncs8ONhWT5I https://docs.google.com/spreadsheets/d/13Fi516nyXYvLLk3-9KPOMmwaUcyJPUubncs8ONhWT5I

[test3][3] [TEST3] [3]

https://docs.google.com/spreadsheets/d/1zQiDZfoggg0xumix1hpQzaCf5UMc9o0xtkpIHDNA7mc https://docs.google.com/spreadsheets/d/1zQiDZfoggg0xumix1hpQzaCf5UMc9o0xtkpIHDNA7mc

The problem is not having "multiple" maxifs with importrange . 问题是没有具有maxifs “多个” importrange The problem exists with even a single maxifs replying on importrange . 甚至单个maxifsimportrange回复也存在问题。

maxifs expects a range and importrange does not satisfy this expectation. maxifs期望一个范围和importrange不满足这个期望。 Hence the error message "Argument must be a range". 因此错误消息“参数必须是范围”。 The way to manage this is to create a helper range where each the importrange can be imported and the maxifs function applied to the physical range. 管理这个问题的方法是创建其中每个帮手范围importrange可以导入和maxifs应用于物理范围功能。

This screenshot shows the general idea. 此屏幕截图显示了一般概念。
在此输入图像描述

  • Cell J2: =maxifs(A2:A7,B2:B7,C2) Cell J2: =maxifs(A2:A7,B2:B7,C2)
  • Cell J3: =maxifs(D2:D5,E2:E5,F2) Cell J3: =maxifs(D2:D5,E2:E5,F2)
  • Cell J4: =maxifs(G2:G5,H2:H5,I2) Cell J4: =maxifs(G2:G5,H2:H5,I2)
  • Cell J5: =max(J2:J4) Cell J5: =max(J2:J4)

By comparison, cell F8 contains the formula containing the various maxifs and importrange values. 相比之下,单元格F8包含包含各种maxifsimportrange值的公式。 The result is an error. 结果是错误。

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

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