使用 arrayformula() 就像继续嵌套 if()

Using arrayformula() like continue with nested if()

我的目标是在相邻列中存在数据时填写公式。

这是我的原始公式:

=index(lookups!$M:$M30,match($A3,lookups!$N:$N30,0))

此公式有效,因为结果按预期返回。

然后我尝试了这个,希望它能复制下来:

=index(lookups!$M:$M30,match($A3:A,lookups!$N:$N30,0))

这导致了#N/A "Did not find value in match"

然后我阅读了 this post 并查看了第二个投票最多的答案并尝试将我的公式编辑为:

=arrayFormula(index(lookups!$M:$M30,match($A3:A,lookups!$N:$N30,0)))

这次公式如我所愿地复制了下来,但是出现#VALUE 错误"Function IF parameter 1 expects boolean values. But 'ADT- Alaska Travel Vendor Activities (Search)' is a text and cannot be coerced to a boolean."

当数据存在于 A 列中时,如何让工作表将索引 (Match()) 一直向下复制?

看看这个公式是否提供了所需的输出?

=ARRAYFORMULA(iferror(vlookup(A3:A, {lookups!$B:$B, lookups!$A:$A}, 2, 0)))