Hi all,
this is my first post here and i hope you guys can give me a little help here ))
I need to search for and extract an alphanumerical string that is either in the form of AXXXX, A XXXX, BXXXX or B XXXX, with XXXX being any 4 digit numbers.
The problem is that the string that I need are in a column that look something like this,
123ABCAXXXX617
6352HGY(BXXXX)
j23bb2h6
In other words, the cell may contain the string, with possibly any numbers, letters, symbols or space before and after them.
In some cells the string may not even be found in it, and I would have to ignore that entry.
I know it may be insanely hard with the unknown XXXX and any form of possible things before and after the string.
I thought of using MID and INSTR(or Find) to find the position of A and B before extracting the 4 numbers after it, but I think INSTR would only return the first A it finds....
Any help rendered would be deeply appreciated!!!
this is my first post here and i hope you guys can give me a little help here ))
I need to search for and extract an alphanumerical string that is either in the form of AXXXX, A XXXX, BXXXX or B XXXX, with XXXX being any 4 digit numbers.
The problem is that the string that I need are in a column that look something like this,
123ABCAXXXX617
6352HGY(BXXXX)
j23bb2h6
In other words, the cell may contain the string, with possibly any numbers, letters, symbols or space before and after them.
In some cells the string may not even be found in it, and I would have to ignore that entry.
I know it may be insanely hard with the unknown XXXX and any form of possible things before and after the string.
I thought of using MID and INSTR(or Find) to find the position of A and B before extracting the 4 numbers after it, but I think INSTR would only return the first A it finds....
Any help rendered would be deeply appreciated!!!