Ricky Chau
Ricky Chau

Reputation: 3

Excel nesting formula with SUM

I am trying to have a cell that has the sum of all the value in the row. But my value cell is nested with Date ; Value, in which I used the Right function along with LEN and SEARCH to single out the value. My question here is that is it possible to have some type of function for me to add it all together, instead of having to repeat this until AQ, like how I am having it in the attached picture?

Thanks in advance!

Formula and cells

Upvotes: 0

Views: 340

Answers (2)

bosco_yip
bosco_yip

Reputation: 3802

Or using Sumproduct+Replace function

In C2, enter formula :

=SUMPRODUCT(0+REPLACE(D2:E2,1,FIND(";",D2:E2),""))

enter image description here

Upvotes: 1

BigBen
BigBen

Reputation: 49998

Use SUMPRODUCT:

=SUMPRODUCT(--RIGHT(D2:E2,LEN(D2:E2)-SEARCH(";",D2:E2)))

enter image description here

You can also just use SUM, which depending on your version of Excel may need to be confirmed with Ctrl+Shift+Enter:

=SUM(--RIGHT(D2:E2,LEN(D2:E2)-SEARCH(";",D2:E2)))

enter image description here

Upvotes: 1

Related Questions