通过查询反转列数据
Inverting column data through a Query
为了创建一个特定的图表,我需要查找列 H
中显示的相反的值。我尝试通过查询:
=QUERY(H2:J, "select H order by J desc", 0)
但它 return 以错误的方式编辑,如您所见:
我想知道需要调整什么。因为在 H
列的精确逆序中 return 没有像理论上应该发生的那样。
Link 到电子表格:
https://docs.google.com/spreadsheets/d/1ehtyuyiAiuQvQUWgMrYBreUMA94jnAliu-VcHfBFi5s/edit?usp=sharing
尝试:
=ARRAYFORMULA(QUERY({ROW(H2:H), H2:H},
"select Col2
where Col2 is not null
order by Col1 desc", 0))
为了创建一个特定的图表,我需要查找列 H
中显示的相反的值。我尝试通过查询:
=QUERY(H2:J, "select H order by J desc", 0)
但它 return 以错误的方式编辑,如您所见:
我想知道需要调整什么。因为在 H
列的精确逆序中 return 没有像理论上应该发生的那样。
Link 到电子表格: https://docs.google.com/spreadsheets/d/1ehtyuyiAiuQvQUWgMrYBreUMA94jnAliu-VcHfBFi5s/edit?usp=sharing
尝试:
=ARRAYFORMULA(QUERY({ROW(H2:H), H2:H},
"select Col2
where Col2 is not null
order by Col1 desc", 0))