johnrh Posted August 27, 2007 Posted August 27, 2007 I need to count the number of times either one word or another is found in a field in each record. For example say a field contains the text "Front, Back, Left, Right" I need to know how amny times either "Front" or "Left" turn up in this field in this record. (Obviously 2 in this case!!) I can use Patterncount() to find either "Front" or "Back" but not I think for both words. Patterncount would the answer 1 for both cases. I guess I am asking if you can put an "OR" condition in a patterncount statement. Or is there another solution that I am missing (very likely) Thanks for helping.
David Jondreau Posted August 27, 2007 Posted August 27, 2007 Plus sign. PatternCount(field; "text1") + PatternCount(field; "text2")
johnrh Posted August 27, 2007 Author Posted August 27, 2007 Thanks David Simple when you know how. John
Recommended Posts
This topic is 6358 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