#1
|
|||
|
|||
Extracting key words from a cell
Hi, I'm trying to extract some key words from a cell on excell, these keywords being "LHS" and "RHS" from a string of text by using the formulas of FIND, MID, LEFT, RIGHT, TRIM and LEN
I have made the following progress of =MID(B6,FIND({"RHS","LHS"},B6),3) However, whilst this works for the first cell as it returns "RHS", this is not the same for the remainder where the output should be "LHS". I was wondering what i may have been doing wrong? Kind regards Ronnie |
#2
|
|||
|
|||
Can you attach a small sample workbook showing typically what you're dealing with and indicating what the desired results would be ?
|
#3
|
|||
|
|||
I've below attached a dummy example indicating what should appear on the right.
Note that RHS works, however LHS does not. Many thanks for your help !! Kind regards Ronnie |
#4
|
||||
|
||||
Perhaps in C6: =IF(ISNUMBER(SEARCH("RHS",B6)),"RHS","LHS") and pull down as needed
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#5
|
|||
|
|||
For C6, the one possible working formula will be
Code:
=IF(LEN(SUBSTITUTE(B6,"RHS",""))<LEN(B6),"RHS",IF(LEN(SUBSTITUTE(B6,"LHS",""))<LEN(B6),"LHS","")) |
Tags |
excel basic find |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro for extracting data from multiple sheets if cell has text | plasma33 | Excel Programming | 0 | 11-10-2016 12:52 AM |
Extracting multiple words from one cell into individual rows while copying all other data | randyaserve | Excel Programming | 4 | 10-05-2015 09:52 AM |
Extracting data from a cell with multiple lines of text | MMT | Excel | 9 | 02-12-2015 09:18 PM |
Excel 2013 – need help extracting date and time from text cell plus more. | Art Mann | Excel | 1 | 07-18-2014 09:55 PM |
Extracting Cell color | bsaucer | Excel | 1 | 06-19-2009 06:52 AM |