Alright Excel friends, I had a problem that was solved that has just grown once more. I need to find and extract multiple strings from a text field. These strings consist of two letters followed by three numbers and possibly an extra letter. It could be XX000 or XX000X (e.g. AB123 or BA123Z). There are hundreds (thousands?) of rows of data I need to grab these strings from.
The current array formula I'm using (provided by a member here) is:
=IF(ISBLANK(S3),MID(R3,MATCH(TRUE,ISNUMBER(1*MID(R3,ROW(INDIRECT("1:"&LEN(Q3))),1)),0)-2,5),S3)
Sample data below:
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]Created[/TD]
[TD]Comment[/TD]
[TD]Desired Extraction[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]Bananas BA426 Them more text[/TD]
[TD]BA426[/TD]
[/TR]
[TR]
[TD]5/1/2013[/TD]
[TD]Apples AP654 Bananas BA525 More additional text[/TD]
[TD]AP654 AND BA525[/TD]
[/TR]
[TR]
[TD]6/3/2013[/TD]
[TD]More Fruit MF055 AP162 BA223X Even more text[/TD]
[TD]MF055 AND AP162 AND BA223X[/TD]
[/TR]
[TR]
[TD]7/5/2013[/TD]
[TD]More Text Before Numbers MT323 and this one is going to be really long to prove a point. :wink:[/TD]
[TD]MT323[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas?
My original thread is here: http://www.mrexcel.com/forum/excel-...action-without-visual-basic-applications.html
Thanks to everyone who checks this out!
____________
Jawnathin
The current array formula I'm using (provided by a member here) is:
=IF(ISBLANK(S3),MID(R3,MATCH(TRUE,ISNUMBER(1*MID(R3,ROW(INDIRECT("1:"&LEN(Q3))),1)),0)-2,5),S3)
Sample data below:
[TABLE="class: cms_table, width: 500"]
<tbody>[TR]
[TD]Created[/TD]
[TD]Comment[/TD]
[TD]Desired Extraction[/TD]
[/TR]
[TR]
[TD]1/1/2013[/TD]
[TD]Bananas BA426 Them more text[/TD]
[TD]BA426[/TD]
[/TR]
[TR]
[TD]5/1/2013[/TD]
[TD]Apples AP654 Bananas BA525 More additional text[/TD]
[TD]AP654 AND BA525[/TD]
[/TR]
[TR]
[TD]6/3/2013[/TD]
[TD]More Fruit MF055 AP162 BA223X Even more text[/TD]
[TD]MF055 AND AP162 AND BA223X[/TD]
[/TR]
[TR]
[TD]7/5/2013[/TD]
[TD]More Text Before Numbers MT323 and this one is going to be really long to prove a point. :wink:[/TD]
[TD]MT323[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas?
My original thread is here: http://www.mrexcel.com/forum/excel-...action-without-visual-basic-applications.html
Thanks to everyone who checks this out!

____________
Jawnathin