Jump to content

extract text from single field using leftwords-rightwords-wordcount


tmoreland
 Share

This topic is 4341 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hi guys,

Currently i am trying to extract the State (always second word from the right) from an address field with only spaces in it. Eg: Allambie Heights NSW 2100 not all suburbs have 2 names Eg: Abbotsford NSW 2046.

i have been able to extract the suburb using: (LeftWords ( Contact Management::Correspondence Suburb ; WordCount ( Contact Management::Correspondence Suburb ) - 2 ) ).

As well at the poste code using: RightWords ( Contact Management::Correspondence Suburb ; 1 )

But am stuck on the State, some have 3 intinals and others 2. The state is always positioned as above with no commas.

Help would be appreciated.

Link to comment
Share on other sites

This topic is 4341 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.