---
title: "IF in Google Sheets: practice exercises | PracticeExcel"
description: "Practice the IF function in Google Sheets: conditions, text results and nested IFs, in exercises that are checked as you type."
canonical_url: "https://practiceexcelonline.com/sheets/practice/if"
locale: en
meta:
  "og:description": "Practice the IF function in Google Sheets: conditions, text results and nested IFs, in exercises that are checked as you type."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUYgaW4gR29vZ2xlIFNoZWV0czogcHJhY3RpY2UgZXhlcmNpc2Vz%2Cdescription_~UHJhY3RpY2UgdGhlIElGIGZ1bmN0aW9uIGluIEdvb2dsZSBTaGVldHM6IGNvbmRpdGlvbnMsIHRleHQgcmVzdWx0cyBhbmQgbmVzdGVkIElGcywgaW4gZXhlcmNpc2VzIHRoYXQgYXJlIGNoZWNrZWQgYXMgeW91IHR5cGUu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIlN0dWRlbnQiLCJTY29yZSIsIlJlc3VsdCJdfSx7Im4iOjIsImNlbGxzIjpbIkFubmEiLCI2MiIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvaWYi%2Cs_TUk2h07yssD4F_Y4.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "IF in Google Sheets: practice exercises | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUYgaW4gR29vZ2xlIFNoZWV0czogcHJhY3RpY2UgZXhlcmNpc2Vz%2Cdescription_~UHJhY3RpY2UgdGhlIElGIGZ1bmN0aW9uIGluIEdvb2dsZSBTaGVldHM6IGNvbmRpdGlvbnMsIHRleHQgcmVzdWx0cyBhbmQgbmVzdGVkIElGcywgaW4gZXhlcmNpc2VzIHRoYXQgYXJlIGNoZWNrZWQgYXMgeW91IHR5cGUu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIlN0dWRlbnQiLCJTY29yZSIsIlJlc3VsdCJdfSx7Im4iOjIsImNlbGxzIjpbIkFubmEiLCI2MiIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9zaGVldHMvcHJhY3RpY2UvaWYi%2Cs_TUk2h07yssD4F_Y4.png"
---

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

# **IF practice in Google Sheets**

IF works the same way in Google Sheets as in Excel: IF(condition, value\_if\_true, value\_if\_false). Text results go in quotes, and IFs can be nested inside each other.

[**Start the first exercise**](https://practiceexcelonline.com/sheets/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/sheets/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/sheets/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/sheets/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/sheets/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/sheets/practice/if/if-compare-two-cells)

## **Functions in this topic**

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

## **Questions**

<details>

<summary>

### Is IF in Google Sheets the same as in Excel?

</summary>

Yes. It takes the same three arguments, and conditions with =, &lt;&gt;, &lt;, &gt;, AND and OR are written the same way.

</details>

```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/sheets/practice/if#webpage","description":"Practice the IF function in Google Sheets: conditions, text results and nested IFs, in exercises that are checked as you type.","name":"IF in Google Sheets: practice exercises","url":"https://practiceexcelonline.com/sheets/practice/if","@type":["WebPage","CollectionPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/if#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/sheets/practice/if#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/if"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/if#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"IF in Google Sheets: practice exercises","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/practice/if#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"Is IF in Google Sheets the same as in Excel?","acceptedAnswer":{"@type":"Answer","text":"Yes. It takes the same three arguments, and conditions with =, \u003C>, \u003C, >, AND and OR are written the same way."}},{"@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.
