Thread: [Solved] Text in string
View Single Post
 
Old 11-22-2014, 08:07 PM
Bruno Campanini Bruno Campanini is offline Windows 8 Office 2013
Novice
 
Join Date: Nov 2014
Posts: 19
Bruno Campanini is on a distinguished road
Default

Quote:
Originally Posted by projectpupil7 View Post
Hi all, my first question as a newbie.

I have hundreds of text entries in a worksheet typically like this

"Landlord work 110 / RJ*** / 2002 / RJL513 / 0 / A**** / AMSHDAM"

and what i need to do is extract this "RJL513" piece of text from the string.



I have tried using this =MID(R3,FIND("/",R3)+1,6) but can only get to the first slash.
Try this UDF:

Public Function SS(S As String) As String
SS = Trim(Split(S, "/")(3))
End Function

Bruno
Reply With Quote