Autocat Contains Search Terms

I was going through this guide How to Use AutoCat for Tiller Money Feeds sheets | Tiller Help Center
and based off the “Description Contains” section, that any words in there would be “or-ed” is there a way to make it an “and” ie i want the description to match all the key words, vs any?

1 Like

The Contains filter will try to match on the complete text of the cell. For example, if “Description Contains” has “Starbucks Coffee”, it will not try to match on “Starbucks” OR “Coffee”, but rather the full text with the space somewhere contiguous within the description text.

If you want to use multiple match criteria, I’d recommend either using the Regex functionality (which can be a bit complicated), creating discrete rules for all scenarios, or using the “Multiple Match Criteria” approach.

I’m assuming the Multiple Match Criteria means i can have under Description Contain “Starbucks”,coffee"? And that will match with an or?
what I mean by “and” is if i have Description Contain “Starbucks”,“coffee” I want the match require both words, not necessarily together in the description.

Yes, “Starbucks”,coffee" would match with an OR.
But you could do “Starbucks Coffee”, “Starbucks Wholesale Coffee”, “Starbucks Airport Coffee” to get the key permutations— this would be similar to the approach with discrete rules.

If you don’t like the approach :point_up:, you’ll probably need to look into Regex… which… again… can be fussy.

Really appreciate the help, i’ll give it a shot. Main reason for this is I want to make sure that the categorization doesn’t become too catch all, if i use more generic terms vs an actual company’s name. I’ll probably look into regex when I can
one example ijust found was Uber Eats, San Franciscoca and Uber Eats San Francisco, where the comma puts a kink in trying to use “Uber Eats San Francisco” as the search term

And in case anyone searches this later the regesx to find both is “Uber Trip?.San Francisco” you can repeat the ?. for as many spaces as needed it’s basically to find any character 0 to many times, using multiple of the ?. is for as many difference chars as needed.

In that case, I don’t understand why you don’t just use “Uber Eats” as your contains term… As for the regex, you can setup OR statements with those… or you can make them flexible like you show in your example. I’m not an expert.

The uber eat’s was probably not the most encompassing example. Maybe: “Walmart Plus” to code as subscription vs other items from Walmart to code as other items. Unless AutoCat runs first by top down list in the autocat tab then I guess having the “Walmart Plus” first would categorize those first and then having a “walmart” below that would then get the remainders? I guess regex has the ability to exclude specific words

I know this thread is 8 months old but I was running into a similar problem. I suggest to use the Regex feature. For example, on a Zelle transaction, it usually starts with “Zelle” and then ends with someones name, such as Zelle payment from John Doe (Checking XXXXXX1234) to PHIL THE PLUMBER.

So what you could do is the following…

  1. Created a “Full Description Regex” column in AutoCat
  2. Add criteria with a wildcard like Zelle(.*?)PHIL THE PLUMBER
  3. Set what you want to change, such as Category to Home Repairs

The key is using the Regex wildcard (.*?) to capture everything between 2 words (as long as you know the order of the words).

Hope this helps!

Thanks that’s what I ended up doing. But it seems i need to find a way to get an and feature, ie one regex i did was to find att, but that sometimes grabbed things others than phone services. and putting it at the bottom of the list doesn’t always help because sometimes it wouldn’t fit any other auto cat parameters.

I would like to use a regex to match two strings in any order (as an AND match) while being case insensitive so I can match with merchants that mix up their capitalization in a transaction description. For example, if I do the regex (?i)foo.*bar|bar.*foo inside the =REGEXMATCH Google Sheets formula it matches Foo bar and Foo Bar, but I get an error when I try it with AutoCat. Is that because (?i) is not supported in some way inside of Tiller’s Javascript code? Is there a way to write a regex for AutoCat so this will work?

Looks like the same question in two different topics.

How is this new Regex column connected to the Name and category columns so it functions correctly? Is the existing Full Description column kept or replaced? Sorry… im a rookie

How to Use AutoCat for Tiller Money Feeds sheets | Tiller Help Center check regex section in that link
so it’ll be like

Add a column name and append the Regex suffix to it to build rules using regular expressions. E.g. the column in the AutoCat sheet would be “Description Regex” or “Account Regex” (no quotes).

best way is to create a duplicate file and test it

Regex columns are for matching criteria, not string replacement.
If you have multiple matching criteria columns, they all have to match (AND’ing).
Replacement only occurs for AutoCat column names that equal Transactions sheet column names.

Any chance you can provide a sample showing an image of the autocat sheet and the formula?

Sure thing. Here are a couple examples.

Description Regex is the only matching criteria for these examples.
When Description Regex matches, the Transactions sheet Category and Description get written.

If Description Contains also had text, both Description Regex AND Description Contains would need to match.

For Credit Card Payment :

autopay|AUTO\S*\s+PAYMENT|^CARD.*PYMT|\sCR CRD PMT|\sAUTO PYMT|^Payment [-\s]*Thank You|E-PAYMENT|DIRECTPAY|Web Pymt|Crcardpmt

For Credit Card Cashback :

reward|points|CRD RWRD RDM|AWARD

Note that the 2nd example could also be accomplished by having an empty Description Regex with the following Description Contains :

"reward","points","CRD RWRD RDM","AWARD"

because regex for this case is only using the OR operator | and not other regex matching.
I chose regex for more flexible matching if/when Description changes occur.


Also note that all this matching is case-insensitive, despite the specified mixed case.

Is there any chance of this “AND” functionality request happening? The Regex examples above are WAY above my ability level. I cannot even understand what was written. But there are several items that I have to have “AND” or AutoCat is useless.

Do you have an example we could talk through?

Hi Mark S.
Thanks for offering to help. I’ll do the best I can to give you what you need to help me :slight_smile:

I want the following three items to be AutoCatted as “Category 1”.

  • Amazon Media Eu, Des:payment, ID:x5146,
  • Amazon .com, Inc. Des:payments, ID:FCSx1992,
  • Amazon .com.ca Ul Des:payment, ID:x4654,

Ideally I would search for the words “Amazon” && “payment”. That way they are distinguished from Amazon refunds (which would also have a positive “Amount”).

A Description Regex of:
amazon.*payment
should work.
Where .* is a wildcard that matches any characters (none or more).
And Regex is not case sensitive - e.g. amazon will match Amazon.

In this example, the Description field will also get overwritten with Amazon Payment.

AutoCat sheet:
image