jarbro Posted November 8, 2013 Posted November 8, 2013 I have been tasked with segmenting our customer database alphabetically. I have certain territories which require any customer organization whose name starts with A-M go to one employee and N-Z to a second one. If the Organization = Bluefish Industry and it matches any character within the list "ABCDEFGHIJKLM" I would like it to return 0 or 1. I would also like to be able to handle stripping out any articles in the event the corporation name is "The Bluefish Industry" I was looking at using PatternCount (Left(company_name;1); "ABCDEFGHIJKLM") however I don't believe I have it formatted correctly. Any ideas?
comment Posted November 8, 2013 Posted November 8, 2013 You've got it backwards - it needs to be = PatternCount ( "ABCDEFGHIJKLM" ; Left ( company_name ; 1 ) ) I would also like to be able to handle stripping out any articles Are there any articles other than "The" that would qualify?
comment Posted November 8, 2013 Posted November 8, 2013 Ok, so how about = Let ( [ art = LeftWords ( company_name ; 1 ) = "the" ; word = MiddleWords ( company_name ; 1 + art ; 1 ) ] ; Left ( word ; 1 ) > "m" )
Recommended Posts
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