deego55 Posted November 10, 2004 Posted November 10, 2004 hi- I have an urgent need for some calculation help. I have a book title field in my records. I need to create a calulation field that removes all the spaces and puncuation in the titles and combines all the words. For instance, I have a title of: U.S. Communication services market : overview and future outlook. NEED CONVERTED TO: USCommunicationservicesmarketoverviewandfutureoutlook Is this possible? I need it to function the same no matter what the title or punctuation.
-Queue- Posted November 10, 2004 Posted November 10, 2004 How about Filter( titlefield; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" ) ?
deego55 Posted November 10, 2004 Author Posted November 10, 2004 Hmm... Ive never used the filter method. I'll try that. I did do the following calculation and it worked well. Is this an ugly solution? Substitute(Substitute(Substitute(Substitute(Substitute(Substitute(Substitute(Substitute(Substitute(Substitute(Substitute(TI; "("; ""); ")"; ""); "."; ""); "-"; ""); " "; ""); "/"; ""); ":" ; ""); "^A" ; ""); "?" ; ""); ";" ; ""); "," ; "")
-Queue- Posted November 10, 2004 Posted November 10, 2004 In version 7, yes. Substitutes can be combined in 7. Substitute( TI; ["("; ""]; [")"; ""]; ["."; ""]; ["-"; ""]; [" "; ""]; ["/"; ""]; [":"; ""]; ["^A"; ""]; ["?"; ""]; [";"; ""]; [","; ""] ) I think Filter would still be faster. What is the ^A for though?
Recommended Posts
This topic is 7581 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