The summation of digits

Jan Kalop

Active Member
Joined
Aug 3, 2012
Messages
389
Having in A11 digit 1909 and entering in B11 formula "=SUM(VALUE(MID(A11,ROW($I$1:OFFSET($I$1,LEN(A11)-1,0)),1)))" with enter and shift, display in B11 digit 19


then entering in,C11 formula "=SUM(VALUE(MID(B11,ROW($I$1:OFFSET($I$1,LEN(B11)-1,0)),1)))" with enter and shift, display in C11 digit 10


then entering in,D11 formula "=SUM(VALUE(MID(C11,ROW($I$1:OFFSET($I$1,LEN(C11)-1,0)),1)))" with enter and shift, display in D11 digit 1


How can I get the end result form cell D11 in cell B11 with one compact formula calculating all those 3 calculations in one attempt.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hello,

You can test following Array Formula:

Code:
=SUM(VALUE(MID(A11,ROW(INDIRECT("1:"&LEN(A11))),1)))

HTH
 
Upvote 0
Summing digits of a number, non array

=SUMPRODUCT(--MID(A1,ROW(INDIRECT("1:" & LEN(A1))),1))
 
Last edited:
Upvote 0
Great, thanks a lot to all suggestions, but it seams that the first one suits me the best. Fantastic, thank you.
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,267
Members
448,558
Latest member
aivin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top