Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2018, 10:20 AM
ronnie34 ronnie34 is offline Extracting key words from a cell Windows 7 32bit Extracting key words from a cell Office 2007
Novice
Extracting key words from a cell
 
Join Date: Jul 2018
Posts: 2
ronnie34 is on a distinguished road
Question 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
Reply With Quote
  #2  
Old 07-12-2018, 12:46 PM
NoSparks NoSparks is offline Extracting key words from a cell Windows 7 64bit Extracting key words from a cell Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Can you attach a small sample workbook showing typically what you're dealing with and indicating what the desired results would be ?
Reply With Quote
  #3  
Old 07-12-2018, 01:06 PM
ronnie34 ronnie34 is offline Extracting key words from a cell Windows 7 32bit Extracting key words from a cell Office 2007
Novice
Extracting key words from a cell
 
Join Date: Jul 2018
Posts: 2
ronnie34 is on a distinguished road
Default

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
Attached Files
File Type: xlsx dummyexample.xlsx (8.7 KB, 13 views)
Reply With Quote
  #4  
Old 07-12-2018, 11:55 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Extracting key words from a cell Windows 7 64bit Extracting key words from a cell Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

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
Reply With Quote
  #5  
Old 07-13-2018, 01:15 AM
ArviLaanemets ArviLaanemets is offline Extracting key words from a cell Windows 8 Extracting key words from a cell Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

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",""))
Reply With Quote
Reply

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 key words from a cell Extracting data from a cell with multiple lines of text MMT Excel 9 02-12-2015 09:18 PM
Extracting key words from a cell Excel 2013 – need help extracting date and time from text cell plus more. Art Mann Excel 1 07-18-2014 09:55 PM
Extracting key words from a cell Extracting Cell color bsaucer Excel 1 06-19-2009 06:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft