[英]Transpose data separated with ';' in Excel or Google Sheets
I have my data like this:我有这样的数据:
Main ID SUB ID Info
1A 1A1 24572-16
1A 1A1 26553-17
1A 1A2 24572-16
I would like to return like this: IF 'info' have the same 'SUB ID' and 'MAIN ID'我想这样返回:如果“信息”具有相同的“子 ID”和“主 ID”
return like this:像这样返回:
Main ID SUB ID Info
1A 1A1 24572-16; 26553-17
1A 1A2 24572-16
Is it something possible?有可能吗?
If you want output result in separate cells then use below formula.如果您希望 output 产生单独的单元格,请使用以下公式。
=IFERROR(INDEX($C$2:$C$4,AGGREGATE(15,6,ROW($1:$3)/(($A$2:$A$4=$E2)*($B$2:$B$4=$F2)),COLUMN(A$1))),"")
If you want to get output result in same cell then you have to use TEXTJOIN() function.如果你想在同一个单元格中得到 output 结果,那么你必须使用TEXTJOIN() function。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.