Summing individual digits in a cell

R

rttaksali

Hi there,

I want a formula to add the digits of a cell e.g. 1234, the total
would be 10, tried this forumla
'SUM(1*MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1))' and resulted in answer
'1'.

Please, help, i am in urgent need.

Thanks

Rashi
 
C

Chip Pearson

Rashi,

The formula you refer to is an array formula, so you *must* press CTRL
SHIFT ENTER rather than just ENTER when you first enter the formula
and whenever you edit it later. If you do this correctly, Excel will
display the formula enclosed in curly braces { }. For lots more
information about array formulas, see
http://www.cpearson.com/Excel/ArrayFormulas.aspx

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
The San Diego Project Group, LLC
(email is on the web site)
USA Central Daylight Time (-5:00 GMT)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top