How does one extract a specific sting/words from each cell?
Especially if [formatted data] varys in characters (not suitable for regular LEFT, MID, RIGHT functions use).
Take a look at the attachment.
Sample Question.xlsx
How does one extract a specific sting/words from each cell?
Especially if [formatted data] varys in characters (not suitable for regular LEFT, MID, RIGHT functions use).
Take a look at the attachment.
Sample Question.xlsx
Last edited by wearwestern; 10-25-2012 at 03:13 PM.
Try =MID(A2,SEARCH(".html",A2)-6,6)
Does that work for you?
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
Yes. Thank you. I am sending oceans of reps right now.
So essentially what this function does is?
=MID[TargetCell, Search("specificstring",targetcell)-???, return 6 characters)?
Last edited by wearwestern; 10-25-2012 at 03:28 PM. Reason: repped
Search returns the starting position of a string or a single character. We use it to find where we want to extract our 6 characters using MID
=MID (Target Cell, starting point, # of characters)
Since the starting point of ".html" is actually 6 characters after the beginning of what we want to extract, I subtract 6 from the value returned by SEARCH
Hope that helps.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks