ExcelFormulas logoExcelFormulas.
AIに聞く
数学/統計QA検証済み

COUNTIF.

Counts the number of cells within a range that meet a single specified condition or criteria.

数学/統計
ExcelExcel 365Excel 2021Excel 2019Google Sheets

仕組みと動作原理

COUNTIF関数はExcel業務を効率化する代表的な関数です。Counts the number of cells within a range that meet a single specified condition or criteria. 複雑な集計や参照処理を簡素化し、データ分析の精度と生産性を飛躍的に高めます。

💡 わかりやすい要約

Counts how many cells in a list match a rule you specify, such as counting scores over 75 or orders marked "Yes".

日常のたとえ

"Think of COUNTIF like a bouncer at a club checking IDs. It looks down your list and counts only the people who meet your rule (e.g. age 21 or over)."

構文.

標準Excel表記法
=COUNTIF(range, criteria)
ヒント: カッコの中の [角カッコ] で囲まれた引数は省略可能です。その他の引数は必須です。

引数一覧.

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

range必須

The group of cells you want to count.

指定例: B2:B6
criteria必須

The condition that defines which cells to count. Can be a number, text, expression, or cell reference.

指定例: ">=100"

具体的な計算例

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

Count High-Value Transactions

Count how many transactions in column B are greater than or equal to $100.

CustomerPurchase AmountStatusCriteriaCount Result
Alice150Completed>=100—
Bob85Completed——
Charlie210Pending——
適用する数式
=COUNTIF(B2:B6, ">=100")
期待される結果::3

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

数式ジェネレーター

ウィザードを開く

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

Generated Formulaコピー準備完了

出力される値の特性

Returns number 3 based on sample evaluation criteria and active cell references.

出力サンプル::3
戻り値の型::Numeric

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

  • Use wildcards to find partial text matches: "*east*" matches any cell containing "east".
  • When using logical operators with numbers, enclose the operator and number in double quotes: ">=100".
  • For case-insensitive counts, COUNTIF automatically ignores uppercase/lowercase differences.

よくあるミスと注意点

  • COUNTIF only supports a single condition. If you need to count cells meeting multiple conditions, use COUNTIFS.
  • Text strings over 255 characters return incorrect results in COUNTIF.
互換性情報

各プラットフォーム対応表

実際の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 COUNTIF evaluate multiple conditions at once?↓

No, COUNTIF only checks a single condition. To count rows matching multiple simultaneous criteria, use the COUNTIFS function.

How do wildcards work in COUNTIF?↓

You can use an asterisk (*) to match any series of characters (e.g. =COUNTIF(A2:A10, "*East*")) or a question mark (?) to match any single character. To match an actual question mark or asterisk, prepend a tilde (~).