求EXCEL同一单元格相加的值分别显示公式?
A1值是11+22+33,每个数*1000*1.08/172*1.4+60,要求B1取整数后输出显示结果:157+253+350...
A1值是11+22+33,每个数*1000*1.08/172*1.4+60,要求B1取整数后输出显示结果:157+253+350
展开
1个回答
展开全部
B1公式:
=ROUND(TRIM(LEFT(SUBSTITUTE(A1,"+",REPT(" ",LEN(A1))),LEN(A1)))*1000*1.08/172*1.4+60,0)&"+"&ROUND(TRIM(MID(SUBSTITUTE(A1,"+",REPT(" ",LEN(A1))),LEN(A1)+1,LEN(A1)))*1000*1.08/172*1.4+60,0)&"+"&ROUND(TRIM(MID(SUBSTITUTE(A1,"+",REPT(" ",LEN(A1))),2*LEN(A1)+1,LEN(A1)))*1000*1.08/172*1.4+60,0)
或:
=ROUND(LEFT(A1,FIND("+",A1)-1)*1000*1.08/172*1.4+60,0)&"+"&ROUND(MID(A1,FIND("+",A1)+1,FIND("+",A1,FIND("+",A1)+1)-FIND("+",A1)-1)*1000*1.08/172*1.4+60,0)&"+"&ROUND(RIGHT(A1,LEN(A1)-FIND("+",A1,FIND("+",A1)+1))*1000*1.08/172*1.4+60,0)
=ROUND(TRIM(LEFT(SUBSTITUTE(A1,"+",REPT(" ",LEN(A1))),LEN(A1)))*1000*1.08/172*1.4+60,0)&"+"&ROUND(TRIM(MID(SUBSTITUTE(A1,"+",REPT(" ",LEN(A1))),LEN(A1)+1,LEN(A1)))*1000*1.08/172*1.4+60,0)&"+"&ROUND(TRIM(MID(SUBSTITUTE(A1,"+",REPT(" ",LEN(A1))),2*LEN(A1)+1,LEN(A1)))*1000*1.08/172*1.4+60,0)
或:
=ROUND(LEFT(A1,FIND("+",A1)-1)*1000*1.08/172*1.4+60,0)&"+"&ROUND(MID(A1,FIND("+",A1)+1,FIND("+",A1,FIND("+",A1)+1)-FIND("+",A1)-1)*1000*1.08/172*1.4+60,0)&"+"&ROUND(RIGHT(A1,LEN(A1)-FIND("+",A1,FIND("+",A1)+1))*1000*1.08/172*1.4+60,0)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询