Jump to content

Calculation from a text string


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

Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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