Hello
Assuming that the original number is in column B
Enter this formula in a cell of the same row:
=CNUM(MID($B,1,1))+CNUM(MID($B,2,1))+CNUM(MID($B,3,1))+IF(ISERROR(CNUM(MID($B,4, 1))),0,CNUM(MID($B,4,1)))+IF(ISERROR(CNUM(MID($B,5,1))),0,CNUM(MID($B,5,1)))+IF( ISERROR(CNUM(MID($B,6,1))),0,CNUM(MID($B,6,1)))+IF(ISERROR(CNUM(MID($B,7,1))),0, CNUM(MID($B,7,1)))+IF(ISERROR(CNUM(MID($B,7,1))),0,CNUM(MID($B,8,1)))+IF(ISERROR (CNUM(MID($B,9,1))),0,CNUM(MID($B,9,1)))
It assumes that the number contain at least 3 digits and no more than 9 ones.
It is easy to extand to more digits.
Just paste
+IF(ISERROR(CNUM(MID($B,10,1))),0,CNUM(MID($B,10,1)))
then
+IF(ISERROR(CNUM(MID($B,11,1))),0,CNUM(MID($B,11,1)))
at the very end of the formula.
Yvan KOENIG (from FRANCE vendredi 21 décembre 2007 13:47:46)