首页 > 解决方案 > 依赖谷歌表格中的下拉列表

问题描述

我正在使用谷歌表格。在列表 1 中,我有一些数据,通过

=query(A1:B1000;"select A order by A")

在列表 2 中,我有带有静态答案“是、否等”的下拉列表,我需要为列表 1 中的每个数据选择答案

例如:

  1. 是的

问题是当我添加一些像“1”这样的数据时,它将被排序到列的开头,我有:

  1. 是的

是否有可能以某种方式将下拉列表链接到每个数据,所以如果数据向上或向下移动,答案也会移动?

https://docs.google.com/spreadsheets/d/1epf7ofrKFYTcKKC-eBtEjx9ogsmsd8f8lydOhdVMtbc/edit#gid=1867361376

标签: sortinggoogle-sheetsgoogle-sheets-formulaarray-formulasgoogle-sheets-query

解决方案


您可以按行订购:

=ARRAYFORMULA(QUERY({ROW(base!A2:A100)\ base!A2:D100}; 
 "select Col4,Col5 where Col5 is not null order by Col1"; 0))

0


推荐阅读