Rakitdata
SUMIFS & COUNTIFS: Rekap Otomatis Sesuai Kriteria — Rakitdata
Tips SpreadsheetSpreadsheet Tips

SUMIFS & COUNTIFS: Rekap Otomatis Sesuai KriteriaSUMIFS & COUNTIFS: Auto Recaps by Criteria

Cover artikel SUMIFS dan COUNTIFS


Mau tahu total penjualan produk A di bulan Mei, atau berapa transaksi yang statusnya lunas? Nggak perlu filter manual atau pivot. SUMIFS menjumlah dan COUNTIFS menghitung, keduanya berdasarkan kriteria yang kamu tentukan — otomatis, akurat, dan update sendiri begitu data nambah.

Want the total sales of product A in May, or how many transactions are marked paid? No manual filtering or pivots. SUMIFS sums and COUNTIFS counts, both by the criteria you set — automatically, accurately, and self-updating as data grows.

Beda SUMIFS vs COUNTIFSSUMIFS vs COUNTIFS

Dua rumus ini bersaudara, bedanya cuma di hasil akhir. SUMIFS menjumlahkan angka (misal total omzet produk A), sementara COUNTIFS menghitung jumlah baris (misal berapa pesanan produk A). Keduanya pakai pola kriteria yang sama persis.These two are siblings, differing only in the final result. SUMIFS adds up numbers (e.g. total revenue of product A), while COUNTIFS counts rows (e.g. how many orders of product A). Both use the exact same criteria pattern.

  • Pakai SUMIFS kalau mau angka total: omzet, qty terjual, total biaya.Use SUMIFS for a total number: revenue, quantity sold, total cost.
  • Pakai COUNTIFS kalau mau jumlah kejadian: berapa pesanan, berapa pelanggan, berapa tugas selesai.Use COUNTIFS for a count of occurrences: how many orders, customers, completed tasks.

1. Struktur SUMIFS1. SUMIFS structure

=SUMIFS(kolom_jumlah; kolom_syarat1; syarat1; ...). Yang pertama adalah kolom yang akan dijumlah, sisanya pasangan kolom-syarat. Contoh: =SUMIFS(C:C; A:A; "Produk A") menjumlah kolom C untuk setiap baris yang produknya “Produk A”.=SUMIFS(sum_col, cond_col1, cond1, ...). The first is the column to sum, the rest are column-condition pairs. Example: =SUMIFS(C:C, A:A, "Product A") sums column C for every row where the product is “Product A”.

Perhatikan urutannya: di SUMIFS, kolom yang dijumlah ada di depan. Ini sering ketuker sama SUMIF (tanpa S) yang urutannya beda. Kalau kamu baru belajar, pakai SUMIFS aja untuk semua kasus biar konsisten.Note the order: in SUMIFS, the column to sum comes first. People often confuse this with SUMIF (no S), which has a different order. If you're new, just use SUMIFS for everything for consistency.

2. Tambah banyak kriteria2. Add multiple criteria

Kekuatan SUMIFS ada di sini: tinggal tambahin pasangan kolom-syarat sebanyak yang kamu mau. Misal total Produk A yang statusnya Lunas: =SUMIFS(C:C; A:A; "Produk A"; B:B; "Lunas"). Semua syarat harus terpenuhi sekaligus (logika DAN).SUMIFS's power is here: just add as many column-condition pairs as you want. E.g. total of Product A that's Paid: =SUMIFS(C:C, A:A, "Product A", B:B, "Paid"). All conditions must be met at once (AND logic).

Mau logika ATAU (misal Produk A atau B)? SUMIFS nggak bisa langsung — jumlahkan dua SUMIFS: =SUMIFS(...;"A") + SUMIFS(...;"B"). Ini trik yang sering kepake buat gabungin beberapa kategori.Want OR logic (e.g. Product A or B)? SUMIFS can't do it directly — add two SUMIFS: =SUMIFS(...,"A") + SUMIFS(...,"B"). A handy trick for combining categories.

3. COUNTIFS buat hitung jumlah3. COUNTIFS to count

Polanya sama persis, tapi tanpa kolom jumlah di depan karena yang dihitung cuma jumlah baris: =COUNTIFS(A:A; "Produk A"; B:B; "Lunas") menghitung ada berapa baris yang cocok kedua syaratnya. Pas buat ngitung jumlah pesanan, pelanggan aktif, atau tugas selesai.The pattern is identical, but without a sum column up front since you're counting rows: =COUNTIFS(A:A, "Product A", B:B, "Paid") counts how many rows match both conditions. Great for counting orders, active customers, or completed tasks.

4. Pakai operator & rentang4. Use operators & ranges

Syarat nggak harus teks persis. Kamu bisa pakai operator: ">100" (lebih dari 100), ">="&A1 (ngacu ke isi sel), atau wildcard "*kaos*" (mengandung kata “kaos”). Ini yang bikin SUMIFS bisa buat rekap rentang harga atau pencarian teks separuh.Conditions needn't be exact text. You can use operators: ">100" (over 100), ">="&A1 (referencing a cell), or a wildcard "*shirt*" (contains “shirt”). This lets SUMIFS handle price ranges or partial text searches.

Buat rekap per rentang tanggal, gabungkan dua syarat: ">="&A1 dan "<="&B1 di kolom tanggal, dengan A1 dan B1 berisi tanggal awal dan akhir. Ini pondasi laporan “penjualan bulan ini” yang update otomatis.For a date-range recap, combine two conditions: ">="&A1 and "<="&B1 on the date column, with A1 and B1 holding the start and end dates. This is the foundation of a self-updating “sales this month” report.

5. Contoh nyata: rekap penjualan bulanan5. Real example: monthly sales recap

Kamu punya sheet transaksi: kolom tanggal, produk, dan nominal. Di sheet laporan, kamu mau tabel “total omzet per produk bulan ini”. Tulis daftar produk di kolom A, lalu di kolom B: =SUMIFS(Transaksi!C:C; Transaksi!B:B; A2; Transaksi!A:A; ">="&$E$1; Transaksi!A:A; "<="&$E$2) dengan E1 dan E2 tanggal awal-akhir bulan.You have a transactions sheet: date, product, and amount columns. On a report sheet you want a “total revenue per product this month” table. List products in column A, then in column B: =SUMIFS(Transactions!C:C, Transactions!B:B, A2, Transactions!A:A, ">="&$E$1, Transactions!A:A, "<="&$E$2) with E1 and E2 the month's start-end dates.

Ganti tanggal di E1/E2, seluruh tabel langsung berubah ke bulan itu. Tambah satu COUNTIFS di sebelahnya buat lihat berapa transaksi per produk. Dalam lima menit kamu punya laporan bulanan yang hidup, tanpa pivot.Change the dates in E1/E2 and the whole table instantly reflects that month. Add a COUNTIFS beside it to see transactions per product. In five minutes you have a live monthly report, no pivot needed.

6. Gabung dengan dropdown & rumus lain6. Combine with dropdowns & other formulas

  • + Dropdown — jadikan kriteria ngacu ke sel dropdown, jadi laporan bisa diganti-ganti cukup pilih dari daftar.+ Dropdown — make the criterion reference a dropdown cell, so the report switches just by picking from a list.
  • + pembagian — bagi SUMIFS satu produk dengan SUMIFS total buat dapat kontribusi persen.+ division — divide one product's SUMIFS by the total SUMIFS for a percentage contribution.
  • + EOMONTH — bikin tanggal akhir bulan otomatis buat rekap yang selalu pas sebulan penuh.+ EOMONTH — auto-generate the month-end date for a recap that always spans a full month.

Tips: Hindari pilih seluruh kolom (A:A) kalau datamu udah puluhan ribu baris — batasi rentangnya (A2:A5000) biar spreadsheet nggak lemot. Tapi pastikan semua rentang kriteria tingginya sama, kalau beda ukuran hasilnya error.Tip: Avoid whole columns (A:A) once data hits tens of thousands of rows — limit the range (A2:A5000) to keep the sheet fast. But make sure all criteria ranges are the same height; mismatched sizes cause an error.

7. Hal yang perlu diperhatikan7. Things to watch

(1) Semua rentang harus sama tinggi — kolom jumlah dan kolom syarat harus mencakup baris yang sama persis. (2) Angka yang tersimpan sebagai teks nggak akan kejumlah; pastikan kolom nominal beneran angka. (3) Teks kriteria tidak case-sensitive (“Lunas” = “lunas”), tapi spasi ekstra tetap ngaruh — rapihin data pakai dropdown biar seragam.(1) All ranges must be the same height — the sum column and criteria columns must cover exactly the same rows. (2) Numbers stored as text won't sum; make sure the amount column is truly numeric. (3) Text criteria aren't case-sensitive (“Paid” = “paid”), but extra spaces still matter — tidy data with dropdowns to stay uniform.

Cheat sheet SUMIFS/COUNTIFSSUMIFS/COUNTIFS cheat sheet

Pola yang paling sering dipakai:The most-used patterns:

TujuanGoalRumusFormula
Total 1 syaratTotal, 1 condition=SUMIFS(C:C;A:A;"A")=SUMIFS(C:C,A:A,"A")
Total 2 syaratTotal, 2 conditions=SUMIFS(C:C;A:A;"A";B:B;"Lunas")=SUMIFS(C:C,A:A,"A",B:B,"Paid")
Hitung barisCount rows=COUNTIFS(B:B;"Lunas")=COUNTIFS(B:B,"Paid")
Lebih dariGreater than=SUMIFS(C:C;C:C;">100000")=SUMIFS(C:C,C:C,">100000")
Rentang tanggalDate range=SUMIFS(C:C;A:A;">="&E1;A:A;"<="&E2)=SUMIFS(C:C,A:A,">="&E1,A:A,"<="&E2)
Mengandung kataContains word=SUMIFS(C:C;A:A;"*kaos*")=SUMIFS(C:C,A:A,"*shirt*")

Dua rumus ini adalah fondasi semua laporan ringkas. Kuasai SUMIFS + COUNTIFS plus trik operator dan rentang tanggal, dan separuh kerjaan rekap kamu selesai tanpa pivot.These two are the foundation of every quick report. Master SUMIFS + COUNTIFS plus the operator and date-range tricks, and half your recap work is done without a pivot.

Nggak sempat ngoprek sendiri? Pakai template yang udah jadi.No time to tinker? Use a ready-made template.

Rakitdata punya puluhan template Google Sheets siap pakai — rumus, dashboard, dan rekapnya udah jalan dari awal.Rakitdata has dozens of ready-to-use Google Sheets templates — formulas, dashboards, and recaps already running from the start.