Use the formula: `=IF(logical_test, value_if_true, value_if_false)`
Example: `=IF(A1>10,”Yes”,”No”)`
Replace `A1>10` with your condition
Replace `”Yes”` with the result if the condition is true
Replace `”No”` with the result if the condition is false
Use `=IF(A1=”Apple”,1,0)` for text comparisons
Use `=IF(A1>=50,”Pass”,”Fail”)` for numeric comparisons
Use nested IF formulas for multiple conditions
Example: `=IF(A1>90,”A”,IF(A1>80,”B”,”C”))`
Press Enter after typing the formula in a cell
