Hello all,
Long-time reader, first-time poster. I need to find and extract a string from a text field that consists of two letters followed by three numbers (XX000) then nest that inside a VLOOKUP to return another corresponding cell of data. There are hundreds of rows of data that need this applied to them Sample data below:
[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 More additional text[/TD]
[TD]AP654[/TD]
[/TR]
[TR]
[TD]6/3/2013[/TD]
[TD]More Fruit MF055 Even more text[/TD]
[TD]MF055[/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.
[/TD]
[TD]MT323[/TD]
[/TR]
</tbody>[/TABLE]
The VLOOKUP with the XX000 string is easy; pulling that string using a formula and no VBA is the hard part. Someone please tell me there's an easy way that I'm simply overlooking!
Edit: I just discovered that I may also have a master list of the strings that are embedded in the Comment column. Sample below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Purchaser[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BA426[/TD]
[TD]Jill[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AP654[/TD]
[TD]Adam[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MF055[/TD]
[TD]Fred[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MT323[/TD]
[TD]Charles[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
So the end goal is to find the purchaser (Table 2) from the code (Table 1 & 2) taken from the text field (Table 1).
Thanks to everyone who checks this out!
____________
Jawnathin
Long-time reader, first-time poster. I need to find and extract a string from a text field that consists of two letters followed by three numbers (XX000) then nest that inside a VLOOKUP to return another corresponding cell of data. There are hundreds of rows of data that need this applied to them Sample data below:
[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 More additional text[/TD]
[TD]AP654[/TD]
[/TR]
[TR]
[TD]6/3/2013[/TD]
[TD]More Fruit MF055 Even more text[/TD]
[TD]MF055[/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.

[TD]MT323[/TD]
[/TR]
</tbody>[/TABLE]
The VLOOKUP with the XX000 string is easy; pulling that string using a formula and no VBA is the hard part. Someone please tell me there's an easy way that I'm simply overlooking!
Edit: I just discovered that I may also have a master list of the strings that are embedded in the Comment column. Sample below:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Code[/TD]
[TD]Purchaser[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]BA426[/TD]
[TD]Jill[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AP654[/TD]
[TD]Adam[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MF055[/TD]
[TD]Fred[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MT323[/TD]
[TD]Charles[/TD]
[TD]
[/TD]
[/TR]
</tbody>[/TABLE]
So the end goal is to find the purchaser (Table 2) from the code (Table 1 & 2) taken from the text field (Table 1).
Thanks to everyone who checks this out!
____________
Jawnathin
Last edited: