Decisions with IF · About 5 minutes
Choose a result with IF
IF takes a yes-or-no question and picks a result for each answer. It has three parts inside the parentheses, separated by commas: the question, the result if TRUE, the result if FALSE.
=IF( reads as "if C2 is 50 or more, show Free, otherwise show Paid".
Words you want to show go in quotes, like "Free". Numbers and cell addresses don't need them.
IF is a fork in the road
Exercise 1 of 4 · Worked example
Orders of $50 or more get free delivery. In D2, type =IF( C2>=50, "Free", "Paid") and press Enter.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | City | Amount ($) | Delivery |
| 2 | Anjali | Austin | 65 | (answer cell) |
| 3 | Marcus | Denver | 32 | |
| 4 | Sana | Austin | 50 | |
| 5 | Luis | Boston | 48 | |
| 6 | Deepa | Denver | 90 |
Questions people ask
How do I write an IF-then formula in Excel?
Give IF a test, the result if it's true, and the result if it's false: =IF(.
Why does my IF formula show FALSE?
The test was false and the third part is missing. Add what to show in that case, like ,"Fail" before the closing parenthesis.
How do I use IF with text in Excel?
Put text in quotes, in the test and in the results: =IF(. Numbers, cell references and calculations don't need quotes.
How do I use IF with more than one condition?
Put AND or OR inside IF to check two things, or nest IFs when you need more than two results.
Does IF work the same in Google Sheets?
Yes. The parts and results are the same.