Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have string like this ALERT:GE-EU-DK-VALS001 -Telia Traffic -IN
I wan to get the GE-EU-DK-VALS001
Hi,
I cannot use this. sometimes there may be GE-EU-DK-VAL0001
That's why you need to provide some more data so it's clear what the pattern is for splitting the field.
Otherwise we need to guess.
if(index(string,':')>0, left(SubField(string,':',2),16),string)
In string ALERT:GE-EU-DK-VAL001 -Telia Traffice. only highlighted is variable and sometimes there could or could not be the space before -telia. Rest format is same
You need to provide a list of say 10-20 different examples. Without this, you are being given suggestions that only work for one pattern and will fail where the data structure differs.
Hi qvlearn123
It is always better to provide sample data more to replicate all your requirement.
Please attach the sample application to demonstrate your requirement. Thank you.
Trim(TextBetween(Your_field, ':', '-Telia'))
TextBetween(YourFieldName,'ALERT:','-Telia')
hope this helps
Regards
Marco
Try
=TextBetween(PurgeChar('ALERT:GE-EU-DK-VALS001 -Telia Traffic -IN', ' '), ':', '-Telia')
OR
=TextBetween(PurgeChar('ALERT:GE:PE:EU:DV001-Telia Traffic -I', ' '), 'ALERT:', '-Telia')