Choose a result with IF

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 is a fork in the roadThe formula =IF(C2>=50,"Free","Paid"). The amount in C2, 65, goes into the question 65>=50. The answer is TRUE, so IF takes the first road and shows Free. The other road, FALSE, leads to Paid. Below, the formula filled down: 65 gives Free and 32 gives Paid.=IF(C2>=50,"Free","Paid")C26565>=50?TRUEFreeFALSEPaidCD123Amount ($)Delivery65Free32Paid

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.

ABCD
1NameCityAmount ($)Delivery
2AnjaliAustin65 (answer cell)
3MarcusDenver32
4SanaAustin50
5LuisBoston48
6DeepaDenver90

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(B2>=50,"Pass","Fail").

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(C2="Paid","Done","Send reminder"). 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.

Theme

IF is a fork in the road

The formula =IF(C2>=50,"Free","Paid"). The amount in C2, 65, goes into the question 65>=50. The answer is TRUE, so IF takes the first road and shows Free. The other road, FALSE, leads to Paid. Below, the formula filled down: 65 gives Free and 32 gives Paid.