---
title: "IF practice exercises | PracticeExcel"
description: "Practice the IF function in a live spreadsheet, from a simple test to nested IFs."
canonical_url: "https://practiceexcelonline.com/practice/if"
locale: en
meta:
  "og:description": "Practice the IF function in a live spreadsheet, from a simple test to nested IFs."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_IF%2Bpractice%2Bexercises%2Cdescription_~UHJhY3RpY2UgdGhlIElGIGZ1bmN0aW9uIGluIGEgbGl2ZSBzcHJlYWRzaGVldCwgZnJvbSBhIHNpbXBsZSB0ZXN0IHRvIG5lc3RlZCBJRnMu%2Ceyebrow_Excel%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIlN0dWRlbnQiLCJTY29yZSIsIlJlc3VsdCJdfSx7Im4iOjIsImNlbGxzIjpbIkFubmEiLCI2MiIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS9pZiI%2Cs_y1TTA4vsIEAtUrsK.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "IF practice exercises | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_IF%2Bpractice%2Bexercises%2Cdescription_~UHJhY3RpY2UgdGhlIElGIGZ1bmN0aW9uIGluIGEgbGl2ZSBzcHJlYWRzaGVldCwgZnJvbSBhIHNpbXBsZSB0ZXN0IHRvIG5lc3RlZCBJRnMu%2Ceyebrow_Excel%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIlN0dWRlbnQiLCJTY29yZSIsIlJlc3VsdCJdfSx7Im4iOjIsImNlbGxzIjpbIkFubmEiLCI2MiIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS9pZiI%2Cs_y1TTA4vsIEAtUrsK.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **IF practice exercises**

Make a formula choose between two answers with IF: pass or fail, bonus or none, and nested IFs for more than two outcomes.

[**Start the first exercise**](https://practiceexcelonline.com/practice/if/if-pass-fail)

IF(

1. [**1****Pass or fail with IF**The passing score is 50. In C2, use IF to show "Pass" when the score in B2 is 50 or more, and "Fail" otherwise.](https://practiceexcelonline.com/practice/if/if-pass-fail)
2. [**2****Calculate a bonus with IF****Premium**Sellers with sales over 1000 get a 10% bonus; everyone else gets 0. In C2, use IF to calculate the bonus for B2.](https://practiceexcelonline.com/practice/if/if-calculate-bonus)
3. [**3****Three outcomes with nested IF****Premium**Grade the score in B2: 90 or more is "A", 70 or more is "B", anything lower is "C". In C2, put a second IF inside the first.](https://practiceexcelonline.com/practice/if/nested-if)
4. [**4****Flag missing values with ISBLANK****Premium**In D2, show "Missing" when the hours in B2 are blank, and otherwise the pay, B2\*C2. Use IF with ISBLANK.](https://practiceexcelonline.com/practice/if/if-isblank-missing)
5. [**5****Compare two cells with IF****Premium**In D2, show "Over budget" if the amount spent in C2 is more than the budget in B2, and "OK" if not.](https://practiceexcelonline.com/practice/if/if-compare-two-cells)

## **Functions in this topic**

- [**IF**](https://practiceexcelonline.com/functions/if)

## **Read the guide**

- [**Excel for job interviews: what gets tested and how to prepare**](https://practiceexcelonline.com/learn/excel-for-job-interviews)
- [**Free Excel course online: learn Excel from your first formula to job-ready**](https://practiceexcelonline.com/learn/how-to-learn-excel)
- [**Excel IF formulas: from one condition to many**](https://practiceexcelonline.com/learn/excel-if-function)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/practice/if#webpage","description":"Practice the IF function in a live spreadsheet, from a simple test to nested IFs.","name":"IF practice exercises","url":"https://practiceexcelonline.com/practice/if","@type":["WebPage","CollectionPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/if#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/if"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/if#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"IF practice exercises","position":3}]},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
