» Sum the digits numbers in a cell using custom VBA function in Microsoft Excel
CATEGORY - Custom Functions in VBA , Custom Functions
VERSION - All Microsoft Excel Versions
Function SumDigits(Number)
Dim i As Integer
For i = 1 To Len(Number)
SumDigits = SumDigits + Val(Mid(Number, i, 1))
Next i
End Function
To test the function:
Book Store:
Recommended Books:
- Cashflow Quadrant: Rich Dad's Guide to Financial Freedom
- Treason: Liberal Treachery from the Cold War to the War on Terrorism
- Fish! A Remarkable Way to Boost Morale and Improve Results
- Mastering Excel 2000 (for beginner)
- The Essential 55: An Award-Winning Educator's Rules for Discovering the Successful Student in Every Child
- Real Estate Finance and Investments (Real Estate Finance and Investments, 11th Ed)
No comments have been submitted.

