[英]Multiple ArrayFormula in the same formula in Google Sheets
Can ArrayForumla be used multiple times in a single formula? ArrayForumla 可以在一个公式中多次使用吗?
=ARRAYFORMULA(INDEX('Form Responses 2':A2,AN2:ARRAYFORMULA(MAX(COLUMN('Form Responses 2':K2:AN2)*(--('Form Responses 2'!K2:AN2<>""))))))
I want the formula after ArrayFormula to be applied to all new rows when data is added or captured.我希望在添加或捕获数据时将 ArrayFormula 之后的公式应用于所有新行。
Currently, when I have tried, it's not giving me any output or error.目前,当我尝试过时,它没有给我任何 output 或错误。
So I later found the solution ie,所以我后来找到了解决方案,即
=ARRAYFORMULA(IF(LEN(J2:J), VLOOKUP(J2:J,QUERY(SPLIT(FLATTEN('Form Responses 2'!K1:AN1&"_"&'Form Responses 2'!K2:AN),"_"), "Where Col2 <>''", 0), 2, 0),))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.