我正在尝试创建一个范围,在这种情况下,A2:H2是我进行搜索的标准,但是我不知道如何使它忽略空单元格。
=IFERROR(FILTER('Card Bank'!A2:H,
{'Card Bank'!A2&
'Card Bank'!B2&
'Card Bank'!C2&
'Card Bank'!D2&
'Card Bank'!E2&
'Card Bank'!F2&
'Card Bank'!G2&
'Card Bank'!H2} = A2&B2&C2&D2&E2&F2&G2&H2), "Error")
我希望它忽略空单元格,据我所知,它应该将空单元格转换为空格,然后将填充的单元格作为单个字符串输出,但它总是会出错。
答案 0 :(得分:1)
不确定您要做什么,但这就是它的语法:
=IFERROR(FILTER('Card Bank'!A2:H, {'Card Bank'!A2:A&
'Card Bank'!B2:B&
'Card Bank'!C2:C&
'Card Bank'!D2:D&
'Card Bank'!E2:E&
'Card Bank'!F2:F&
'Card Bank'!G2:G&
'Card Bank'!H2:H} = A2&B2&C2&D2&E2&F2&G2&H2), "Error")
其他可能性是:
=IFERROR(FILTER('Card Bank'!A2:H, {'Card Bank'!A2:A&
'Card Bank'!B2:B&
'Card Bank'!C2:C&
'Card Bank'!D2:D&
'Card Bank'!E2:E&
'Card Bank'!F2:F&
'Card Bank'!G2:G&
'Card Bank'!H2:H} = A2:A&
B2:B&
C2:C&
D2:D&
E2:E&
F2:F&
G2:G&
H2:H), "Error")
或:
=IFERROR(FILTER('Card Bank'!A2:H, {'Card Bank'!A2&
'Card Bank'!B2&
'Card Bank'!C2&
'Card Bank'!D2&
'Card Bank'!E2&
'Card Bank'!F2&
'Card Bank'!G2&
'Card Bank'!H2} = A2:A&
B2:B&
C2:C&
D2:D&
E2:E&
F2:F&
G2:G&
H2:H), "Error")
或:
=IFERROR(FILTER('Card Bank'!A2:H2, {'Card Bank'!A2&
'Card Bank'!B2&
'Card Bank'!C2&
'Card Bank'!D2&
'Card Bank'!E2&
'Card Bank'!F2&
'Card Bank'!G2&
'Card Bank'!H2} = A2&B2&C2&D2&E2&F2&G2&H2), "Error")