Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hello,

I have/capture the following data and it can look like this:

12345

12345-xx

123456-xx

1234567-xx

I want to make a new calcuation field that strips away the "-" AND anything to the right of it. So the above data would look like this in the new field:

12345

12345

123456

1234567

Any tips/help would be awesome!

Thanks,

Ryan

Posted

Try:

Left ( YourTextField ; Position ( YourTextField ; "-" ; 1 ; 1 ) - 1 )

Posted

Try:

LeftWords ( Substitute ( text ; "-" ; " " ) ; 1 )

Another option would be simply:

LeftWords ( text ; 1 )

but this will fail if the first "x" can be a digit.

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