How to categorize bank transactions in Excel

Updated November 9, 2026

Once your bank or credit card transactions are in a spreadsheet, the next step is usually sorting them into categories: groceries, rent, subscriptions, transfers, and so on. Excel can do that with a Category column and a PivotTable. This guide walks through a simple workflow that works whether the rows came from a bank CSV download or from converting a statement PDF.

What you need

Still looking at a PDF? See how to convert a bank statement PDF to Excel or credit card statement PDF to Excel first.

Step-by-step

  1. Get the transactions into Excel. Download a CSV from online banking, or convert the statement PDF and open the .xlsx file. Keep every month you want to summarize on one sheet, sorted by date.
  2. Add a Category column. Insert a new column to the right of Description (or at the end) and name the header Category.
  3. Fill a few categories by hand for common merchants you recognize: for example "GROCERY STORE #0479" → Groceries, "ONLINE TRANSFER TO SAVINGS" → Transfer, "PAYROLL DIRECT DEPOSIT" → Income. Leave unclear rows blank for now.
  4. Speed up the rest with Find and Replace or a lookup.
    • Find and Replace: filter the Description column, then fill the visible Category cells for one merchant pattern at a time.
    • Lookup table: on a second sheet, list unique description fragments in column A and categories in column B. In the Category column use a formula such as =IFERROR(VLOOKUP(LEFT(B2,12),Lookup!$A:$B,2,FALSE),"") and adjust the fragment length to match how your bank shortens merchant names. Copy the results as values when you're happy with them.
  5. Turn the list into an Excel Table. Select any cell in the data and choose Insert → Table (or Ctrl+T). Tables keep new rows inside the same structure and make PivotTables easier to refresh.
  6. Build a PivotTable. With a cell in the table selected, choose Insert → PivotTable, put it on a new sheet, then drag:
    • Category to Rows
    • Amount to Values (Sum)
    • Optionally Date to Columns or Filters if you want month-by-month totals
  7. Filter to spending. If Income and Transfers are mixed in, add Amount to Filters and show only values less than zero, or exclude those categories from the row labels. Check that the grand total matches a simple =SUMIF on the source sheet.
Start from a clean export. StatementToSheet turns a bank or credit card statement PDF into one row per transaction in your browser, with no upload. Convert a statement now →

Category ideas that stay useful

Excel tips once categories are filled

Common snags

Related guides

Convert a statement PDF