Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

extract text from single field using leftwords-rightwords-wordcount


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

Recommended Posts

  • Newbies
Posted

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.

  • Newbies
Posted

Try =

MiddleWords ( text ; WordCount ( text ) - 1 ; 1 )

Legend, been staring at this for hours, it just became a blur.

Thank you

This topic is 4997 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
×
×
  • Create New...

Important Information

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