Reputation: 135
I have two cells with sum formula that is cell A = "=10+20" & cell B = "=3+20". I want to concatenate their formula in cell C as ="10+20+3+20". And I don't want to convert these cells into value. Requesting the teams helps please
Upvotes: 2
Views: 155
Reputation: 22473
Try:
=CONCATENATE(FORMULATEXT(A1),"+",RIGHT(FORMULATEXT(B1),LEN(FORMULATEXT(B1))-1))
Upvotes: 2
Reputation: 9894
=A1&"+"&right(B1,len(B1)-1)
The & is short form for concatenate. you need to add the + in between the contents of the two cells. It will display your formulas as a string. The right function will strip off the = sign from the B1 formula.
If your formulas in A and B are actually formulas displaying values as in the image below, then you want to use the following formula. It is set up for row 2. And hats off to Shash for giving light to this option
=FORMULATEXT(A2)&"+"&RIGHT(FORMULATEXT(B2),LEN(FORMULATEXT(B2))-1)
Proof of Concept
Upvotes: 1