The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Quick Excel Question

    Discussion in 'Windows OS and Software' started by Zydan, Jan 10, 2008.

  1. Zydan

    Zydan Notebook Evangelist

    Reputations:
    29
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    30
    Lets say I want to add a number in Cell A1 + a number in Cell b1 together in cell C1, of course the formula is A1+b1.

    Now my question is what if cell A1 contained numbers and text, for example '9 Days' and Cell B1 contained just the number '5', is there a way to add these 2 cells together with out getting an error.
    Any way to leave the word 'Days' in cell A1 and just add the 2 numbers?

    Or is that just impossible?

    Thanks!
     
  2. ravenmorpheus

    ravenmorpheus Notebook Deity

    Reputations:
    26
    Messages:
    846
    Likes Received:
    0
    Trophy Points:
    30
    Yes, press ctrl-1 when in cell A1 to bring up the cell format menu, on the number tab scroll down to the custom format option - here you can change it so that in cell A1 is the number 9 with a suffix of "days" afterwards rather than actually typing in the word days, thus you can add the two numerical values together.

    Enter 0 "days" in the type field - replacing the text between the " marks with whatever you want.

    All you have to do is enter the numbers and add them up. ;)
     
  3. Budding

    Budding Notebook Virtuoso

    Reputations:
    1,686
    Messages:
    3,982
    Likes Received:
    0
    Trophy Points:
    105
    You will have to modify your value in cell C1, by changing it to something like:
    =B1+LEFT(A1,FIND(" ",A1,1))

    And Ravenmorpheus, I do not believe the method you stated would allow you to carry out arithmetic operations on the cell.
     
  4. ravenmorpheus

    ravenmorpheus Notebook Deity

    Reputations:
    26
    Messages:
    846
    Likes Received:
    0
    Trophy Points:
    30
    Really well I think you find it will, it certainly does sum() calculations and is far easier than your method.

    But then I'm using Excel 07 so it could be a new feature but I remember it working that way in 03 as well... Try taking a look at the attached zipped excel sheet. ;)
     

    Attached Files:

  5. Zydan

    Zydan Notebook Evangelist

    Reputations:
    29
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    30
    Hmm can you also get that to work left to right, I'm having a problem even after doing what you explained
     
  6. ravenmorpheus

    ravenmorpheus Notebook Deity

    Reputations:
    26
    Messages:
    846
    Likes Received:
    0
    Trophy Points:
    30
    Sorry don't follow - what do you mean left to right?

    It adds up left to right and does sum() function left to right and both top to bottom.

    Take a look at the attached test.zip file.
     

    Attached Files: