0

Could you help me with this: I need formula, which will get this result:

3/7+3
4/6+2
5/1+5

12/14+10

I know this:

=SUMPRODUCT(--LEFT(A1:A3,FIND("/",A1:A3)-1))&"/"&SUMPRODUCT(--REPLACE(A1:A3,1,FIND("/",A1:A3),0)

I don't know how to add another parameter with "+".

2 Answers 2

3

Please try:

=SUMPRODUCT(--LEFT(A1:A3,FIND("/",A1:A3)-1))&"/"&SUMPRODUCT(--MID(A1:A3,FIND("/",A1:A3)+1,FIND("+",A1:A3)-FIND("/",A1:A3)-1))&"+"&SUMPRODUCT(--MID(A1:A3,FIND("+",A1:A3)+1,1))
0
0

Ended with a big formula.

=CONCATENATE(SUMPRODUCT(--LEFT(A1:A3,SEARCH("/",A1:A3,1)-1)),"/",SUMPRODUCT(--MID(A1:A3,SEARCH("/",A1:A3,1)+1,SEARCH("+",A1:A3,SEARCH("/",A1:A3,1)+1)-SEARCH("/",A1:A3,1)-1)),"+",SUMPRODUCT(--RIGHT(A1:A3,LEN(A1:A3)-SEARCH("+",A1:A3,SEARCH("/",A1:A3,1)+1))))

1
  • Actually tried by using MID as you, but didn't get it for more than 1 digit in after /. Dec 5, 2013 at 8:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.