How to extract text from middle of a string
On Sat, 28 Jun 2008 09:54:01 -0700, keithobro
wrote:
Hi Ron
For a moment there, I thought the middle formula wasn't going to work, then,
once I'd input the 3rd one, it all fell into place.
Marvellous.
Can't thank you enough.
Keith
You're welcome. Glad to help. Thanks for the feedback.
Of course, it is possible to make the "middle formula" stand alone by
substituting the formula that is in D2 for the D2 in the middle formula, but I
chose not to.
A stand-alone formula for the "middle":
=MID(A2,FIND(" ",A2)+1,FIND(CHAR(1),SUBSTITUTE(A2," ",CHAR(1),
LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))-FIND(" ",A2)-1)
--ron
|