简体   繁体   English

Arrayformula - 从具有相同键 ID 的行中收集所有文本

[英]Arrayformula - Gather all text from rows with same key id

I am trying to create an arrayformula that will look at a "key id" column and gather all text from another column from all rows with the same "key id":我正在尝试创建一个数组公式,它将查看“key id”列并从具有相同“key id”的所有行的另一列中收集所有文本:

-- col A / col B / col C -- col A / col B / col C

1- KEY ID / NOTE / COMPILED NOTES 1- 关键 ID / 注释 / 编译注释


2- A1BZ / TACO / TACO FROG 2- A1BZ / TACO / TACO FROG

3- T212 / CORN / CORN APPLE 3- T212 / 玉米 / 玉米苹果

4- T212 / APPLE / CORN APPLE 4- T212 / 苹果 / 玉米苹果

5- CD41 / DOG / DOG 5- CD41 / 狗 / 狗

6- A1BZ / FROG / TACO FROG 6- A1BZ / 青蛙 / 塔可青蛙

I am using it with appsheet as a back end formula and as the sheet is active (having rows removed and added I need this to be an arrayformula. I thought some type of JOIN() with an IF statement. But I've note come up with anything that works. I can make it work if it's not an array formula with a FILTER().我将它与 appsheet 一起用作后端公式,并且由于工作表处于活动状态(删除并添加了行,我需要这是一个数组公式。我认为某种类型的 JOIN() 带有 IF 语句。但我注意到了用任何可行的方法。如果它不是带有 FILTER() 的数组公式,我可以让它工作。

Thoughts?想法?

See my comment and questions above.请参阅我上面的评论和问题。 However, if the answer to my parenthetical question there is YES, you can delete everything in Col-C (including the header) and place the following formula in cell C1:但是,如果我的括号问题的答案是“是”,您可以删除 Col-C 中的所有内容(包括标题)并将以下公式放在单元格 C1 中:

=ArrayFormula({"COMPILED NOTES"; IF(A2:A="",,VLOOKUP(A2:A,TRIM(SPLIT(FLATTEN(QUERY(QUERY({A2:A&"~",B2:B},"Select MAX(Col2) WHERE Col2 Is Not Null GROUP BY Col2 PIVOT Col1"),,9^9)),"~")),2,FALSE))})

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 GoogleSheet Arrayformula 不适用于所有行 - GoogleSheet Arrayformula not for all rows 所有先前行的ArrayFormula和PRODUCT? - ArrayFormula and PRODUCT of all previous rows? 如果同月 ArrayFormula,则将 ID# 增加 1 - Increment ID# by 1 if Same month ArrayFormula google sheet - 使用 ARRAYFORMULA 对以上所有行求和 - google sheets - Sum all above rows with ARRAYFORMULA 使用 ARRAYFORMULA 从查找表中查找源表中的所有匹配行/值 - use ARRAYFORMULA to find all matching rows/values in a source table from a lookup table 如何将多行数据组合成一行,然后使用数组公式在另一个数据集之间添加文本? - How to combine multiple rows of data into one row and then add text in between from another data set using an arrayformula? 在同一单元格中从多个工作表返回ArrayFormula - Returning ArrayFormula from multiple sheets, in the same cell 正则表达式从列表中提取所有组作为数组公式 - regexextract all groups from list as arrayformula 将 FILTER 的 SUM 应用于工作表中的所有行(如使用 ARRAYFORMULA) - Applying the SUM of a FILTER to all rows in the sheet (like using ARRAYFORMULA) 使用索引+匹配时,Arrayformula 未填充所有其他行 - Arrayformula not populating all other rows when using index+match
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM