TheOnlyJme
New Member
- Joined
- Jun 25, 2013
- Messages
- 6
Hi,
I need to extract the first location (ie London Luton) out of the below string.
Ive been able to write functions for all the other using left/right and mid, but can get this one to work.
281653.P Smith 19-Jun-13 London Luton/Leeds
I even used the Micorsoft help pags Split text among columns by using functions - Excel - Office.com to no avail, to try and understand how to write the formula.
The nearest I got was to return 'London Luton/Leeds'
=MID(L11,SEARCH(CHAR(127),SUBSTITUTE(L11," ",CHAR(127),3))+1,SEARCH("/",L11,1))
or the first 9 charicters (ie London Lu) after the third space (and I dont know how or why
=MID(L9,SEARCH(" ",L9,SEARCH(" ",L9,SEARCH(" ",L9,1)+1)+1)+1,SEARCH(" ",L9,SEARCH(" ",L9,SEARCH(" ",L9,1)+1)+1)-(SEARCH(" ",L9,SEARCH(" ",L9,1)+1)+1))
I need to extract the first location (ie London Luton) out of the below string.
Ive been able to write functions for all the other using left/right and mid, but can get this one to work.
281653.P Smith 19-Jun-13 London Luton/Leeds
I even used the Micorsoft help pags Split text among columns by using functions - Excel - Office.com to no avail, to try and understand how to write the formula.
The nearest I got was to return 'London Luton/Leeds'
=MID(L11,SEARCH(CHAR(127),SUBSTITUTE(L11," ",CHAR(127),3))+1,SEARCH("/",L11,1))
or the first 9 charicters (ie London Lu) after the third space (and I dont know how or why
=MID(L9,SEARCH(" ",L9,SEARCH(" ",L9,SEARCH(" ",L9,1)+1)+1)+1,SEARCH(" ",L9,SEARCH(" ",L9,SEARCH(" ",L9,1)+1)+1)-(SEARCH(" ",L9,SEARCH(" ",L9,1)+1)+1))