#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Adding Text

I have a whole page of different names and I need to add the same two letter
prefix to the beginning of each of them?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Adding Text

In a helper column say B

="DR " & A1

Brent wrote:

I have a whole page of different names and I need to add the same two letter
prefix to the beginning of each of them?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Adding Text

in a blank column, =prefix&first cell

so, assume the prefix is Mr

="Mr"&A2

copy down and across

Highlight your results and copy, then paste special/values

"Brent" wrote:

I have a whole page of different names and I need to add the same two letter
prefix to the beginning of each of them?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Adding Text

First change the xx in the following macro to your prefix.
Then select the cells you want to modify
Then run the macro


Sub prefixx()
For Each r In Selection
r.Value = "xx" & r.Value
Next
End Sub

--
Gary''s Student - gsnu200806


"Brent" wrote:

I have a whole page of different names and I need to add the same two letter
prefix to the beginning of each of them?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Adding Text

Assume the names are in column A starting in A2, make sure column B is empty
or insert a new column B,
in B2 put


="XY"&A2

or if you want a space between


="XY"&" "&A2


replace XY with your prefix

and copy down as long as needed. Then select the help column, copy it, paste
special as values over the old
and delete the help column

--


Regards,


Peo Sjoblom

"Brent" wrote in message
...
I have a whole page of different names and I need to add the same two
letter
prefix to the beginning of each of them?





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Adding Text

If the names are in column A, then you can use a formula like this in
a helper column:

="xy"&A1

and copy this down as required. Then you can fix the values in the
helper column by highlighting all the cells with the formula in,
clicking <copy, then Edit | Paste Special | Values (check) | OK then
<Esc. Then you can copy/paste these over the originals in column A
and then delete the helper column.

Hope this helps.

Pete

On Oct 10, 6:24*pm, Brent wrote:
I have a whole page of different names and I need to add the same two letter
prefix to the beginning of each of them?


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
adding text karen Excel Discussion (Misc queries) 2 August 13th 08 04:12 PM
Adding text to equal text Frank Excel Discussion (Misc queries) 3 February 15th 07 03:25 PM
Adding Dashes in front of text using text formating Neal Excel Discussion (Misc queries) 1 November 27th 06 10:58 PM
adding text Jay Taylor New Users to Excel 3 December 6th 05 11:18 AM
Adding text Jay Taylor Excel Worksheet Functions 0 November 22nd 05 06:18 AM


All times are GMT +1. The time now is 12:19 PM.

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

About Us

"It's about Microsoft Excel"