Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to test if a string in a field contain any numbers , if yes then group it in 'OTHER' else if the string in field contain no numbers then the field value stay the same.
But there are no fix order for the number to appear in the string - so i cannot test spesific positions. String can look like 'HARBOUR' then it will remain 'HARBOUR' and in the case of 'HARBOUR77' it must change to 'OTHER'
At the end my field in the records will look like this
GroupName
=========
HARBOUR
PORT
OTHER
LOADDECK
OTHER
ect.....
it would be something like if(field1 = num(whatever) , 'OTHER', field1) as Groupname
Help would be appreciated
Regards
Louw
May be this:
If(Len(Trim(KeepChar(Field1, '0123456789'))) > 0, 'OTHER', Field1) as GroupName
May be this:
If(Len(Trim(KeepChar(Field1, '0123456789'))) > 0, 'OTHER', Field1) as GroupName
If(YourField = purgechar(YourField,'0123456789'),'There are no numbers','There is at least one number')
Thank you for both of you, Sunny T and M Woolf, both of the solutions you gave me worked.
regards
Louw
Totally help me weed out my list of results!!! Thanks so much.