Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arrays googlesheets中的二维查找_Arrays_Google Sheets_Google Sheets Formula_Array Formulas_Google Sheets Query - Fatal编程技术网

Arrays googlesheets中的二维查找

Arrays googlesheets中的二维查找,arrays,google-sheets,google-sheets-formula,array-formulas,google-sheets-query,Arrays,Google Sheets,Google Sheets Formula,Array Formulas,Google Sheets Query,我正在Google Sheets中进行二维查找,以在工作表的任何位置查找名称,并返回该名称所在行的第四列中的值。该名称可能出现在多个位置,我希望显示每个实例的结果,因此需要以数组形式输出 以下是我目前拥有的;有没有更优雅的方法 如果可能的话,我希望避免使用应用程序脚本(另一个用户问了类似的问题,这就是建议) 使用: …如果你能分享一份你的工作表的话,它可能会更短…它很有效!我需要花一点时间将其分解,以完全理解每个部分,但现在它就像一个魅力。谢谢@李 =iferror(if(E3 = "

我正在Google Sheets中进行二维查找,以在工作表的任何位置查找名称,并返回该名称所在行的第四列中的值。该名称可能出现在多个位置,我希望显示每个实例的结果,因此需要以数组形式输出

以下是我目前拥有的;有没有更优雅的方法

如果可能的话,我希望避免使用应用程序脚本(另一个用户问了类似的问题,这就是建议)

使用:


…如果你能分享一份你的工作表的话,它可能会更短…它很有效!我需要花一点时间将其分解,以完全理解每个部分,但现在它就像一个魅力。谢谢@李
=iferror(if(E3 = "", "", index(unique(query('TransposedT&O'!$A$1:$BB$70, "select D where
E contains '" & E3 & "' or
F contains '" & E3 & "' or
G contains '" & E3 & "' or
H contains '" & E3 & "' or
I contains '" & E3 & "' or
J contains '" & E3 & "' or
K contains '" & E3 & "' or
L contains '" & E3 & "' or
M contains '" & E3 & "' or
N contains '" & E3 & "' or
O contains '" & E3 & "' or
P contains '" & E3 & "' or
Q contains '" & E3 & "' or
R contains '" & E3 & "' or
S contains '" & E3 & "' or
T contains '" & E3 & "' or
U contains '" & E3 & "' or
V contains '" & E3 & "' or
Q contains '" & E3 & "' or
R contains '" & E3 & "' or
S contains '" & E3 & "' or
T contains '" & E3 & "' or
U contains '" & E3 & "' or
V contains '" & E3 & "' or
W contains '" & E3 & "' or
X contains '" & E3 & "' or
Y contains '" & E3 & "' or
Z contains '" & E3 & "' or
AA contains '" & E3 & "' or
AB contains '" & E3 & "' or
AC contains '" & E3 & "' or
AD contains '" & E3 & "' or
AE contains '" & E3 & "' or
AF contains '" & E3 & "' or
AG contains '" & E3 & "' or
AH contains '" & E3 & "' or
AI contains '" & E3 & "' or
AJ contains '" & E3 & "' or
AK contains '" & E3 & "' or
AL contains '" & E3 & "' or
AM contains '" & E3 & "' or
AN contains '" & E3 & "' or
AO contains '" & E3 & "' or
AP contains '" & E3 & "' or
AQ contains '" & E3 & "' or
AR contains '" & E3 & "' or
AS contains '" & E3 & "' or
AT contains '" & E3 & "' or
AU contains '" & E3 & "' or
AV contains '" & E3 & "' or
AQ contains '" & E3 & "' or
AR contains '" & E3 & "' or
AS contains '" & E3 & "' or
AT contains '" & E3 & "' or
AV contains '" & E3 & "' or
AW contains '" & E3 & "' or
AX contains '" & E3 & "' or
AY contains '" & E3 & "' or
AZ contains '" & E3 & "' or
BA contains '" & E3 & "' or
BB contains '" & E3 & "'"
, 0)), 1, 1)), "")
=ARRAYFORMULA(IFERROR(IF(E3="",, INDEX(UNIQUE(QUERY({'TransposedT&O'!$A$1:$BB$70}, 
 "select Col4 where "&TEXTJOIN(" or ", 1, "Col"&TRANSPOSE(COLUMN(E:BB))&
 " contains '"&E3&"'"), 0)), 1, 1)), ))