Text to Column by word.

flect

Registered User.
Local time
Tomorrow, 10:17
Joined
Feb 26, 2008
Messages
86
Hi Guys

I'm wondering if it's possible to split a string by a keyword in excel.

eg. I have a list of products and companies and the strings are all variable length but contain a common keyword - ie "Shoes by John, Socks by Allison, Vacuum Cleaners by Frank"

I don't think i can use Left/Right/or Mid as they're based on number of characters, and inStr based on character position - All i want is to select everything before the word "by".

Is there a simple way to do this or will it involve some VB trickery?
 
Solved it myself :D

Code:
=LEFT(A1,FIND(" by",A1))
 

Users who are viewing this thread

Back
Top Bottom