Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Last value in string

Hi,

I have Field values like,  001-AB-002-CD, 11-AB , AS-001-AK. Now I want to find the last value from string. For these values, I want to find CD,AB, AK

1 Solution

Accepted Solutions
marcus_sommer

Try: subfield(Field, '-', -1)

- Marcus

View solution in original post

4 Replies
marcus_sommer

Try: subfield(Field, '-', -1)

- Marcus

Kushal_Chawda

=mid(Field, index(Field,'-',-1)+1)

Anonymous
Not applicable
Author

Hi,

Try right(Field, 2)

Not applicable
Author

Values can be 3 or 4 or 5 digits it is not fixed. So it will not work. But really thanks for the reply