+ Reply to Thread
Results 1 to 5 of 5

Adding multiple numbers within a single cell

Hybrid View

  1. #1
    Registered User
    Join Date
    01-29-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Red face Adding multiple numbers within a single cell

    I have a single cell C68 that has the entry 12/34/56. I want cell C69 to add the 3 numbers and give the result, in this case 102 (12 + 34 + 56). What formula do I use?

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Adding multiple numbers within a single cell

    Try this in C69:
    =LEFT(SUBSTITUTE(C68,"/",REPT(" ",100)),100)+MID(SUBSTITUTE(C68,"/",REPT(" ",100)),100,100)+RIGHT(SUBSTITUTE(C68,"/",REPT(" ",100)),100)
    Hope this help.
    Quang PT

  3. #3
    Registered User
    Join Date
    01-29-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Adding multiple numbers within a single cell

    This works perfectly when I have 3 numbers in a cell. Sometimes I have 4 or 2 numbers in a cell. Is there a way the formula would automatically adjust to that?

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Adding multiple numbers within a single cell

    You could also use a UDF...

    Add this to a new module in your workbook:
    Function Add(Rng As Range) As Variant
        Add = Evaluate(Application.Substitute(Rng, "/", "+"))
    End Function
    Then, in cell C69 type: =ADD(C68)

    - Moo
    Last edited by Moo the Dog; 01-29-2013 at 01:41 PM. Reason: h/t to Andrew Poulsom

  5. #5
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Adding multiple numbers within a single cell

    Did you try the proposed solution I posted? It will work no matter how many numbers are in the cell.

    - Moo
    Last edited by Moo the Dog; 01-29-2013 at 02:32 PM.

+ 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