FreakyGirl
Member
Hello.
I would like to add anywhere from 1 to 13 numbers in a single cell together.
ie: 23456789
i tried using
but thats only allowing me 9 numbers & the result isnt right.
im also not sure how to handle the '10' because it needs to be considered as 10 not as 1 & then 0 as another digit.
additionally, the last 4 numbers (when used) woudl be 1 1 1 1 so if all 13 digits were present in the cell it would say 2345678910111 & add up to 58
they are listed in the cell I11 in number order up to the last 4 digits like below.
2 3 6 7 9 1 1
3 4 5 6 8 9
2 8 10 1
is there a better way?
Thanks,
FreakyGirl
I would like to add anywhere from 1 to 13 numbers in a single cell together.
ie: 23456789
i tried using
Code:
=IF(LEN(I11)=1,I11,IF(LEN(I11=2),SUM(LEFT(I11),MID(I11,2,1),IF(LEN(I11)=3,SUM(LEFT(I11),MID(I11,2,1),MID(I11,3,1)),IF(LEN(I11)=4,SUM(LEFT(I11),MID(I11,2,1),MID(I11,3,1),MID(I11,4,1)),IF(LEN(I11)=5,SUM(LEFT(I11),MID(I11,2,1),MID(I11,3,1),MID(I11,4,1),MID(I11,5,1)),IF(LEN(I11)=6,SUM(LEFT(I11),MID(I11,2,1),MID(I11,3,1),MID(I11,4,1),MID(I11,5,1),MID(I11,6,1)),IF(LEN(I11)=7,SUM(LEFT(I11),MID(I11,2,1),MID(I11,3,1),MID(I11,4,1),MID(I11,5,1),MID(I11,6,1),MID(I11,7,1)),IF(LEN(I11)=8,SUM(LEFT(I11),MID(I11,2,1),MID(I11,3,1),MID(I11,4,1),MID(I11,5,1),MID(I11,6,1),MID(I11,7,1),MID(I11,8,1)),SUM(LEFT(I11),MID(I11,2,1),MID(I11,3,1),MID(I11,4,1),MID(I11,5,1),MID(I11,6,1),MID(I11,7,1),MID(I11,8,1),MID(I11,9,1)))))))))))
but thats only allowing me 9 numbers & the result isnt right.
im also not sure how to handle the '10' because it needs to be considered as 10 not as 1 & then 0 as another digit.
additionally, the last 4 numbers (when used) woudl be 1 1 1 1 so if all 13 digits were present in the cell it would say 2345678910111 & add up to 58
they are listed in the cell I11 in number order up to the last 4 digits like below.
2 3 6 7 9 1 1
3 4 5 6 8 9
2 8 10 1
is there a better way?
Thanks,
FreakyGirl