Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-06-2005, 01:09 PM
the-charles the-charles is offline
Registered User
 
Join Date: 06 Jul 2005
Posts: 2
the-charles is becoming part of the community
summing numbers with in a cell

Please Register to Remove these Ads

i need to know how to sum the numbers with in a cell.
Reply With Quote
  #2  
Old 07-06-2005, 01:39 PM
swatsp0p swatsp0p is offline
Forum Guru
 
Join Date: 07 Oct 2004
Location: Minnesota, USA
Posts: 1,537
swatsp0p is becoming part of the community
Send a message via MSN to swatsp0p
a cell can contain only one number. if you want to sum the values of multiple cells, use the SUM function, e.g.

=SUM(A1,B1,A3,D5)

If this is not what you are looking for, please post back with more details (examples of what you are trying to add together)

Bruce
__________________
Bruce
The older I get, the better I used to be.
Minneapolis, MN USA
Reply With Quote
  #3  
Old 07-06-2005, 01:57 PM
the-charles the-charles is offline
Registered User
 
Join Date: 06 Jul 2005
Posts: 2
the-charles is becoming part of the community
in cell a1 i have 4099227911503, i know that if i add these numbers up, the sum would be 52. how do i write a formula that will do the same thing. i need to add the numbers with in the cell so that i can do a mod 10 to get the check digit. i am creating a data base for merging with envelopes and i need to put the planet code "a1" with a check digit
Reply With Quote
  #4  
Old 07-06-2005, 02:27 PM
dominicb's Avatar
dominicb dominicb is offline
Forum Moderator
 
Join Date: 25 Jan 2005
Location: Lancashire, England
MS Office Version:MS Office 2000, 2003 & 2007
Posts: 3,241
dominicb has an addiction to Excel
Smile

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
Reply With Quote
  #5  
Old 07-06-2005, 03:05 PM
DNA
Guest
 
Posts: n/a
Re: summing numbers with in a cell

Do you mean within a series of cells, like A1 thru A60? If so, using this
example, in let's say A62 place @SUM(A1:A60).

HTH

Reply With Quote
  #6  
Old 07-06-2005, 04:05 PM
Ron Rosenfeld
Guest
 
Posts: n/a
Re: summing numbers with in a cell

On Wed, 6 Jul 2005 11:57:49 -0500, the-charles
<the-charles.1rrcil_1120669560.9455@excelforum-nospam.com> wrote:

>
>in cell a1 i have 4099227911503, i know that if i add these numbers up,
>the sum would be 52. how do i write a formula that will do the same
>thing. i need to add the numbers with in the cell so that i can do a
>mod 10 to get the check digit. i am creating a data base for merging
>with envelopes and i need to put the planet code "a1" with a check
>digit


You may use this array formula:

=SUM(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))

To enter an array formula, after typing or pasting it into the formula bar,
hold down <ctrl><shift> while hitting <enter>. Excel will place braces {...}
around the formula.


--ron
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump