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 谷歌表单|哪个公式适合我?COUNTIFS/数组?_Google Sheets_Google Sheets Formula - Fatal编程技术网

Google sheets 谷歌表单|哪个公式适合我?COUNTIFS/数组?

Google sheets 谷歌表单|哪个公式适合我?COUNTIFS/数组?,google-sheets,google-sheets-formula,Google Sheets,Google Sheets Formula,在我的团队中,我希望在仪表板上记录团队成员每月创建的页面数量 在我的Google工作表中,我有许多选项卡,团队可以在其中选择他们的姓名(标记他们已经完成了一个页面)和月份(显示完成的时间) 如何将所有月份的名称和月份编译成公式 这是我添加的一个公式,但它不允许我在“团队成员名称”之后再添加任何值 试试这个: 如果月份名称位于其中一列中,则可以: =rows( query({'Month 1'!A:G;'Month 2'!A:G},"select Col1 where Col2 ='Te

在我的团队中,我希望在仪表板上记录团队成员每月创建的页面数量

在我的Google工作表中,我有许多选项卡,团队可以在其中选择他们的姓名(标记他们已经完成了一个页面)和月份(显示完成的时间)

如何将所有月份的名称和月份编译成公式

这是我添加的一个公式,但它不允许我在“团队成员名称”之后再添加任何值

试试这个:

如果月份名称位于其中一列中,则可以:

=rows(
query({'Month 1'!A:G;'Month 2'!A:G},"select Col1 where Col2 ='Team member name' and Col3 ='Month page completed'",0)
)
我假设: Col2是保存团队成员姓名的列 Col3包含页面完成的月份

ColX是A:G范围内列的索引(A是Col1,B是Col2,等等)

Rows()统计查询返回的行数

如果要引用工作表中的团队成员姓名,可以使用以下方法:

=rows(
    query({'Month 1'!A:G;'Month 2'!A:G},"select Col1 where Col2 ='"&A1&"' and Col3 ='"&A2&"'",0)
    )
其中A1和A2是团队成员姓名和填写月份页面的单元格

=rows(
    query({'Month 1'!A:G;'Month 2'!A:G},"select Col1 where Col2 ='"&A1&"' and Col3 ='"&A2&"'",0)
    )