» 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:
- Special Edition Using Microsoft Outlook 2002
- Financial Peace: Revisited
- Flipping Properties: Generate Instant Cash Profits in Real Estate
- Essentials of Investments with Standard & Poor's Educational Version of Market Insight + PowerWeb + Stock Trak Coupon
- Microsoft Access 2002 for Dummies
- Real Estate Loopholes: Secrets of Successful Real Estate Investing
No comments have been submitted.

