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 通过查询反转列数据_Sorting_Google Sheets_Google Sheets Formula_Array Formulas_Google Sheets Query - Fatal编程技术网

Sorting 通过查询反转列数据

Sorting 通过查询反转列数据,sorting,google-sheets,google-sheets-formula,array-formulas,google-sheets-query,Sorting,Google Sheets,Google Sheets Formula,Array Formulas,Google Sheets Query,为了创建一个特定的图表,我需要查找列H的值,这些值与显示的值相反。我尝试通过查询: =QUERY(H2:J, "select H order by J desc", 0) 但它以错误的方式返回,如您所见: 我想知道需要调整什么。因为没有按照理论上应该发生的那样,以列H的完全相反顺序返回 链接到电子表格: 试试: =ARRAYFORMULA(QUERY({ROW(H2:H), H2:H}, "select Col2 where Col2 is not null order by

为了创建一个特定的图表,我需要查找列
H
的值,这些值与显示的值相反。我尝试通过查询:

=QUERY(H2:J, "select H order by J desc", 0)
但它以错误的方式返回,如您所见:

我想知道需要调整什么。因为没有按照理论上应该发生的那样,以列
H
的完全相反顺序返回

链接到电子表格: 试试:

=ARRAYFORMULA(QUERY({ROW(H2:H), H2:H}, 
 "select Col2 
  where Col2 is not null 
  order by Col1 desc", 0))