Howdy!
I found that my category rules in AutoCat sometimes put both, expense and refund of the same vendor into the same account. So I may end up with credit categorized as expense or vice versa. Assuming that credit is always positive, and debit/expense is negative, it helps to add 0.01 MIN amount for credit and -0.01 MAX for expense. This can be achieved with these two formulas (thanks ChatGPT!)
Put this into ‘Amount Min’
=IFNA(SWITCH(VLOOKUP($A2, Categories!$A:$C, 3, FALSE),“Income”, 0.01, “Expense”, “”,“”), “”)
Put this into ‘Amount Max’
=IFNA(SWITCH(VLOOKUP($A2, Categories!$A:$C, 3, FALSE),“Income”, “”, “Expense”, -0.01,“”), “”)
This assumes that category names are in column A of both sheets. Adjust as needed.
Transfers don’t get min/max values.