serzone Posted January 8, 2008 Posted January 8, 2008 I have an 2-column excel file that I'm importing into FileMaker. The columns are Date Description After the import, in a third column: Type I want to display a shortened description based on the one imported. e.g. if imported description is: Safeway PMNT 00554 XLD 01/01/07 the short description would be: Groceries BUT the tricky part is that i want to base the parsing on another table. That is, there will be another table that has 2 fields: Keyword (in our case a record would show Safeway) Type (in our case it would be Groceries). Thanks
comment Posted January 8, 2008 Posted January 8, 2008 Will the keyword always be the first word in imported description?
serzone Posted January 8, 2008 Author Posted January 8, 2008 unfortunately, no. There's no real pattern i can come up with... I'm trying to parse statement entries (they differ from bank to bank and can also change from month to month)... I wish there were some way of doing a patterncount with wildcards or maybe there's another way...
comment Posted January 8, 2008 Posted January 8, 2008 It's difficult when there are no rules. Perhaps you could try something like: Substitute ( Description ; " " ; ¶ ) This would break each word into a line by itself, allowing you to use this as a matchfield to the Types table. Assuming no single description will contain more than one keyword.
serzone Posted January 8, 2008 Author Posted January 8, 2008 That's close enough! I will do a few substitutions on the description field (on chars such as " " and "#") and that should bring me close enough to what i need. Thanks!
Recommended Posts
This topic is 6162 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