Kirix Support Forums
remove alphas from string
4 posts
• Page 1 of 1
remove alphas from string
How do I remove the alpha characters from a string in a calculated field? I only want the numeric values.
- abenitez77
- Registered User
- Posts: 143
- Joined: Fri Jan 21, 2011 12:42 pm
Re: remove alphas from string
I'd suggest using the TRANSLATE() function like:
TRANSLATE(fieldname,"A","")
TRANSLATE(fieldname,"A","")
Ken Kaczmarek
Kirix Support Team
Kirix Support Team
-
Ken - Kirix Support Team
- Posts: 147
- Joined: Mon Dec 19, 2005 10:36 am
Re: remove alphas from string
This works fine if I know the letters that I want to remove...but is there a way to select a range? i.e. [A-Z]
- abenitez77
- Registered User
- Posts: 143
- Joined: Fri Jan 21, 2011 12:42 pm
Re: remove alphas from string
You'd need to select them all:
TRANSLATE(fieldname,"ABCDEFGHIJKLMNOPQRSTUVWXYZ","")
TRANSLATE(fieldname,"ABCDEFGHIJKLMNOPQRSTUVWXYZ","")
Ken Kaczmarek
Kirix Support Team
Kirix Support Team
-
Ken - Kirix Support Team
- Posts: 147
- Joined: Mon Dec 19, 2005 10:36 am
4 posts
· Page 1 of 1
Return to Strata Help & Feedback