Sum of 3 numbers in same cell using a reference formula as well

前端 未结 2 1090
我寻月下人不归
我寻月下人不归 2020-12-22 02:29

IN B1 I have: 3,4,5 IN B2 I have the sum of these numbers 12

I would like to add these together and the sum to appear in B3

So, for B3, I need to tell excel

2条回答
  •  醉酒成梦
    2020-12-22 02:40

    Assuming you always have three numbers separated by a coma.

    =LEFT(B1,FIND(",",B1)-1) + MID(B1,FIND(",",B1)+1,FIND(",",B1,FIND(",",B1)+1)-FIND(",",B1)-1) + MID(B1,FIND(",",B1,FIND(",",B1,FIND(",",B1)+1))+1,100)
    

    If I break down the formula it's a bit simpler to see what is going on.

    1st number:

    LEFT(B1,FIND(",",B1)-1)
    

    2nd number:

    MID(B1,FIND(",",B1)+1,FIND(",",B1,FIND(",",B1)+1)-FIND(",",B1)-1)
    

    3rd number:

    MID(B1,FIND(",",B1,FIND(",",B1,FIND(",",B1)+1))+1,100)
    

提交回复
热议问题