Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
usmleboy
 
Posts: n/a
Default How to add text to all existing records in one column?

Hi Friends,

I have another question to ask. I had this problem many times - and do not
know how to solve it. Ok:

I have a column with information on patients blood samples, such as:

RA3453 ST
RA4322 TA

I have to add "OCT" to each record in this column in most simple way (there
are 18.000 records). The result for these samples should be like this:
OCT RA3453 ST
OCT RA4322 TA

Thanks in advance
Daniel (usmleboy)

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default How to add text to all existing records in one column?

If your data always starts with RA, then
select the column
Edit|Replace
what: RA
with: OCT RA
replace all.

If your prefix varies, I'd use another column and fill it full of formulas like:

="OCT " & a1
And drag down

Then edit|copy
edit|paste special|values
(over the original values)
and delete the helper column.

usmleboy wrote:

Hi Friends,

I have another question to ask. I had this problem many times - and do not
know how to solve it. Ok:

I have a column with information on patients blood samples, such as:

RA3453 ST
RA4322 TA

I have to add "OCT" to each record in this column in most simple way (there
are 18.000 records). The result for these samples should be like this:
OCT RA3453 ST
OCT RA4322 TA

Thanks in advance
Daniel (usmleboy)


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default How to add text to all existing records in one column?

There are a couple different ways to do this. The easiest would be to do a
FIND/REPLACE. If All of your data has the same format as below (All starts
with "RA"), then you could Find "RA?" and Replace with "OCT RA"

Otherwise, you could insert a new column and enter the formula:

="OCT " & A1 (Replace A1 with your cell reference)

Then copy it down through all your rows. After that, select all of the
cells in the new column and COPY. Then select your original column and PASTE
SPECIAL... Select "Values". Then delete the new column you added.

HTH,
Elkar



"usmleboy" wrote:

Hi Friends,

I have another question to ask. I had this problem many times - and do not
know how to solve it. Ok:

I have a column with information on patients blood samples, such as:

RA3453 ST
RA4322 TA

I have to add "OCT" to each record in this column in most simple way (there
are 18.000 records). The result for these samples should be like this:
OCT RA3453 ST
OCT RA4322 TA

Thanks in advance
Daniel (usmleboy)

  #4   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default How to add text to all existing records in one column?


In a helper (blank) column put this:

="OCT "&B1

copy down or if the ajacent column has data all the way down with no
empty rows then double click on the black square in the bottom right
corner of the cell.

Another way might be to use the Replace function under the Edit menu,
but _*ONLY*_ and _*ONLY*_ if the entire column starts with RA and RA is
not found in any other part of your data....middle or end only at the
beginning.

replace what: RA
replace with: OCT RA
Save your data before attempting that.

HTH
JG


--
pinmaster
------------------------------------------------------------------------
pinmaster's Profile: http://www.excelforum.com/member.php...fo&userid=6261
View this thread: http://www.excelforum.com/showthread...hreadid=498839

  #5   Report Post  
Posted to microsoft.public.excel.misc
Michael
 
Posts: n/a
Default How to add text to all existing records in one column?

In a helper column, in say B2, type: ="OCT "&A2 assuming your data starts in
A2. Then copy down to capture all your cells. Finally, copy the cells in
column B and paste special-values onto column A. HTH
--
Sincerely, Michael Colvin


"usmleboy" wrote:

Hi Friends,

I have another question to ask. I had this problem many times - and do not
know how to solve it. Ok:

I have a column with information on patients blood samples, such as:

RA3453 ST
RA4322 TA

I have to add "OCT" to each record in this column in most simple way (there
are 18.000 records). The result for these samples should be like this:
OCT RA3453 ST
OCT RA4322 TA

Thanks in advance
Daniel (usmleboy)



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
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Matching the same amount of records in one value to another column dodat Excel Worksheet Functions 1 January 1st 06 08:51 PM
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 09:15 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
another text to column problem gbeard Excel Worksheet Functions 11 May 5th 05 07:20 AM


All times are GMT +1. The time now is 02:45 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"