Re: summing numbers with in a cell
- From: dominicb <dominicb.1rrfal_1120673152.9626@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 6 Jul 2005 12:27:04 -0500
Good evening the-charles
This function will add up all the numbers in a cell, provided it is
applied to a numeric cell. Once pasted into your VBE use it like you
would a formula, thus:
=Adder(A1) will perform the operation on cell A1.
Function Adder(InThis)
d = 0
a = Len(InThis)
For b = 1 To a
c = Mid(InThis, b, 1)
d = d + c
Next b
Adder = d
End Function
HTH
DominicB
--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=18932
View this thread: http://www.excelforum.com/showthread.php?threadid=384945
.
- References:
- summing numbers with in a cell
- From: the-charles
- Re: summing numbers with in a cell
- From: swatsp0p
- Re: summing numbers with in a cell
- From: the-charles
- summing numbers with in a cell
- Prev by Date: Re: Printing same table on reverse side of all pages.
- Next by Date: Re: How can I convert a date format to an ISO week format (in EXCEL)?
- Previous by thread: Re: summing numbers with in a cell
- Next by thread: Re: summing numbers with in a cell
- Index(es):
Relevant Pages
|