Sum of digits in a number
Bob
=SUMPRODUCT(--MID($A$1,ROW(INDIRECT("1:" & LEN($A$1))),1))
I forget who originally posted this, but well done!
Gord Dibben MS Excel MVP
On Mon, 7 Jan 2008 16:17:02 -0800, Bob Ptacek
wrote:
Example: a number 1234 would sum individual dighits to a value of 10.
I thought there would be a function in Excel that would do that but can't
seem to find it. I don't want write a macro with MID functions to do the
summing. Is there such a function in Excel?
Thank you in advance for any help
|