Hi
I'm trying to extract some data from a string. An example of the string is: ABBN Aug14 12000 P.
The third term (12000) can be anywhere between 1 and 5 figures long. The last figure (P) will either be P or C.
I'm trying to extract purely the third term, despite its length. This seems to work but only when the third term is either 4 or 5 figures long:
=IFERROR(IF(FIND(" ",LEFT(RIGHT(A2,7),5),1)=1,RIGHT(LEFT(RIGHT(A2,7),5),4),LEFT(RIGHT(A2,7),5)),LEFT(RIGHT(A2,7),5))
Any ideas?!
Thanks
Bookmarks