根据其他单元格值从其他 sheet 获取值

Get values from other sheet based on other cell values

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

我的意思是,如果 Sheet1 的 B2 到 B4 列有值,并且在相同的 H 列中 sheet,如果 H2 和 H3 有文本,则只打印 B4 值。

Sheet1 图片

Sheet2 图片

这是我尝试做的但不起作用

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

尝试:

=FILTER(Sheet1!B2:B, Sheet1!B2:B<>"", Sheet1!C2:C="")

或:

=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)