Most banks let you download your transactions as a CSV. The annoying part is turning WHOLE FOODS MKT #123 and UBER *TRIP into categories without typing them by hand or connecting your bank to an app.

Here is a small, formula-only way to do it: a Rules sheet with keywords, and one formula that gives each transaction the category of the first keyword (top to bottom) found in its description. No scripts, no macros, no LAMBDA.

1. The Rules sheet

A (Keyword) B (Category)
1 Keyword Category
2 NETFLIX Subscriptions
3 TRANSFER TO SAV Transfer
4 PAYMENT THANK YOU Transfer
5 WHOLE FOODS Groceries
6 UBER EATS Eating Out
7 UBER Transport
8 PAYROLL Salary

Order matters: UBER EATS sits above UBER, so food orders don't land in Transport.

2. The transactions sheet

Paste your CSV so that column A is the date, B the description and C the amount (negative = money out). Then add two helper columns.

D2 — score of the first matching rule (0 = none):

=SUMPRODUCT(MAX((Rules!$A$2:$A$300<>"")*ISNUMBER(SEARCH(Rules!$A$2:$A$300,B2))*(1000-ROW(Rules!$A$2:$A$300)))) 

E2 — the category:

=IF(D2=0,"Uncategorized",INDEX(Rules!$B$1:$B$1000,1000-D2)) 

Fill both down.

How D2 works:

  • SEARCH(keyword, B2) returns a number when the keyword appears anywhere in the description (not case-sensitive).
  • ISNUMBER(...) gives TRUE / FALSE for every rule row at once; the multiplication treats them as 1 / 0.
  • (Rules!A2:A300<>"") ignores empty rule rows.
  • 1000-ROW(...) gives higher rows a bigger score, so MAX picks the topmost matching rule.
  • The outer SUMPRODUCT is a common trick to get the array evaluated without Ctrl+Shift+Enter. I tested it in LibreOffice only; if your Excel or Google Sheets shows a wrong number, enter D2 as an array formula (Ctrl+Shift+Enter in older Excel, ARRAYFORMULA in Sheets).

E2 turns the score back into a row number (1000-D2) and reads the category. If nothing matched, it says Uncategorized instead of guessing.

(The 1000 only has to be bigger than the last rule row.)

Avoid *, ? and ~ inside keywords: SEARCH can treat them as wildcards, so a rule might match more than you meant.

3. Keep transfers out of income and spending

Moving money to savings is not spending, and getting it back is not income. Paying off a credit card is also not new spending if you already track that card's purchases as their own rows (otherwise those purchases would disappear). Rows categorized as Transfer can be left out with SUMIFS:

Income: =SUMIFS($C:$C,$C:$C,">0",$E:$E,"<>Transfer") Spending: =-SUMIFS($C:$C,$C:$C,"<0",$E:$E,"<>Transfer") Transfers: =SUMIFS($C:$C,$E:$E,"Transfer") Not yet categorized: =COUNTIF($E:$E,"Uncategorized") 

Notes:

  • Spending includes money-out rows that are still Uncategorized (in the example below, CORNER BAKERY).
  • Transfers is a net total, so money in and money out can cancel each other.
  • Banks word transfers differently, so look at your own CSV once and add rules for the wording your bank uses.

4. Result on a small example

I checked this with these made-up rows (recalculated in LibreOffice):

Description Amount Category
ACME CORP PAYROLL 2450.00 Salary
WHOLE FOODS MKT #123 -62.33 Groceries
UBER *TRIP -18.40 Transport
UBER EATS ORDER -7.25 Eating Out
Netflix.com -15.49 Subscriptions
ONLINE TRANSFER TO SAV 9876 -500.00 Transfer
CARD PAYMENT THANK YOU -110.25 Transfer
CORNER BAKERY -23.00 Uncategorized

Income 2,450.00 · Spending 126.47 · Transfers -610.25 · 1 row left to categorize.

Things to know:

  • Keywords can overlap (UBER is inside UBER EATS), so put the more specific ones higher and glance over the result.
  • Only SEARCH, ISNUMBER, ROW, MAX, SUMPRODUCT, IF, INDEX, SUMIFS and COUNTIF are used. All exist in Excel and Google Sheets, but I only ran this exact sheet in LibreOffice.
  • If your bank exports amounts as text (for example $1,234.56 or (12.00)), convert them to numbers first.

The ready-made version (disclosure: I sell it)

If you'd rather not build this yourself, I made a template around the same idea: BankPaste Budget ($12, .xlsx). You paste a bank CSV, type which columns are date / description / amount (one signed column or separate money-out / money-in), and it adds a monthly view with budget vs actual and the last 12 months. It also flags uncategorized rows and marks the month "Provisional" until they're sorted. It comes with a demo copy and about 45 starter keyword rules. Limits: US/UK-style numbers (1,234.56), dates as M/D/Y, D/M/Y or Y-M-D, up to 1,000 rows and one account per paste — check the requirements on the product page before buying. Its starter rules are not the example rules above (for instance, there is no PAYMENT THANK YOU rule), and it has no starter rules for credit-card payments, because whether a card payment is spending or a transfer depends on whether you also track that card's purchases — you pick the category yourself in a My category column. A card payment row that matches no rule shows up as uncategorized; if its description contains another starter keyword (for example TRANSFER), it gets that category instead, so check every card payment row. It's tested in LibreOffice; I haven't tested it in Excel or Google Sheets myself yet.

https://caremini.gumroad.com/l/bankpaste-budget

The formulas above are free to use either way.