Google 工作表搜索值和 return 存在该值的多行的某些列

Google Sheets search value and return certain columns of multiple rows where the value is present

我正在寻找可以执行以下操作的公式: 在 E:I 列和 return 列中查找一个值,从它存在的行中查找 B:D 列中的所有值。 示例:查找 S190202,它会从第 2、5、6 行

return B:D

=QUERY(A1:I, "select B,C,D where E='S190202'
                              or F='S190202'
                              or G='S190202'
                              or H='S190202'
                              or I='S190202'", 1)

对于单元格引用,您可以将其更改为:

=QUERY(A1:I, "select B,C,D where E matches '"&K2&"'
                              or F matches '"&K2&"'
                              or G matches '"&K2&"'
                              or H matches '"&K2&"'
                              or I matches '"&K2&"'", 1)

其中 K2 包含值 S190202