Hello All,
I need some help with extracting a particular word between two characters.
"010 - London - 01 Dock-Day"
I need to extract London from the above text string.
Hello All,
I need some help with extracting a particular word between two characters.
"010 - London - 01 Dock-Day"
I need to extract London from the above text string.
I would not like to use text-to-columns...either vba or formula.
Assuming your data are in A1, use this:
=TRIM(MID(SUBSTITUTE("-"&$A1,"-",REPT(" ",125)),125*COLUMNS($A:B),125))
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
If the string ALWAYS of the form with "nnn - aaaaaaaaa - nn ......" i.e text required starts in position 7 ....
=TRIM(MID(A1,7,FIND("-",A1,7)-7))
Many thanks for your help. Both solution work.!
Thanks for the reputation added. Much appreciated.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks