+ Reply to Thread
Results 1 to 9 of 9

Formula for adding mutiple numbers in one cell

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    qld, australia
    MS-Off Ver
    Excel 2012
    Posts
    4

    Formula for adding mutiple numbers in one cell

    Hi, I have mutiple numbers in one cell that I would like to be added together into the column beside it.
    eg H32
    24.00 12.00 24.00 12.00 12.00

    they all seem to be seperated by either 6 or 7 spaces.

    Can someone please help me out with a formula for this?

    Thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Formula for adding mutiple numbers in one cell

    Hi and welcome to the forum

    I would suggest that you use text-to-columns to 1st break out the numbers into seperate columns, and then add up the row
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-21-2013
    Location
    qld, australia
    MS-Off Ver
    Excel 2012
    Posts
    4

    Re: Formula for adding mutiple numbers in one cell

    Thank you, I had already thought of that, but this will be a weekly task and I was trying to simplify it as there will already be a lot of data entry in extra columns. So thats why I wanted a formula, is there any way to create a formula that adds multiple numbers in one cell separated by multiple spaces?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Formula for adding mutiple numbers in one cell

    will the format ALWAYS be....
    24.00 12.00 24.00 12.00 12.00?

    ie 2 numbers, period, 2 numbers, space...repeat

  5. #5
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Formula for adding mutiple numbers in one cell

    See the attached file
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-21-2013
    Location
    qld, australia
    MS-Off Ver
    Excel 2012
    Posts
    4

    Re: Formula for adding mutiple numbers in one cell

    Pretty much, example of a few lines would be
    18.00 9.00
    1.00 1.00
    4.00 1.00
    12.00 24.00 12.00
    24.00 12.00 24.00 12.00 12.00
    But it seems the amount of spaces varies on the amount of numbers in that line. eg cells with 3 or 4 numbers have 6 spaces and a cell with 2 numbers has 7 spaces if that makes any difference?

  7. #7
    Registered User
    Join Date
    03-21-2013
    Location
    qld, australia
    MS-Off Ver
    Excel 2012
    Posts
    4

    Re: Formula for adding mutiple numbers in one cell

    Yep that is awesome, thank you very much!

  8. #8
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Formula for adding mutiple numbers in one cell

    You're Welcome!

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula for adding mutiple numbers in one cell

    Assuming your data is in the range A2:A6.

    Enter this array formula** in B2 and copy down as needed:

    =SUM(IF(MID(" "&A2,COLUMN(A2:CV2),1)=" ",--(0&MID(A2,COLUMN(A2:CV2),FIND(" ",A2&" ",COLUMN(A2:CV2))-COLUMN(A2:CV2)))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Assuming the total numbers of characters in a cell will be <=100.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1