What the video covers
Show how to write basic IF formulas in Excel for numeric and text conditions, demonstrate a nested IF example, and show how to fill formulas across rows.
Watch the video on YouTubeStep-by-step instructions
- Prepare your worksheet
Open Excel and enter the data you will evaluate (for example, scores in column A). Choose a cell for the IF formula result (for example, B1). - Start the IF formula
Select the result cell, type =IF( to begin. The IF function expects three parts: logical_test, value_if_true, value_if_false. - Enter a logical test
Type a comparison that returns TRUE or FALSE, such as A150 or A1="Pass". For text comparisons, surround the text with quotes. - Specify true and false results
After the logical test, add a comma, then the value to return if TRUE (e.g., "Pass" or 1), another comma, then the value if FALSE (e.g., "Fail" or 0). Close the parentheses and press Enter. - Example — numeric threshold
Formula example: =IF(A150,"Pass","Fail"). This returns "Pass" when A1 is greater than 50, otherwise "Fail". - Example — text check
Formula example: =IF(A1="Yes","Complete","Pending"). Use quotes around text values and ensure exact spelling/case if needed. - Use nested IFs for multiple conditions
Place another IF inside value_if_true or value_if_false to handle additional cases, e.g., =IF(A1=90,"A",IF(A1=80,"B","C")). Keep nested logic simple to avoid errors. - Apply the formula to other rows
Drag the fill handle (corner of the cell) down or double-click it to copy the formula. Adjust absolute references ($) if some references must stay fixed.
Watch the video
Play tutorial
Why it matters
The IF function lets spreadsheets return different results based on conditions, enabling grading, status flags, conditional calculations, and other decision rules without manual editing.
Check your result
A correct formula displays the chosen 'true' result when the condition is met and the 'false' result when it is not. Dragging the fill handle applies the logic to other rows with correct relative references.
Troubleshooting
If the formula shows an error or unexpected result: check that the logical test references the correct cell(s), ensure text values are wrapped in quotes, verify commas/semicolons match your locale, and confirm relative/absolute references are correct when filling formulas.