|
Re: summing numbers with in a cell
On Wed, 6 Jul 2005 11:57:49 -0500, the-charles
<the-charles.1rrcil_1120669560.9455@excelforum-nospam.com> wrote:
>
>in cell a1 i have 4099227911503, i know that if i add these numbers up,
>the sum would be 52. how do i write a formula that will do the same
>thing. i need to add the numbers with in the cell so that i can do a
>mod 10 to get the check digit. i am creating a data base for merging
>with envelopes and i need to put the planet code "a1" with a check
>digit
You may use this array formula:
=SUM(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))
To enter an array formula, after typing or pasting it into the formula bar,
hold down <ctrl><shift> while hitting <enter>. Excel will place braces {...}
around the formula.
--ron
|