您的位置:首页 >知识精选 >正文

excel字符串拼接单元格(excel字符串拼接)

摘要 关于excel字符串拼接单元格,excel字符串拼接不少朋友还不清楚,今天小二来为大家解答以上的问题,现在让我们一起来看看吧!1、设数据如图:

关于excel字符串拼接单元格,excel字符串拼接不少朋友还不清楚,今天小二来为大家解答以上的问题,现在让我们一起来看看吧!

1、设数据如图:将公式 =IF(B2=B1,"",B2) 复制后粘贴到"C2"单元格;将公式 =IF(C2="","",IF(SUM(C2:C8)=C2,A2&","&A3&","&A4&","&A5&","&A6&","&A7&","&A8,IF(SUM(C2:C7)=C2,A2&","&A3&","&A4&","&A5&","&A6&","&A7,IF(SUM(C2:C6)=C2,A2&","&A3&","&A4&","&A5&","&A6,IF(SUM(C2:C5)=C2,A2&","&A3&","&A4&","&A5,IF(SUM(C2:C4)=C2,A2&","&A3&","&A4,IF(SUM(C2:C3)=C2,A2&","&A3,A2))))))) 复制后粘贴到"D2"单元格,将"C2:D2"二个单元格选中,对准"D2"单元格右下角,光标成"+"状时双击(或拖下去),效果如图:注意:一、用此方法必须对"B"列排序;二、如果同一分数从数超过7人,可将公式 =IF(C2="","",IF(SUM(C2:C14)=C2,D2&","&A9&","&A10&","&A11&","&A12&","&A13&","&A14,IF(SUM(C2:C13)=C2,D2&","&A9&","&A10&","&A11&","&A12&","&A13,IF(SUM(C2:C12)=C2,D2&","&A9&","&A10&","&A11&","&A12,IF(SUM(C2:C114)=C2,D2&","&A9&","&A10&","&A11,IF(SUM(C2:C10)=C2,D2&","&A9&","&A10,IF(SUM(C2:C9)=C2,D2&","&A9,"")))))))复制后粘贴到"E2"单元格,将公式双击下去,如图:。

本文到此分享完毕,希望对你有所帮助。

版权声明:本文由用户上传,如有侵权请联系删除!