How to change indirect to vlookup to use in arrayformula iteration

问题描述 投票:0回答:1

我有以下内容:

=indirect("'Form Responses 1'!A"&G2)

在此工作表中,A 列有时间戳,G 列有行号。我需要像这样使用 arrayformula 迭代它:

=ArrayFormula(indirect("'Form Responses 1'!A"&G2:G))

然而,这没有用。我发现间接在 Arrayformula 中不起作用,我应该改用 vlookup,但我不知道如何让它工作或如何在 vlookup 中引用行。

有什么想法吗?谢谢。

google-sheets google-sheets-formula vlookup array-formulas
1个回答
0
投票

尝试使用 BYROW 来“逐行”迭代:

=BYROW(G2:G,LAMBDA(each,IF(each="","",Indirect("'Form Responses 1'!A"&each))))
© www.soinside.com 2019 - 2024. All rights reserved.