筛选A列数据,把连续数字提取到B,C两列;
1个回答
展开全部
B2=LEFT(I2&J2&K2&L2&M2,IFERROR(FIND(",",I2&J2&K2&L2&M2),10)-1)
C2=RIGHT(I2&J2&K2&L2&M2,LEN(I2&J2&K2&L2&M2)-IFERROR(FIND(",",I2&J2&K2&L2&M2),LEN(I2&J2&K2&L2&M2)))
D2=MIN(--MID($A2,ROW($1:$5),1))数组公式
E2=MIN(IF(--MID($A2,ROW($1:$5),1)>D2,--MID($A2,ROW($1:$5),1),11))数组公式向下向右复制
i2=IF(D2+1=E2,D2,"")
J2=IF(OR(E2+1=F2,E2-1=D2),IF(AND(I2<>"",D2+1<>E2),",","")&E2,"")向下向右复制
B2=I2&J2&K2&L2&M2
C2=IF(ISERROR(FIND(",",B2)),LEN(B2),FIND(",",B2)-1&LEN(B2)-FIND(",",B2))*1
红色区域与上面一样
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询