ExcelFormulas logoExcelFormulas.
AIに聞く
Statistical & AnalysisQA検証済み

COUNTIFS.

複数の範囲内で複数の条件をすべて満たすセルの個数をカウントします。

Statistical & Analysis
ExcelExcel 365Excel 2021Excel 2019Google Sheets

仕組みと動作原理

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], ...)
ヒント: カッコの中の [角カッコ] で囲まれた引数は省略可能です。その他の引数は必須です。

引数一覧.

この関数で指定できるすべての引数について詳しく解説します。

criteria_range1必須

The first range to apply the first condition against.

指定例: A2:A6
criteria1必須

The condition to check in criteria_range1.

指定例: "Pending"
criteria_range2省略可

The second range to evaluate.

指定例: B2:B6
criteria2省略可

The condition to check in criteria_range2.

指定例: ">100"

具体的な計算例

ステップ別の実務シナリオ

Filtered Survey Counts

Count how many high-spending customers gave a positive response.

CustomerPurchase SizeFeedback Yes/NoMin PurchaseQualified Count
John120Yes>=100—
Sarah45Yes——
Mike250No——
適用する数式
=COUNTIFS(B2:B6, ">=100", C2:C6, "Yes")
期待される結果::Calculated output

Evaluates COUNTIFS over the sample table cells, placing the verified output in cell E2.

数式ジェネレーター

ウィザードを開く

引数を入力するだけで、シートにそのまま貼り付けて使える数式を作成できます。

Generated Formulaコピー準備完了

出力される値の特性

Returns "Calculated output" based on sample evaluation criteria and active cell references.

出力サンプル::Calculated output
戻り値の型::Text

実務上のベストプラクティス

  • 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スプレッドシートの計算エンジン仕様に基づいた検証結果です。

Excel✓
対応
Excel 365✓
対応
Excel 2021✓
対応
Excel 2019✓
対応
Google Sheets✓
対応
Excelバージョン対応履歴

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.

Googleスプレッドシート対応状況

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.