+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    02-24-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 12.1 MAC
    Posts
    2

    Pasting the same text over and over

    Hi,
    I need to add specific text to every cell in front of what's currently in the cell. So for example: I want to add "mmsub_" to the something like following:
    1-2
    1-3
    2-5
    3-6 etc.

    so the final would look like:
    mmsub_1-2
    mmsub_1-3
    mmsub_2-5
    mmsub_3-6 etc.

    is the a way just to this add text in front of all cells?
    Last edited by VBA Noob; 02-24-2009 at 02:26 PM.

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Pasting the same text over and over

    The best way I think would be to use a temporary formulae to generate the strings for you... assume your values are in A1 onwards then say

    B1: =IF($A1="","","mmsub_"&$A1)
    copy down for all your values

    Now copy B1:Bx (where x is last row) and Copy -> Paste Special -> Values over A1:Ax ... then delete the temp formulae from B.

  3. #3
    Registered User
    Join Date
    02-24-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 12.1 MAC
    Posts
    2

    Re: Pasting the same text over and over

    it worked perfectly! Thanks!

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.2.0