+ Reply to Thread
Results 1 to 13 of 13

Adding Text before or after text already in a cell

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Adding Text before or after text already in a cell

    Hello,

    How do i add text to every cell in a column before or after the text already in the cell? I once had a macro but i forgot how to do it. Any help is much appreciated.

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Adding Text before or after text already in a cell

    Hi

    select your cells and run this
    Please Login or Register  to view this content.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Adding Text before or after text already in a cell

    you could use a macro, or just add an additional column and use concatination then paste values over the original.

    something like this

    ="BEFORE-"&A1&"-AFTER"
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  4. #4
    Registered User
    Join Date
    04-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Adding Text before or after text already in a cell

    I should have specified. I am horrid with excel. Could you please tell me what to do step by step if possible. =)

  5. #5
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Adding Text before or after text already in a cell

    which one solution You are interested in?

  6. #6
    Registered User
    Join Date
    04-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Adding Text before or after text already in a cell

    Whichever gets me able to add text before or after (i need to do both on diff columns) the text already in the cell. I do not know enough about excel to say which would be best.

  7. #7
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Adding Text before or after text already in a cell

    So maybe start with function:
    If you have your text in cell A1, then paste this formula Dgagnon gave You in B1 and see what You get.

  8. #8
    Registered User
    Join Date
    04-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Adding Text before or after text already in a cell

    I tried:

    ="<b>Type:</b>"&C1&"<br>"

    In cell D2 and it worked, just it was one lower than where i put the information in so it didnt match up with the other columns.

  9. #9
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Adding Text before or after text already in a cell

    you just need to change it to this:

    ="<b>Type:</b>"&C2&"<br>"

  10. #10
    Registered User
    Join Date
    04-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Adding Text before or after text already in a cell

    Got it yay. How do i paste over the old information, keeps saying !REF

  11. #11
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,055

    Re: Adding Text before or after text already in a cell

    Copy whole column and then select your original column -> Right click -> Paste spetial -> Values
    Never use Merged Cells in Excel

  12. #12
    Registered User
    Join Date
    04-04-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Adding Text before or after text already in a cell

    Last question, how do i add something just to the end of the text in a cell?

  13. #13
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Adding Text before or after text already in a cell

    just remove the first portion, like this

    =C2&"Text After"

+ 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