Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-17-2015, 01:42 PM
keywestsue keywestsue is offline How to extract a word from an excel string with various lengths Windows XP How to extract a word from an excel string with various lengths Office 2013
Novice
How to extract a word from an excel string with various lengths
 
Join Date: Sep 2015
Posts: 2
keywestsue is on a distinguished road
Default How to extract a word from an excel string with various lengths

Hi All,

I am new to this thread and had a question regarding extracting a specific word from strings of various lengths. I am trying to find an excel formula that will extract the word that comes directly after "alias" in the following strings:

OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )

Shape ( type: esriFieldTypeGeometry , alias: Shape )

TAXID ( type: esriFieldTypeString , alias: TAXID , length: 13 )

Here is the formula I have come up with :

=LEFT(MID(A2,FIND(",",A2)+9,12),13)

Results : OBJECTID )
Shape )


TAXID, leng

I am trying to figure out a way to get rid of the parentheses (and any other text that may follow) following the word that comes after "alias"

Any help is appreciated! Thank you in advance!
Reply With Quote
  #2  
Old 09-18-2015, 01:57 AM
macropod's Avatar
macropod macropod is offline How to extract a word from an excel string with various lengths Windows 7 64bit How to extract a word from an excel string with various lengths Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

For a value in A1, you could use:
=LEFT(RIGHT(A1,LEN(A1)-SEARCH("alias",A1)-6),SEARCH(" ",RIGHT(A1,LEN(A1)-SEARCH("alias",A1)-6)))
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 09-18-2015, 05:21 AM
keywestsue keywestsue is offline How to extract a word from an excel string with various lengths Windows XP How to extract a word from an excel string with various lengths Office 2013
Novice
How to extract a word from an excel string with various lengths
 
Join Date: Sep 2015
Posts: 2
keywestsue is on a distinguished road
Default

Thanks so much! Worked perfectly!
Reply With Quote
  #4  
Old 09-18-2015, 07:32 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now How to extract a word from an excel string with various lengths Windows 7 64bit How to extract a word from an excel string with various lengths Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
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 a non formula approach and two steps needed ( but no extra column)
Ctrl+H
Replace what : *alias??
With : ( leave blank)
Click replace all
Ctrl+H
Replace what: )
With: (leave blank)
Click Replace All
__________________
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract a word from an excel string with various lengths Extract Excel Data from Chart in Word cillianmccolgan Word 1 08-15-2014 01:42 AM
How to extract only numbers from a STRING? Learner7 Excel 3 07-02-2013 06:25 AM
How to extract a word from an excel string with various lengths Extract Numbers from Alphanumeric String OTPM Excel 6 05-13-2011 12:52 AM
Extract numbers from a text string aleale97 Excel 4 02-10-2011 10:33 AM
Extract from String using Wildcard whousedmy Word 0 05-21-2009 01:35 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:17 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