excel连续多行相同内容合并为一行,仅保留一个公式?

2024-11-24 01:03:20
推荐回答(1个)
回答1:

F2公式为:

=B2&IF(C2<>B2,C2,"")&IF(COUNTIF(B2:C2,D2)=0,D2,"")&IF(COUNTIF(B2:D2,E2)=0,E2,"")

下拉


示例: