I understand you already have a regular formula solution, but for others it might be useful to know one possible regular formula:
=SUM(IFERROR(--(0&MID(D4,ROW(INDIRECT("1:"&LEN(D4))),1)),0))
This is an array formula which must be committed by holding down Ctrl and Shift before pressing Enter.
|