+ Reply to Thread
Results 1 to 6 of 6

Add text to a cell with text already in it

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    New Britain, CT
    MS-Off Ver
    2010
    Posts
    2

    Add text to a cell with text already in it

    I have a long list of various part numeber and I need to:

    Add a 0 (zere) the front of any 4 digit number and then a (dash) "-PWR" at the end.

    7170 add 0 and -PWR: 07170-PWR
    7165 add 0 and -PWR: 07165-PWR
    06175S add -PWR: 06175S-PWR
    06152S add -PWR: 06152S-PWR

    Thanks,
    Karl

  2. #2
    Registered User
    Join Date
    05-25-2012
    Location
    toronto
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Add text to a cell with text already in it

    ah that's pretty simple suppose your digits are in column A put this formula in column b
    =Text(A1,"00000")&"-PWR"
    and then fill it down to the end.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Add text to a cell with text already in it

    This will do what you want but if the number is less than 4 digits will only add the -PWR and not the 0

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Add text to a cell with text already in it

    Or simply this.....

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Registered User
    Join Date
    07-25-2014
    Location
    New Britain, CT
    MS-Off Ver
    2010
    Posts
    2

    Re: Add text to a cell with text already in it

    Thanks that worked.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Add text to a cell with text already in it

    Thank you for the feedback. Glad that you have a solution.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. If cell contains certain text and certain text then return predefined text
    By fuzzhead in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2014, 02:18 PM
  2. [SOLVED] How to match a cell with text with a range of text and return own text
    By ec4excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2014, 11:07 AM
  3. Replies: 5
    Last Post: 01-06-2014, 05:33 AM
  4. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  5. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM

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