仕組みと動作原理
COUNTIFS関数はExcel業務を効率化する代表的な関数です。複数の範囲内で複数の条件をすべて満たすセルの個数をカウントします。 複雑な集計や参照処理を簡素化し、データ分析の精度と生産性を飛躍的に高めます。
💡 わかりやすい要約
Counts how many cells in one or more ranges meet specific conditions.
"Think of this like counting toys. It counts only the toys that match your description (like counting only red blocks, ignoring blue cars and red balls)."
構文.
標準Excel表記法=COUNTIFS(条件範囲1, 条件1, [条件範囲2, 条件2], ...)引数一覧.
この関数で指定できるすべての引数について詳しく解説します。
The first range to apply the first condition against.
指定例:A2:A6The condition to check in criteria_range1.
指定例:"Pending"The second range to evaluate.
指定例:B2:B6The condition to check in criteria_range2.
指定例:">100"具体的な計算例
ステップ別の実務シナリオFiltered Survey Counts
Count how many high-spending customers gave a positive response.
| Customer | Purchase Size | Feedback Yes/No | Min Purchase | Qualified Count |
|---|---|---|---|---|
| John | 120 | Yes | >=100 | — |
| Sarah | 45 | Yes | — | — |
| Mike | 250 | No | — | — |
=COUNTIFS(B2:B6, ">=100", C2:C6, "Yes")Evaluates COUNTIFS over the sample table cells, placing the verified output in cell E2.
数式ジェネレーター
ウィザードを開く引数を入力するだけで、シートにそのまま貼り付けて使える数式を作成できます。
=COUNTIFS()出力される値の特性
Returns "Calculated output" based on sample evaluation criteria and active cell references.
実務上のベストプラクティス
- Use wildcards like "?" (matches single char) and "*" (matches any sequence) to count partial text matches.
- Use COUNTIFS to count blanks using double quotes: "" or non-blanks using "<>".
よくあるミスと注意点
- Just like SUMIFS, all criteria ranges must be the exact same height and width, or the function fails with a #VALUE! error.
各プラットフォーム対応表
実際のExcelおよびGoogleスプレッドシートの計算エンジン仕様に基づいた検証結果です。
Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.
100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.
よくある質問と回答
技術解説Can I use COUNTIFS across different worksheets in Excel?↓
Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =COUNTIFS(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.
What is the most common reason for errors in COUNTIFS?↓
Just like SUMIFS, all criteria ranges must be the exact same height and width, or the function fails with a #VALUE! error.
Does COUNTIFS work identically in Google Sheets?↓
Yes, COUNTIFS is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.