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 7312 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a field called "topic_id"...contains information such as "8BS".

I want to set up a calculation field that uses information within the text string to calculate data.

eg if the text string contains "8" then "Year 8" is generated.

in a separate field...if the text string contains "8" then "Stage 4" is generated.

I can't identify a text function that does this...is there one or do I need to make up a script?

TIA

Stephen K

Posted

The TextToNum() function will return any numbers in a field with the text stripped off. Then you can use them in a calculation as necessary. If the data may contain more than one number separated by text, it gets a bit more complicated.

Posted

Stephen K:

The PatternCount() function can be used in combination with Case() to conditionally do all the string generation for you...

Case(

PatternCount( topic_id ; "8" ) ; "Year 8" ;

PatternCount( topic_id ; "7" ) ; "Year 7" ;

...

)

BobWeaver: good to see you back!

Posted

Yeah it's hard having to type while standing up. LOL

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