Extraction Logic from Text

Alka Bajaj

New Member
Joined
Apr 5, 2011
Messages
44
Hi Expert,

How can I extract a set of characters from a string of text?

Example:
I have a following column of text data, wherein each cell text has 4 digit number in it.

1.Missing Information- 0006 Please check the record
<TABLE dir=ltr cellSpacing=0 cellPadding=2 width=542 border=0><TBODY><TR><TD height=16>
2.ESS should not be checked - 0655 ESS Settings Remuneration Statement
</TD></TR><TR><TD height=16>
3.Job must exist when position is not 99999999 - 0001 Org. Assignment​
</TD></TR><TR><TD height=16>
4.Email Address can only exist when Username exists - 0105 Communication​
</TD></TR></TBODY></TABLE>

Expected Outcome:
0006
0655
0001
0105

Appreciate your guidance on above.

Many thanks!

Regards,
Alka
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Many Thanks Neil.

Your formula is working partially, following are the end result

06 P
655
001
105

Expected Outcome
0006
0655
0001
0105

How can I extract same as above. Appreciate your help.

Regards
Alka
 
Upvote 0
I tested NJIMacks suggestion and for me, it returns exactly what you say is the Expected Outcome.

Are you using it exactly as Neil described ? or are you doing something slightly different ?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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