I have a string in a cell:
ABCDxxxxxEFGH
ABCD and EFGH are constant, xxxxx is of variable length.
I want to write an excel formula to extract xxxxx.
|
I have a string in a cell: ABCDxxxxxEFGH ABCD and EFGH are constant, xxxxx is of variable length. I want to write an excel formula to extract xxxxx. | |||||||||
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Assuming it is in Cell A1
If you wanted to check that the cell is correctly formed you could do:
| |||
|
feedback
|
|
If you just want to brute force it (assuming ABCD and EFGH aren't within xxxxx then the following approach should work, although I would recommend you come up with a better method.
Please excuse if my syntax is slightly off, it's been a while since I've been in vbscript | |||
|
feedback
|