Belvedere Posted January 18, 2014 Posted January 18, 2014 I have created a calculation field named Number2 I want to use this field to remove all of the puncuation from another field Number1 Both fields are text fields becasue they not only have numbers in the but also have letters somtimes. and example of what is in the field Number1 is 11-44-25-08-000B1.00CE and I would like the calculation result in Number2 to look like 11442508000B100CE Any help would be greatly appreciated. I tried all kinds of posts and could not find anything that would remove puncuation from a field containging number and letters.
comment Posted January 18, 2014 Posted January 18, 2014 This is a problem of definition: you can either remove all punctuation characters, or leave in only alphanumeric characters. Either way, you must make a list of the forbidden/allowed characters. "Punctuation" is a very wide term and so is "alphanumeric". Once you have a list, use either the Substitute() function to remove the blacklisted characters, or the Filter() function to preserve the white-listed ones.
Belvedere Posted January 18, 2014 Author Posted January 18, 2014 Never mind, I figured it out. Substitute(Substitute(Number1; "-"; ""); "."; "")
Recommended Posts
This topic is 4230 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now