# IF Function - Excel Practice Online
> Practice the IF function in Excel online. Write IF formulas for dog food, vaccinations and movie ticket prices, then predict what each one returns.

- Web page: https://logicexcel.com/practice/9
- Language: en
- Also in: [Deutsch](https://logicexcel.com/de/practice/9.md), [Español](https://logicexcel.com/es/practice/9.md), [Français](https://logicexcel.com/fr/practice/9.md)
- Category: Logical Functions
- Steps: 10

IF returns one value when a test is true and another when it is false. This exercise starts by reading =IF(B3>100000, "Rich", "Poor") and then has you write your own for everyday rules: how many scoops of food a dog gets depending on its weight, how many vaccinations by age, and what a movie theater charges at 65 and over.

After each formula you predict what it returns for a given row, such as =IF(B3>30, 2, 1) or =IF(B5>=65, 8, 12). Checking your own formula against a specific row is how you catch the classic mistake of using > when the rule means >=.

## IF Function practice - FAQ

### How do I practice IF Function in Excel?

Open this LogicExcel exercise and work through 10 interactive steps. You type the real formula into a live spreadsheet grid and get instant feedback on whether it is correct, plus an explanation. You need no Excel install.

### Is the IF Function exercise free?

Your first two lessons are free with a free account. After that the pass opens all 95 lessons, the Academy and the accounting course. Lessons you finish stay open.

### What will I learn in this IF Function lesson?

This lesson covers IF Function as part of the Logical Functions track. You practice the syntax step by step until it becomes muscle memory you can use at work.

### When does an IF result need quotation marks?

Text results such as "Rich" go in quotation marks, numbers do not. This lesson shows both: the first formula returns text, while the dog food and ticket price formulas return plain numbers.

> This page is the lesson's opening only. The practice steps and the marked answers are in the interactive sheet on the web page, and are not part of this text.

[Practice this in the browser](https://logicexcel.com/practice/9)

- Previous lesson: [Cell Selection Skill Summary](https://logicexcel.com/practice/8.md)
- Next lesson: [Data Shortcuts](https://logicexcel.com/practice/10.md)
