Hello,
I need help extracting words from a string.... example:
String: TV-Show - BACK LH BS-PI
I need to extract "Show" into another cell. "Show" can also be a few other words like "channel" and "next channel". Please help!!
Hello,
I need help extracting words from a string.... example:
String: TV-Show - BACK LH BS-PI
I need to extract "Show" into another cell. "Show" can also be a few other words like "channel" and "next channel". Please help!!
try: =IFERROR(TRIM(MID(A1,FIND("-",A1)+1,FIND("-",A1,FIND("-",A1)+1)-FIND("-",A1)-1)),"Check characters")
If the basic problem is solved
- it's always a good practice to show respect to the person(s) who have helped you
- is a click on the Add Reputation first (left lower corner of the post of person(s) who helped you) and then
- mark the thread as SOLVED (top right corner over your first post - Thread Tools). This is important for all of us,
If you did it - ignore this post, if not - just do it
Thanks
Last edited by sandy666; 04-06-2017 at 05:53 PM. Reason: TRIM added
worked like a charm! Thank you!!!
one last request...this one maybe more difficult...
I now need to extract the second half of that same string to another cell:
String: TV-Show - BACK LH BS-PI
"BACK LH BS"..."PI" not included... this string can also be something like "TB" or "RHS BS REAR"... and "TV-Show" can be something like "TV-new channel" or "TV-remote"...
thank you!
try in C1 (if previous formula was in B1)Formula:
Please Login or Register to view this content.
I assume there is always something like "-" around the text what you want to extract
or
A1 your text
B1 this formula
drag it from B1 to C1 and next drag both downFormula:
Please Login or Register to view this content.
Last edited by sandy666; 04-07-2017 at 11:34 AM. Reason: next formula added
the first one worked perfectly. thank you!!!
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks