Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.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

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
Sorting 如何使用Google Sheets中的ArrayFormula生成的值对列进行排序?_Sorting_Google Sheets_Google Sheets Formula_Array Formulas_Google Sheets Query - Fatal编程技术网

Sorting 如何使用Google Sheets中的ArrayFormula生成的值对列进行排序?

Sorting 如何使用Google Sheets中的ArrayFormula生成的值对列进行排序?,sorting,google-sheets,google-sheets-formula,array-formulas,google-sheets-query,Sorting,Google Sheets,Google Sheets Formula,Array Formulas,Google Sheets Query,请看下面的电子表格 在左边,我有一个数组公式,它计算出现在右边列表中的单词的频率。我想做的很简单:我想根据计数对左边的2列进行排序。计数越大,该行应显示得越高 如何使用此系统执行此操作?请尝试: =ARRAYFORMULA(QUERY(D:D&{"",""}, "select Col1,count(Col2) where Col1 != '' group by Col1 order by count(Col2) desc label count(Col2)'C

请看下面的电子表格

在左边,我有一个数组公式,它计算出现在右边列表中的单词的频率。我想做的很简单:我想根据计数对左边的2列进行排序。计数越大,该行应显示得越高

如何使用此系统执行此操作?

请尝试:

=ARRAYFORMULA(QUERY(D:D&{"",""}, 
 "select Col1,count(Col2) 
  where Col1 != '' 
  group by Col1 
  order by count(Col2) desc
  label count(Col2)'Count'", 1))

将空格变成两列的目的是什么?@MattKing不知道。这是OP的选择。我只是对它进行了调整以进行排序。它可能是未知/对我们来说不相关部分的一些残余物