Hi,
I am trying to find a sub-string between two spaces in a string.
Example String;
2PB IND3A 1MLGSTWIEL ANO
I would like to extract 1MLGSTWIEL
So far I have this formula...
=IF(ISERR(FIND("ML",A1)),"",RIGHT(LEFT(A1,FIND("ML",A1)+1),LEN(LEFT(A1,FIND("ML",A1)+1))-FIND("~", SUBSTITUTE(LEFT(A1,FIND("ML",A1)+1)," ","~",LEN(LEFT(A1,FIND("ML",A1)+1))-LEN(SUBSTITUTE(LEFT(A1,FIND("ML",[@Description])+1)," ",""))))))
which finds the 'ML' part of the string and then returns everything up to the previous space, but past the 'L' I can't seem to get it to work.
The positions will not always be the same.
Any suggestions would be great.
I am trying to find a sub-string between two spaces in a string.
Example String;
2PB IND3A 1MLGSTWIEL ANO
I would like to extract 1MLGSTWIEL
So far I have this formula...
=IF(ISERR(FIND("ML",A1)),"",RIGHT(LEFT(A1,FIND("ML",A1)+1),LEN(LEFT(A1,FIND("ML",A1)+1))-FIND("~", SUBSTITUTE(LEFT(A1,FIND("ML",A1)+1)," ","~",LEN(LEFT(A1,FIND("ML",A1)+1))-LEN(SUBSTITUTE(LEFT(A1,FIND("ML",[@Description])+1)," ",""))))))
which finds the 'ML' part of the string and then returns everything up to the previous space, but past the 'L' I can't seem to get it to work.
The positions will not always be the same.
Any suggestions would be great.