简体   繁体   English

Google表格中同一公式中的多个ArrayFormula

[英]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.

相关问题 Google表格公式-适用于每一行的arrayformula - Google sheets formula - arrayformula to apply to each row arrayformula在Google脚本中填充公式 - arrayformula to populate formula in google script 将自定义公式与 arrayformula 一起用于 Google 表格中带有应用脚本的两列城市之间的距离 - Use a custom formula with arrayformula for distances between two columns of cities in Google Sheets with App Scripts INDEX-MATCH 公式在 Google 表格中返回相同的值 - INDEX-MATCH formula returns the same value in Google Sheets 同一单元格中的动态超链接和文本与谷歌表格中的公式 - Dynamic hyperlink & Text in the same cell with a formula in google sheets 用于对多个 Google 表格中的单个单元格求和的 JS 公式故障排除 - Troubleshooting JS formula for summing a single cell across multiple Google Sheets 在Google表格中的同一功能中添加多个范围 - Add multiple ranges in same function in google sheets 对 Google 表格中多个工作表中的相同单元格求和 - Sum the same cell from multiple sheets in Google Sheets 在 Google 表格的多个表格中运行相同的删除行脚本 - Run Same Delete Row Script in Multiple Sheets in Google Sheets 如何在谷歌工作表的工作表中清除不同工作表上的相同多列 - How to clear same multiple columns on different sheets in worksheet in google sheets
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM