跳到正文
DEV Community· thienkrik - small shop·· 2 小時前AI 評分33

用一個 SUMIFS 按類別統計總支出,毋須樞紐分析表

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

AI 導讀

小型商店可在概覽工作表中,為每個類別設定一個 SUMIFS,按類別統計總支出,毋須使用樞紐分析表。交易表加入月份欄後,可透過更改一個儲存格切換月份。範例中,33 筆交易涵蓋 10 個類別,庫存支出為 15,100,000 VND,佔總支出 29,880,000 VND 的 50.5%。

正文

thienkrik - small shop

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.

來源:DEV Community · dev.to