根据其他单元格值从其他工作表获取值

时间:2019-10-24 13:32:01

标签: google-sheets filter google-sheets-formula google-sheets-query google-query-language

如果另一个单元格为空,如何从另一个工作表获取值。我正在尝试从sheet1列B中获取值,如果在sheet1列H中为空。

我的意思是如果Sheet1的B2到B4列具有值,并且在同一张纸的H列中,如果H2和H3仅具有文本,则打印B4值。

Sheet1图片

enter image description here

Sheet2图片

enter image description here

这是我尝试执行的操作

=query(Sheet1!B2:B, "Select Sheet1!b where Sheet1!H <> ''")

1 个答案:

答案 0 :(得分:1)

尝试:

=QUERY(Sheet1!B2:C, "select B where B is not null and C is null", 0)

或:

=QUERY(Sheet1!B2:C, "select B where B !='' and C =''", 0)

或:

roy,mike,apple,alex
roy,apple,water,joe
lemon,tony,juice,fred