mgirvin
Well-known Member
- Joined
- Dec 15, 2005
- Messages
- 1,236
- Office Version
- 365
- Platform
- Windows
Dear Smartest Excelers In The World,
I have 111.12 in cell A1, and there could be ending or leading spaces.
I want to add the digits like this1+1+1+1+2 to get 6
I have used this formula (entering it with the key strokes Ctrl + Shift + Enter):
=SUM(MID(TRIM(SUBSTITUTE(A1,".","")),ROW(INDIRECT("1:"&LEN(TRIM(SUBSTITUTE(A1,".",""))))),1)+0)
Is there a shorter formula or am I on the right rack?
I have 111.12 in cell A1, and there could be ending or leading spaces.
I want to add the digits like this1+1+1+1+2 to get 6
I have used this formula (entering it with the key strokes Ctrl + Shift + Enter):
=SUM(MID(TRIM(SUBSTITUTE(A1,".","")),ROW(INDIRECT("1:"&LEN(TRIM(SUBSTITUTE(A1,".",""))))),1)+0)
Is there a shorter formula or am I on the right rack?