+ Reply to Thread
Results 1 to 4 of 4

how to - Insert predifined text in each cell of a column

  1. #1
    Registered User
    Join Date
    06-18-2004
    Posts
    29

    how to - Insert predifined text in each cell of a column

    Hi all,

    I have a CSV file with 19 columns and about 500 rows.
    In the column D, there is text (html) in all 500 rows.
    I need to know how to prepend and append a predifined text to the begining and end of each cell in column D.

    ex: Cell D2 has text of ' <P>class info for today. <B>When?</B></P> '
    I need the cell to be modified so that ' <table><tr><td> ' be prepend the text above and that ' </td></tr></table> ' be appended to the text also so that the cell will now read:

    <table><tr><td><P>class info for today. <B>When?</B></P></td></tr></table>

    How can I acheive this?

    Thanks for your help.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    Assuming you want the same text prepended and appended to each of the 500 cells, you could insert a blank column next to D. In a blank section of your sheet (columns U and V?) enter your prepend values in one cell (U1) and append values in another (V1).

    In your new, blank E1, enter this formula:

    =$U$1&D1&$V$1

    copy this down 500 rows.

    Now, copy column E, Paste Special Values over top of itself and then Delete Column D

    Good Luck
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    06-18-2004
    Posts
    29
    Worked like a charm Bruce... Thanks !

  4. #4
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    I'm glad it worked for you. Thanks for the feedback, it is always appreciated.

    Cheers!

+ 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