Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

instr from the far right questions. 4

Status
Not open for further replies.

dobe1

Technical User
Jun 28, 2004
65
US
I am trying to to locate the last word in a string. I have a list of street names with suffix, and wish to find the suffixes.

For example in :
St. Marlow CT
Bridgstone Prkwy
John Monroe St

If I were looking for the index of the first space, this would be easy. I would use the following code:
instr(street, " "). I then would use the numeric value provided by the instr function, and use the mid function to parse out the data needed.

The question is, how do I do this from the right?

Dobe
 
Or just use the InStrRev function which does exactly that.
 
InStrRev (like Split, Join, Replace, ...) came with office2k.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks,

Your help is appreciated.

DObe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top