---
title: "OR function in Excel: syntax and examples | PracticeExcel"
description: "How to use OR in Excel and Google Sheets: one of several conditions is enough, alone or inside IF."
canonical_url: "https://practiceexcelonline.com/functions/or"
locale: en
meta:
  "og:description": "How to use OR in Excel and Google Sheets: one of several conditions is enough, alone or inside IF."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~T1IgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBPUiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogb25lIG9mIHNldmVyYWwgY29uZGl0aW9ucyBpcyBlbm91Z2gsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~T1IobG9naWNhbDEsIFtsb2dpY2FsMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvb3Ii%2Cs_jHoSGnJDikU7qnay.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "OR function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~T1IgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBPUiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogb25lIG9mIHNldmVyYWwgY29uZGl0aW9ucyBpcyBlbm91Z2gsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~T1IobG9naWNhbDEsIFtsb2dpY2FsMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvb3Ii%2Cs_jHoSGnJDikU7qnay.png"
---

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

# **The OR function**

Returns TRUE when at least one condition is TRUE.

=

OR(

## **Syntax**

```
OR(logical1, [logical2], ...)
```

<dl><dt>**logical1 **</dt>
<dd>The first condition.</dd>
<dt>**logical2 **(optional)</dt>
<dd>More conditions, up to 255.</dd></dl>

## **Examples**

C1`=OR(<sup>1</sup>A2<50,<sup>2</sup>A2>60)`

|  | A | B | C |
| --- | --- | --- | --- |
| 1 | Score |  | **TRUE** |
| 2 | 62 |  | |

**In plain words:** TRUE when <sup>1</sup>the score in A2 is below 50 or <sup>2</sup>above 60.

C1=OR(A2<50,A2>90)

|  | A | B | C |
| --- | --- | --- | --- |
| 1 | Score |  | **FALSE** |
| 2 | 62 |  | |

## **Practice OR**

- [**1****Either condition with OR**→](https://practiceexcelonline.com/practice/logical/if-or)

## **Read the guide**

- [**Excel IF formulas: from one condition to many**](https://practiceexcelonline.com/learn/excel-if-function)
- [**Conditional formatting in Excel: highlight cells and rows with rules and formulas**](https://practiceexcelonline.com/learn/conditional-formatting-excel)

## **Related functions**

- [**AND**](https://practiceexcelonline.com/functions/and)
- [**NOT**](https://practiceexcelonline.com/functions/not)
- [**IF**](https://practiceexcelonline.com/functions/if)

```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/functions/or#webpage","@type":"WebPage","description":"How to use OR in Excel and Google Sheets: one of several conditions is enough, alone or inside IF.","name":"OR function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/or","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/or#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/or"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/or#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"OR function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/or#article","description":"How to use OR in Excel and Google Sheets: one of several conditions is enough, alone or inside IF.","headline":"OR function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~T1IgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBPUiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogb25lIG9mIHNldmVyYWwgY29uZGl0aW9ucyBpcyBlbm91Z2gsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~T1IobG9naWNhbDEsIFtsb2dpY2FsMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvb3Ii%2Cs_jHoSGnJDikU7qnay.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/or#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/or#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@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"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~T1IgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBPUiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogb25lIG9mIHNldmVyYWwgY29uZGl0aW9ucyBpcyBlbm91Z2gsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~T1IobG9naWNhbDEsIFtsb2dpY2FsMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvb3Ii%2Cs_jHoSGnJDikU7qnay.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~T1IgZnVuY3Rpb24gaW4gRXhjZWw6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBPUiBpbiBFeGNlbCBhbmQgR29vZ2xlIFNoZWV0czogb25lIG9mIHNldmVyYWwgY29uZGl0aW9ucyBpcyBlbm91Z2gsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~T1IobG9naWNhbDEsIFtsb2dpY2FsMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvb3Ii%2Cs_jHoSGnJDikU7qnay.png"}]}
```

## Sitemap

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