+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : How to add a two values in one cell

  1. #1
    Registered User
    Join Date
    08-05-2010
    Location
    China
    MS-Off Ver
    Msoffice 2007
    Posts
    5

    How to add a two values in one cell

    Hi guys,

    I am using MSoffice 2007, i want to add two numbers/ values in one cell, like top will be one value and bottom will be another value this will be coming from another location with formula.

    Like the example :

    24500/200 like this we have to display in one cell, as the top value will be added with =X+X+ and so on, same like that for bottom also, but the values will be different and have seprate .

    Can any one help me out

    Thanks
    Last edited by LingXia0yu; 08-05-2010 at 12:56 PM. Reason: Solved by NBV

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to add a two values in one cell

    So you want to add 24500 + 200 ?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-05-2010
    Location
    China
    MS-Off Ver
    Msoffice 2007
    Posts
    5

    Re: How to add a two values in one cell

    No adding, top value will be seprate and bottom value will be seprate,, top value will be added from another cells, same like that bottom value also added from some other cells, both are different but have to show in one cell, by seprating / (Big bar in middle)

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to add a two values in one cell

    Do you mean maybe?

    If you have say in A1:C1, 1/2, 5/4, 5/7... then result would be 12/13

    ==SUMPRODUCT(--(LEFT(A1:C1,FIND("/",A1:C1)-1)))&"/"&SUMPRODUCT(--(MID(A1:C1,FIND("/",A1:C1)+1,10)))

  5. #5
    Registered User
    Join Date
    08-05-2010
    Location
    China
    MS-Off Ver
    Msoffice 2007
    Posts
    5

    Re: How to add a two values in one cell

    \1

    Hi

    Thanks for your reply, but i did not works, can u pls show see the example in picture
    And pls guide me thanks for your help

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to add a two values in one cell

    That's a very tiny pic... I need better glasses...

    Well it looks like then:

    =SUM(B2:B10)&"/"&SUM(C2:C10)

    adjust ranges to suit.

  7. #7
    Registered User
    Join Date
    08-05-2010
    Location
    China
    MS-Off Ver
    Msoffice 2007
    Posts
    5

    Re: How to add a two values in one cell

    wow, thanks NBV works great, but i want the values to show separte top one above totally and bottom down by seprating the ///

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to add a two values in one cell

    You will need to merge the cells together... select the cells and go to Format|Cells and select Merge in the Alignment tab.

    While there, go to the Border tab and click bottom left corner button that will add a diagonal line through the cells.

    Then use formula like:

    =SUM(B1:B4)&REPT(CHAR(10),3)&SUM(D1:D4)

    you may need to adjust the 3 to smaller or bigger to get the numbers to line up the way you want.

  9. #9
    Registered User
    Join Date
    08-05-2010
    Location
    China
    MS-Off Ver
    Msoffice 2007
    Posts
    5

    Re: How to add a two values in one cell

    Bro, thanks you very much, i just modified like this and it fits very good.
    =SUM(K8:K13)&REPT(CHAR(1),5)&SUM(L8:L13).

    Hope for some one it will help.

    Bro thanks a lot. I will be visiting this site frequently, I extend my hands for friendship if u like u can add me in my yahoo id which i given in PM.
    Thanks

+ 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