If I have a cell with the number 123456789 in cell A1 I want to “add/count” the total/sum into another cell to show that (cell A1 is1+2+3+4+5+6+7+8+9 (cell B1 is
= 45
HELP! Please...![]()
If I have a cell with the number 123456789 in cell A1 I want to “add/count” the total/sum into another cell to show that (cell A1 is1+2+3+4+5+6+7+8+9 (cell B1 is
= 45
HELP! Please...![]()
Try this array formula. Enter with Ctrl + Shift + enter
VBA Noob=SUM(VALUE(MID(A1,ROW(A1:OFFSET(A1,LEN(A1)-1,0)),1)))
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Try:
Confirmed with CTRL+SHIFT+ENTER not just ENTER.![]()
=SUM(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)+0)
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Or non array
VBA Noob=SUMPRODUCT(0+(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))
problem is thats ok if only single digits
but that could easily be 12+34+5+678+9 or any other combimation.
but for 9 single digits
will work but i wonder if there's a cleaner way![]()
=MID(A1,1,1)+MID(A1,2,1)+MID(A1,3,1)+MID(A1,4,1)+MID(A1,5,1)+MID(A1,6,1)+MID(A1,7,1)+MID(A1,8,1)+MID(A1,9,1)
ah looking upwards there is!
My goodness you guys are great! Thank you so very much for the help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks