Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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 th
begining and end of each cell in column D.

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

<table<tr<td<Pclass info for today
<BWhen?</B</P</td</tr</table

How can I acheive this?

Thanks for your help

--
npereir
-----------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...fo&userid=1079
View this thread: http://www.excelforum.com/showthread.php?threadid=47720

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to - Insert predifined text in each cell of a column


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


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=477207

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to - Insert predifined text in each cell of a column


Worked like a charm Bruce... Thanks !


--
npereira
------------------------------------------------------------------------
npereira's Profile: http://www.excelforum.com/member.php...o&userid=10799
View this thread: http://www.excelforum.com/showthread...hreadid=477207

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to - Insert predifined text in each cell of a column


I'm glad it worked for you. Thanks for the feedback, it is alway
appreciated.

Cheers

--
swatsp0

-----------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...fo&userid=1510
View this thread: http://www.excelforum.com/showthread.php?threadid=47720

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert cell text every 5 rows in a column Mike Mike Excel Discussion (Misc queries) 9 September 16th 10 09:53 AM
Insert Column after specific text title the new column and add for David Excel Discussion (Misc queries) 5 October 2nd 09 04:03 PM
when the column text is different, how to insert one row below eac Greensky Young Excel Worksheet Functions 5 April 24th 07 04:32 PM
Insert cell/format/text/fontsize and auto insert into header? Unfurltheflag Excel Programming 2 November 3rd 04 05:39 PM
insert 3 rows before any text in column A onesaint Excel Programming 2 August 27th 04 01:51 AM


All times are GMT +1. The time now is 03:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"