【问题标题】:Combining values ​based on conditions, using an Arrayformula | Google Sheets根据条件组合值,使用 Arrayformula |谷歌表格
【发布时间】:2021-03-11 21:04:12
【问题描述】:

使用数组函数将选定的值合并为一个的函数应该是什么样的? 如果Iddata 相同,我想要合并Unique Nr 的功能。

https://docs.google.com/spreadsheets/d/1x1yR2oc2VxUFuijEq-bhLKGgHscnIzDVS0cguIslajk/edit?usp=sharing

【问题讨论】:

    标签: google-sheets array-formulas textjoin


    【解决方案1】:

    尝试:

    =ARRAYFORMULA(REGEXREPLACE(TRIM(SPLIT(FLATTEN(
     QUERY(QUERY({A2:A&","\ B2:B&" "&C2:C&"♦"}; 
     "select max(Col1) 
      where Col1 <> ',' 
      group by Col1 
      pivot Col2");; 9^9)); "♦")); ",$"; ))
    

    【讨论】:

    • 谢谢,这就是我想要的。是否可以重做以使结果没有第一列(F)? - 只有 Unique_nr
    • @AdOne 确定:=ARRAYFORMULA(INDEX(REGEXREPLACE(TRIM(SPLIT(FLATTEN( QUERY(QUERY({A2:A&amp;","\ B2:B&amp;" "&amp;C2:C&amp;"♦"}; "select max(Col1) where Col1 &lt;&gt; ',' group by Col1 pivot Col2");; 9^9)); "♦")); ",$"; );;2))
    • 也许您知道如何仅将整个函数应用于 E2: E = TRUE 我尝试添加过滤器或 if 函数但无法正常工作的记录
    猜你喜欢
    • 2020-05-19
    • 1970-01-01
    • 1970-01-01
    • 2014-12-18
    • 2021-11-15
    • 2017-11-12
    • 2020-11-07
    • 2021-03-29
    • 2021-04-19
    相关资源
    最近更新 更多