Extract specific text from column and put in a new column

applesandpears

New Member
Joined
Oct 16, 2012
Messages
15
Hey all!

I need to search a list in column B of 500 records to find specific words such as"ABC2000000000" The text will always begin with "ABC................." and I would like to extract this whole world from the text string into a new column.
This is not always in the middle or beginning or end.
It could be inbetween other words or numbers or spaces etc - so its not consistent as this data is from a raw file imported into excel.

So I would like to FIND text beginning with"ABC" in column A and then return "ABC123456789000" in Column B. The format will always be "ABC-followed by 12 numbers"

EG
Column A and column B(what I would like to see)
[TABLE="width: 375"]
<TBODY>[TR]
[TD]KOREIABC123456789999 4029227[/TD]
[TD]ABC123456789999[/TD]
[/TR]
[TR]
[TD]RCA ABC000010469597 PBI000010005941[/TD]
[TD]ABC000010469597[/TD]
[/TR]
[TR]
[TD]8990ABC000010480568[/TD]
[TD]ABC000010480568[/TD]
[/TR]
</TBODY><COLGROUP><COL><COL></COLGROUP>[/TABLE]
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hey all!

I need to search a list in column B of 500 records to find specific words such as"ABC2000000000" The text will always begin with "ABC................." and I would like to extract this whole world from the text string into a new column.
This is not always in the middle or beginning or end.
It could be inbetween other words or numbers or spaces etc - so its not consistent as this data is from a raw file imported into excel.

So I would like to FIND text beginning with"ABC" in column A and then return "ABC123456789000" in Column B. The format will always be "ABC-followed by 12 numbers"

EG
Column A and column B(what I would like to see)
[TABLE="width: 375"]
<tbody>[TR]
[TD]KOREIABC123456789999 4029227[/TD]
[TD]ABC123456789999[/TD]
[/TR]
[TR]
[TD]RCA ABC000010469597 PBI000010005941[/TD]
[TD]ABC000010469597[/TD]
[/TR]
[TR]
[TD]8990ABC000010480568[/TD]
[TD]ABC000010480568[/TD]
[/TR]
</tbody>[/TABLE]

If always ABC-12:
Excel 2010
AB
KOREIABC123456789999 4029227ABC123456789999
RCA ABC000010469597 PBI000010005941ABC000010469597
8990ABC000010480568ABC000010480568

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: center"]3[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]B1[/TH]
[TD="align: left"]=MID(A1,FIND("ABC",A1),15)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Thank you!

What if it could be different text? is there a way of searching for specific words in a column of text and numbers string and return them in another column?
 
Upvote 0
Thank you very much and i have tried the formula and it now works ;-)

Also in the cell there are some other numbers that I would like to extract is there a way of adding to this formuala to find other "text" or numbers?

Once again - thanks for reading this and also for replying
 
Upvote 0
Thank you very much and i have tried the formula and it now works ;-)

Also in the cell there are some other numbers that I would like to extract is there a way of adding to this formuala to find other "text" or numbers?

Once again - thanks for reading this and also for replying

Could you provide few examples and desired result?
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top