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 Sheets Formula_Array Formulas_Google Sheets Query_Gs Vlookup - Fatal编程技术网

Google sheets 如何做谷歌网页过滤?将一列的数据分组到一个单元格?

Google sheets 如何做谷歌网页过滤?将一列的数据分组到一个单元格?,google-sheets,google-sheets-formula,array-formulas,google-sheets-query,gs-vlookup,Google Sheets,Google Sheets Formula,Array Formulas,Google Sheets Query,Gs Vlookup,我有一个类似上面链接的谷歌表单,它看起来像这样 Timestamp Exact Username of Hacker Video Link 6/30/2020 1:55:21 Column1DummyData 6/30/2020 1:59:09 Column1DummyData 6/30/2020 1:59:14 Column1DummyData 6/30/2020 1:59:19 Column1DummyData 6/30/2020 2

我有一个类似上面链接的谷歌表单,它看起来像这样

Timestamp   Exact   Username of Hacker  Video Link
6/30/2020 1:55:21   Column1DummyData    
6/30/2020 1:59:09   Column1DummyData    
6/30/2020 1:59:14   Column1DummyData    
6/30/2020 1:59:19   Column1DummyData    
6/30/2020 2:59:31   Svd 
6/30/2020 2:59:37   Svd 
6/30/2020 10:38:15  qwerty  
6/30/2020 10:44:15  test                https://www.youtube.com/watch?v=3UZzu4UQLcI 
6/30/2020 10:58:53  test                https://www.youtube.com/watch?v=HbgzrKJvDRw
6/30/2020 10:59:33  test                https://www.youtube.com/watch?v=gxpX_mubz2A
Name               NumberOfItem    Video link

Column1DummyData         4

Svd                      2

qwerty                   1

test                     3         https://www.youtube.com/watch?v=3UZzu4UQLcI, https://www.youtube.com/watch?v=HbgzrKJvDRw, https://www.youtube.com/watch?v=gxpX_mubz2A
我成功地使用以下查询生成了如下输出:

=QUERY(B2:B, "select B,count(B) where B is not null group by B label count(B)''")

但我需要这样的输出

Timestamp   Exact   Username of Hacker  Video Link
6/30/2020 1:55:21   Column1DummyData    
6/30/2020 1:59:09   Column1DummyData    
6/30/2020 1:59:14   Column1DummyData    
6/30/2020 1:59:19   Column1DummyData    
6/30/2020 2:59:31   Svd 
6/30/2020 2:59:37   Svd 
6/30/2020 10:38:15  qwerty  
6/30/2020 10:44:15  test                https://www.youtube.com/watch?v=3UZzu4UQLcI 
6/30/2020 10:58:53  test                https://www.youtube.com/watch?v=HbgzrKJvDRw
6/30/2020 10:59:33  test                https://www.youtube.com/watch?v=gxpX_mubz2A
Name               NumberOfItem    Video link

Column1DummyData         4

Svd                      2

qwerty                   1

test                     3         https://www.youtube.com/watch?v=3UZzu4UQLcI, https://www.youtube.com/watch?v=HbgzrKJvDRw, https://www.youtube.com/watch?v=gxpX_mubz2A
尝试:


谢谢你,伙计,这很管用,帮了我一个小忙。。。请您按降序将排序添加到项目数列
=ARRAYFORMULA(查询({查询(B2:B),“选择B,计数(B)其中B!=''按B标签计数分组(B)”)”),IFNA(VLOOKUP(查询(B2:B),“选择B,计数(B)其中B!=''按B标签计数分组(B)”,{查询(B2:C),“选择B,计数(B)其中B!=''和C!=''按B标签计数分组(B)”“”)、REGEXREPLACE(TRIM(转置查询(转置查询(查询(B2:C,“选择计数(B),其中B!=''和C!=''按B轴C分组”)、“偏移量1”,0)=“”、查询(查询(B2:C,“选择计数(B),其中B!=''和C!=''按B轴C分组”)、“限制0”,1)和“,”)、99^99”)、“、$”、)、3、0}、“按Col2说明排序”,0”)