DEV Community

thienkrik - small shop
thienkrik - small shop

Posted on

Total spending by category with one SUMIFS — no pivot table needed

Small shops often track income and expenses in one long list, then wonder where the money went. A pivot table works, but there is a lighter way: one SUMIFS per category on an Overview sheet.

Set it up like this:

  1. A Transactions sheet with Date, Description, Category, Amount — one row per transaction.
  2. An Overview sheet listing each category once, with a SUMIFS that adds Amount where Category matches.
  3. Add a Month column to the transactions and include it in the SUMIFS, so switching months is one cell change.

In my November 2026 sample — 33 transactions across 10 categories — inventory alone is 15,100,000 VND out of 29,880,000 VND total spending (50.5%). Total income 40,640,000 VND, profit 10,760,000 VND (26.5%). One number shows which category eats the most, without opening a pivot table.

Two habits keep it honest: pick the category when you type the transaction, not at month-end; and keep the category list short — 10 is enough for a small shop.

How do you total spending by category — SUMIFS, pivot table, or by hand?

Disclosure: this post was drafted with AI assistance and reviewed by the author.

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

The categorize-at-entry habit is the part I'd steal — that's exactly where my own totals used to go fuzzy, trying to remember what a transaction was at month-end. The November sample sells it too: inventory at 50.5% of spending is the kind of number you only notice once it's totaled by category. I still lean on a pivot table for the monthly view — does the Month column in the SUMIFS stay manageable once you have a full year of transactions in there, or does it start to get unwieldy?