---
title: "A rule is a test | PracticeExcel"
description: "Practice the formula behind conditional formatting in Excel. Write a test that returns TRUE or FALSE and get it checked right away."
canonical_url: "https://practiceexcelonline.com/practice/conditional-formatting/rule-is-a-test"
locale: en
meta:
  "og:description": "Practice the formula behind conditional formatting in Excel. Write a test that returns TRUE or FALSE and get it checked right away."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_A%2Brule%2Bis%2Ba%2Btest%2Cdescription_Practice%2Bthe%2Bformula%2Bbehind%2Bconditional%2Bformatting%2Bin%2BExcel.%2BWrite%2Ba%2Btest%2Bthat%2Breturns%2BTRUE%2Bor%2BFALSE%2Band%2Bget%2Bit%2Bchecked%2Bright%2Baway.%2Ceyebrow_Conditional%2Bformatting%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRCJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZXAiLCJSZWdpb24iLCJTYWxlcyIsIk92ZXIgMTAsMDAwPyJdfSx7Im4iOjIsImNlbGxzIjpbIkxhcnMiLCJOb3J0aCIsIjEyNTAwIiwiIl19XSwidGFyZ2V0IjpbMSwzXX19%2Cp_Ii9wcmFjdGljZS9jb25kaXRpb25hbC1mb3JtYXR0aW5nL3J1bGUtaXMtYS10ZXN0Ig%2Cs_oooaKaPt9m3zKpnc.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "A rule is a test | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_A%2Brule%2Bis%2Ba%2Btest%2Cdescription_Practice%2Bthe%2Bformula%2Bbehind%2Bconditional%2Bformatting%2Bin%2BExcel.%2BWrite%2Ba%2Btest%2Bthat%2Breturns%2BTRUE%2Bor%2BFALSE%2Band%2Bget%2Bit%2Bchecked%2Bright%2Baway.%2Ceyebrow_Conditional%2Bformatting%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJDIiwiRCJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZXAiLCJSZWdpb24iLCJTYWxlcyIsIk92ZXIgMTAsMDAwPyJdfSx7Im4iOjIsImNlbGxzIjpbIkxhcnMiLCJOb3J0aCIsIjEyNTAwIiwiIl19XSwidGFyZ2V0IjpbMSwzXX19%2Cp_Ii9wcmFjdGljZS9jb25kaXRpb25hbC1mb3JtYXR0aW5nL3J1bGUtaXMtYS10ZXN0Ig%2Cs_oooaKaPt9m3zKpnc.png"
---

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

# **A rule is a test**

Conditional formatting colors a cell when the rule's formula returns TRUE. In D2, write the rule for "sales over 10,000" as a test of C2, without IF.

D2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Rep | Region | Sales | Over 10,000? |  | |
| 2 | Lars | North | 12500 |  |  | |
| 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/conditional-formatting/rule-is-a-test#webpage","@type":"WebPage","description":"Practice the formula behind conditional formatting in Excel. Write a test that returns TRUE or FALSE and get it checked right away.","name":"A rule is a test","url":"https://practiceexcelonline.com/practice/conditional-formatting/rule-is-a-test","breadcrumb":{"@id":"https://practiceexcelonline.com/practice/conditional-formatting/rule-is-a-test#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/conditional-formatting/rule-is-a-test"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/conditional-formatting/rule-is-a-test#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":"Conditional formatting","item":"https://practiceexcelonline.com/practice/conditional-formatting","position":3},{"@type":"ListItem","name":"A rule is a test","position":4}]},{"@id":"https://practiceexcelonline.com/practice/conditional-formatting/rule-is-a-test#/schema/learning-resource/1","@type":"LearningResource","description":"Practice the formula behind conditional formatting in Excel. Write a test that returns TRUE or FALSE and get it checked right away.","educationalLevel":"beginner","isAccessibleForFree":true,"learningResourceType":"exercise","name":"A rule is a test","teaches":"Conditional formatting"},{"@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.
