» 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:
- The 11 Immutable Laws of Internet Branding
- Microsoft Excel Version 2002 Step by Step
- Cashflow Quadrant: Rich Dad's Guide to Financial Freedom
- Special Edition Using Microsoft Office XP
- The Fall of Advertising and the Rise of PR
- Rich Dad's Guide to Investing: What the Rich Invest in, That the Poor and the Middle Class Do Not!
No comments have been submitted.

