---
title: "Pass or fail with IF | PracticeExcel"
description: "Practice the IF function in a live spreadsheet: show Pass or Fail from a score."
canonical_url: "https://practiceexcelonline.com/practice/if/if-pass-fail"
locale: en
meta:
  "og:description": "Practice the IF function in a live spreadsheet: show Pass or Fail from a score."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Pass%2Bor%2Bfail%2Bwith%2BIF%2Cdescription_~UHJhY3RpY2UgdGhlIElGIGZ1bmN0aW9uIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogc2hvdyBQYXNzIG9yIEZhaWwgZnJvbSBhIHNjb3JlLg%2Ceyebrow_IF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIlN0dWRlbnQiLCJTY29yZSIsIlJlc3VsdCJdfSx7Im4iOjIsImNlbGxzIjpbIkFubmEiLCI2MiIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS9pZi9pZi1wYXNzLWZhaWwi%2Cs_N4Ck2i2aCaCSfU8O.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Pass or fail with IF | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Pass%2Bor%2Bfail%2Bwith%2BIF%2Cdescription_~UHJhY3RpY2UgdGhlIElGIGZ1bmN0aW9uIGluIGEgbGl2ZSBzcHJlYWRzaGVldDogc2hvdyBQYXNzIG9yIEZhaWwgZnJvbSBhIHNjb3JlLg%2Ceyebrow_IF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIlN0dWRlbnQiLCJTY29yZSIsIlJlc3VsdCJdfSx7Im4iOjIsImNlbGxzIjpbIkFubmEiLCI2MiIsIiJdfV0sInRhcmdldCI6WzEsMl19fQ%2Cp_Ii9wcmFjdGljZS9pZi9pZi1wYXNzLWZhaWwi%2Cs_N4Ck2i2aCaCSfU8O.png"
---

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

# **Pass or fail with IF**

1.
2.
3.

Step 1 of 3

**IF** makes a choice. It checks a test, then shows one value when the test is true and another when it's false: =IF(test, value\_if\_true, value\_if\_false).

Click **Continue** when you're ready.

Already know it? Type the formula straight into C2.

C2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Student | Score | Result |  |  | |
| 2 | Anna | 62 |  |  |  | |
| 3 |  |  |  |  |  | |
| 4 |  |  |  |  |  | |
| 5 |  |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

Need help?

```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/if-pass-fail#webpage","description":"Practice the IF function in a live spreadsheet: show Pass or Fail from a score.","name":"Pass or fail with IF","url":"https://practiceexcelonline.com/practice/if/if-pass-fail","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/if/if-pass-fail#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/if/if-pass-fail#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/if/if-pass-fail"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/if/if-pass-fail#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","item":"https://practiceexcelonline.com/practice/if","position":3},{"@type":"ListItem","name":"Pass or fail with IF","position":4}]},{"@id":"https://practiceexcelonline.com/practice/if/if-pass-fail#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I write an IF formula in Excel?","acceptedAnswer":{"@type":"Answer","text":"=IF(test, value_if_true, value_if_false), for example =IF(B2>=50,\"Pass\",\"Fail\"). Put text results in double quotes."}},{"@id":"https://practiceexcelonline.com/practice/if/if-pass-fail#/schema/learning-resource/1","@type":"LearningResource","description":"Practice the IF function in a live spreadsheet: show Pass or Fail from a score.","educationalLevel":"beginner","isAccessibleForFree":true,"learningResourceType":"exercise","name":"Pass or fail with IF","teaches":"IF"},{"@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.
