搜索单元格并对不同名称进行排序和求和

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

请告诉我 Google 表格是否可以对用“|”分隔的数据进行排序然后用乘数计算所有唯一值的总和。乘数用“#”指定。我正在发送输入数据的示例照片以及我希望收到的内容。 enter image description here

我可以使用“SPLIT”函数分隔这些值,但我仍然有前面带有乘数的名称。

enter image description here

google-sheets google-sheets-formula
1个回答
2
投票

我相信有人会给你更好的解决方案,但是:

=let(ars,arrayformula(split(tocol((SPLIT(A1:A3,"|")),3),"#")),byrow(unique(choosecols(ars,2)),lambda(uq,HSTACK(sumproduct((uq=choosecols(ars,2))*choosecols(ars,1)),uq))))

结果:

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.