+ Reply to Thread
Results 1 to 8 of 8

Two numbers to add in cell

  1. #1
    Registered User
    Join Date
    09-16-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2011
    Posts
    1

    Two numbers to add in cell

    Hi there,

    Really could do with help, with what I believe is a fairly simple formula but I'm not a massive user of excel (yet!).

    I have columns that have two numbers - '3(2)', how can I add these together?

    For example

    Cell A3 - 3(2)
    +
    Cell B3 - 6(4)
    =
    Cell C3 - x(x)

    Any ideas?

    If this isn't possible, is there any other way of arriving at the result of one number and another in the brackets next to it?

    Many many thanks

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Two numbers to add in cell

    I suppose this would probably work:
    =LEFT(A3,1)+LEFT(B3,1)&"("&MID(A3,3,1)+MID(B3,3,1)&")"

  3. #3
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Two numbers to add in cell

    =left(a3,1)+left(a4,1)&"("&substitute(right(a3,2),")","")+substitute(right(a4,2),")","")&")"
    Please click 'Add reputation', if my answer helped you.

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

    Re: Two numbers to add in cell

    Will the numbers always be 1 digit numbers?

    Will any of the numbers be negative numbers?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Two numbers to add in cell

    Hi,

    Assuming your first example is in cell A3, then, with B3 the active cell, go to Name Manager and define a new name viz:

    Name: Add_Numbers

    Refers to: =EVALUATE(SUBSTITUTE(SUBSTITUTE(Sheet1!A3,"(","+"),")",""))

    Close and return to the sheet. Then, in cell B3 type:

    =Add_Numbers

    Copy down as required to give respective answers for entries in A4, A5, etc.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Two numbers to add in cell

    This will do it:

    =SUM(VALUE(LEFT(A3,1)),SUM(VALUE(LEFT(B3,1))))&"("&SUM(ABS(VALUE(RIGHT(A3,3))),ABS(VALUE(RIGHT(B3,3))))&")"

    or this a little bit shorter:

    =SUM(LEFT(A3,1),LEFT(B3,1))&"("&SUM(ABS(RIGHT(A3,3)),ABS(RIGHT(B3,3)))&")"
    Last edited by AlKey; 09-16-2013 at 11:51 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    09-10-2013
    Location
    INDIA
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    7

    Re: Two numbers to add in cell

    Hi,

    Try this formula work for all condtion.

    Formula : -

    =LEFT(A1,FIND("(",A1)-1)+LEFT(B1,FIND("(",B1)-1)&"("&MID(A1,FIND("(",A1)+1,LEN(A1)-FIND("(",A1)-1)+MID(B1,FIND("(",B1)+1,LEN(B1)-FIND("(",B1)-1)&")"

    Thanks
    Tanuj

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

    Re: Two numbers to add in cell

    Since everyone else is taking a WAG, I may as well throw my suggestion into the ring!

    Data Range
    A
    B
    C
    3
    3(2)
    6(4)
    9(6)
    4
    1.5(8.25)
    2.5(1.75)
    4(10)
    5
    200(-1)
    -200(1)
    0(0)
    6
    1000(10)
    10(1000)
    1010(1010)
    7
    2(3)
    5(-4)
    7(-1)

    This array formula** entered in C3 and copied down:

    =SUM(--LEFT(A3:B3,FIND("(",A3:B3)-1))&"("&SUM(--MID(SUBSTITUTE(A3:B3,")",""),FIND("(",A3:B3)+1,15))&")"

    ** 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.

    Assumes EVERY cell will contain a number in parentheses and there will always be a number to the left of the parentheses.
    Last edited by Tony Valko; 09-16-2013 at 06:26 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-01-2013, 06:30 PM
  2. Replies: 8
    Last Post: 05-01-2012, 09:25 AM
  3. Replies: 4
    Last Post: 11-16-2008, 05:48 PM
  4. Replies: 1
    Last Post: 01-09-2006, 09:30 AM
  5. [SOLVED] extract numbers from cell containing text & numbers
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2005, 03:10 AM

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