Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Findoneof function and wildcards

Hi

I have a field which has a naming convention of Name - Year - Type

I want to just get the type from this so I use the expression:

=Right([FieldName],len([FieldName])-FindOneOf([FieldName], '-',2)-1)

The problem is I have found some names contain '-' which means it pulls part of the name as well.

How can I use the findoneof function with wilcards to find 'YYYY -'

Thanks in advance for your help.

Jon

1 Solution

Accepted Solutions
Not applicable
Author

sory i mean :

subfield(FieldName,'-',SubStringCount(FieldName,'-')+1)

View solution in original post

5 Replies
Not applicable
Author

does Type contain '-' to?

Not applicable
Author

No.

Not applicable
Author

this expression should do what you want:

subfield(FieldName,'-',SubStringCount(FieldName,'-'))

Not applicable
Author

sory i mean :

subfield(FieldName,'-',SubStringCount(FieldName,'-')+1)

Not applicable
Author

Perfect! Thank you.