ExcelFormulas logoExcelFormulas.
AIに聞く
論理QA検証済み

IF.

条件が満たされているかどうかを判定し、真の場合と偽の場合で異なる値を返します。

論理
ExcelExcel 365Excel 2021Excel 2019Google Sheets

仕組みと動作原理

IF関数はExcel業務を効率化する代表的な関数です。条件が満たされているかどうかを判定し、真の場合と偽の場合で異なる値を返します。 複雑な集計や参照処理を簡素化し、データ分析の精度と生産性を飛躍的に高めます。

💡 わかりやすい要約

Checks whether a condition is true or false. If true, it outputs one value; if false, it outputs another.

日常のたとえ

"Think of this like a referee checking a score: IF the score is 70 or higher, they shout "Pass!"; otherwise, they shout "Fail!"."

構文.

標準Excel表記法
=IF(論理式, [真の場合], [偽の場合])
ヒント: カッコの中の [角カッコ] で囲まれた引数は省略可能です。その他の引数は必須です。

引数一覧.

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

logical_test必須

A condition that can be evaluated to TRUE or FALSE.

指定例: C2>=70
value_if_true必須

The value to return if logical_test evaluates to TRUE.

指定例: "Pass"
value_if_false省略可

The value to return if logical_test evaluates to FALSE.

初期値: "Fail"

具体的な計算例

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

Pass/Fail Grade Check

Label student results as "Pass" if their score is 70 or above, otherwise "Fail".

StudentSubjectScoreStatusPass Threshold
SophiaMath85—70
JacksonMath62——
LucasMath74——
適用する数式
=IF(C2>=70, "Pass", "Fail")
期待される結果::Pass

Evaluates IF over the sample table cells, placing the verified output in cell D2:D6.

数式ジェネレーター

ウィザードを開く

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

Generated Formulaコピー準備完了

出力される値の特性

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

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

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

  • You can nest multiple IF statements inside each other to handle more than two outcomes, although the IFS function is now preferred.
  • To leave a cell blank on FALSE, use empty quotes: "" as the value_if_false.

よくあるミスと注意点

  • Avoid nesting more than 3-4 IF functions, as they become extremely hard to debug and maintain. Consider using IFS or VLOOKUP/XLOOKUP tables.
互換性情報

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

実際の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.

よくある質問と回答

技術解説
How many IF statements can be nested in modern Excel?↓

Modern Excel allows up to 64 nested IF statements, but using IFS, SWITCH, or XLOOKUP is strongly recommended for readability and performance.

How do I check multiple conditions inside an IF statement?↓

Combine IF with logical functions AND or OR, for example: =IF(AND(A2>50, B2="Approved"), "Qualify", "Disqualify").