Jump to content

Separating a string


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

Recommended Posts

I have a field that is imported with a title and a URL (ie The Alamo, http://www.thealamo.org) I have imported the records into a field then used two fields to calculate the necessary information.

Title - MiddleWords(Substitute(impAtt;",";" ");1;2)

URL - MiddleWords(Substitute(impAtt;",";" ");4;2)

The problem is that the Title field has a variable amount of words. How do I separate between the comma no matter how many words on each side. Thanks.

Edited by Guest
Link to comment
Share on other sites

Hey there!

You could use a calculation as follows, for the title:

Left(impAtt; Position(impAtt; ","; 1; 1) -1)

and then for the URL:

Right( impAtt; Length(impAtt) - Position(impAtt; ","; 1; 1)-1 )

Hope that helps!

Link to comment
Share on other sites

This topic is 6534 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.