+ Reply to Thread
Results 1 to 5 of 5

Adding text to the end of a cell

  1. #1
    Registered User
    Join Date
    12-04-2009
    Location
    Bromsgrove, England
    MS-Off Ver
    Excel 2003
    Posts
    53

    Adding text to the end of a cell

    In Cell AA we have a list of numbers - I want to add the word "[space]metres" after every number except for number "1" which I need "[space] metre" added, whats the easiest way to do this without manually adding the text?

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Adding text to the end of a cell

    =IF(AA1=1,AA1&" metre",AA1&" metres")

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    12-04-2009
    Location
    Bromsgrove, England
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Adding text to the end of a cell

    Brilliant, that worked a treat, Ive also got another slight variant. In column F Ive got a list of skus which look similar to this - DEC-RAINB-0916-1

    At the end of every one is a number from 1 to 50. I want to make it so that the single numbers (ie 1-9 still have two numbers so 01, 02, 03). Obviously if I do a simple find and replace it will mess up the two figure numbers too (ie find 1 and replace with 01 will also change the number 10 to 010). Is there an easy way around this?

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Adding text to the end of a cell

    Hi,
    your last post being a new question and a different kind of problem, I would suggest you start a new thread so that everyone can make the most of the information - Thx

  5. #5
    Registered User
    Join Date
    12-04-2009
    Location
    Bromsgrove, England
    MS-Off Ver
    Excel 2003
    Posts
    53

    Re: Adding text to the end of a cell

    Thanks for the advice, Ive added the question here - http://www.excelforum.com/excel-prog...in-a-cell.html

+ 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