Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do you insert a phrase at the start of all cells in a column?

I am trying to insert the same phrase followed by a colon and a space in
front of the text in all cells in a column. Is there a simple way to do this
with find and replace?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default How do you insert a phrase at the start of all cells in a column?

change mc to your column

Sub insertphraseallcellsincolumn()
Dim i As Long
Dim mc As Long
mc = 11 'col K
For i = 2 To Cells(Rows.Count, mc).End(xlUp).Row
If Len(Application.Trim(Cells(i, mc))) 0 Then
Cells(i, mc).Value = "new stuff " & Cells(i, mc)
End If
Next i
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Elskan" wrote in message
...
I am trying to insert the same phrase followed by a colon and a space in
front of the text in all cells in a column. Is there a simple way to do
this
with find and replace?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default How do you insert a phrase at the start of all cells in a column?

In a helper column enter ="phrase: " & A1

Copy down assuming current text cells are Column A

Adjust to suit.


Gord Dibben MS Excel MVP


On Wed, 3 Mar 2010 15:58:01 -0800, Elskan
wrote:

I am trying to insert the same phrase followed by a colon and a space in
front of the text in all cells in a column. Is there a simple way to do this
with find and replace?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 37
Default How do you insert a phrase at the start of all cells in a column?

Assuming your existing words are in column €œB€ you could put a Concatenate
function in the €œA€ column and €œfill down€ to combine the two. The function
in your case will look something like this:

=CONCATENATE("The phrase I want to insert",":"," ",B1)

A good way is to use a wizard. Just click on the fx symbol and in the
search box type €œconcantenate€. Press €œgo€ and €œok€. Enter in the €œText 1€
box your phrase. Next box goes your colon, next box goes your space and for
the last, click on the cell with the existing words that are in column €œB€.

Once you have the basic formula in cell A1 you can fill down or just copy /
paste it into cell A2, A3 etc.

If you like the results, you can then convert your result from its current
status as a formula into a more useable form of text by copying column A and
using Paste Special to paste as a value.

If you want to experiment with a different and simple way of adding two
columns with words together just pick a cell and type an equals sign, then
select a cell containing the first text, then type €œ&€ and click on a cell
containing the second text. Press enter

Good luck, you may want to read other posts about the Concatenate Function.
Quin

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default How do you insert a phrase at the start of all cells in a column?

You could, of course, simplify
=CONCATENATE("The phrase I want to insert",":"," ",B1) to
=CONCATENATE("The phrase I want to insert: ",B1) or to
="The phrase I want to insert: "&B1
--
David Biddulph


"Quin" wrote in message
...
Assuming your existing words are in column "B" you could put a Concatenate
function in the "A" column and "fill down" to combine the two. The
function
in your case will look something like this:

=CONCATENATE("The phrase I want to insert",":"," ",B1)

A good way is to use a wizard. Just click on the fx symbol and in the
search box type "concantenate". Press "go" and "ok". Enter in the "Text
1"
box your phrase. Next box goes your colon, next box goes your space and
for
the last, click on the cell with the existing words that are in column "B".

Once you have the basic formula in cell A1 you can fill down or just copy
/
paste it into cell A2, A3 etc.

If you like the results, you can then convert your result from its current
status as a formula into a more useable form of text by copying column A
and
using Paste Special to paste as a value.

If you want to experiment with a different and simple way of adding two
columns with words together just pick a cell and type an equals sign, then
select a cell containing the first text, then type "&" and click on a cell
containing the second text. Press enter

Good luck, you may want to read other posts about the Concatenate
Function.
Quin


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
I can't insert an @ (at symbol) into all cells in a column. Blake Excel Discussion (Misc queries) 2 September 25th 09 12:36 AM
Insert the same word at the start of a column of cells Ann Excel Discussion (Misc queries) 3 June 5th 09 11:35 PM
find the phrase with a group of text in a column driller Excel Discussion (Misc queries) 3 May 25th 08 11:10 AM
Insert a column within a range of cells Retirement Guy Excel Worksheet Functions 4 June 23rd 07 12:04 AM
How do I identify cells that contain part of phrase? T Perry Excel Discussion (Misc queries) 3 May 23rd 06 08:12 PM


All times are GMT +1. The time now is 10:27 AM.

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"