---
title: "AND function in Excel: syntax and examples | PracticeExcel"
description: "How to use AND in Excel and Google Sheets: require several conditions at once, alone or inside IF."
canonical_url: "https://practiceexcelonline.com/functions/and"
locale: en
meta:
  "og:description": "How to use AND in Excel and Google Sheets: require several conditions at once, alone or inside IF."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QU5EIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBBTkQgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHJlcXVpcmUgc2V2ZXJhbCBjb25kaXRpb25zIGF0IG9uY2UsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QU5EKGxvZ2ljYWwxLCBbbG9naWNhbDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvYW5kIg%2Cs_mjS6IV1bOLUZkvWZ.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "AND function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QU5EIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBBTkQgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHJlcXVpcmUgc2V2ZXJhbCBjb25kaXRpb25zIGF0IG9uY2UsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QU5EKGxvZ2ljYWwxLCBbbG9naWNhbDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvYW5kIg%2Cs_mjS6IV1bOLUZkvWZ.png"
---

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

# **The AND function**

Returns TRUE only when every condition is TRUE. Usually used as the test inside IF.

=

AND(

## **Syntax**

```
AND(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`=AND(<sup>1</sup>A2>=50,<sup>2</sup>A2<=100)`

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

**In plain words:** TRUE when <sup>1</sup>the score in A2 is at least 50 and <sup>2</sup>it is at most 100.

C1=AND(A2>=50,A2>=70)

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

## **Practice AND**

- [**1****Two conditions with AND**→](https://practiceexcelonline.com/practice/logical/if-and)
- [**2****Check a value is within limits**→](https://practiceexcelonline.com/practice/logical/and-between-two-limits)
- [**3****Overdue and unpaid**→](https://practiceexcelonline.com/practice/conditional-formatting/overdue-unpaid-invoices)

## **Read the guide**

- [**Excel for job interviews: what gets tested and how to prepare**](https://practiceexcelonline.com/learn/excel-for-job-interviews)
- [**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**

- [**OR**](https://practiceexcelonline.com/functions/or)
- [**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/and#webpage","@type":"WebPage","description":"How to use AND in Excel and Google Sheets: require several conditions at once, alone or inside IF.","name":"AND function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/and","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/and#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/and"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/and#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":"AND function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/and#article","description":"How to use AND in Excel and Google Sheets: require several conditions at once, alone or inside IF.","headline":"AND function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QU5EIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBBTkQgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHJlcXVpcmUgc2V2ZXJhbCBjb25kaXRpb25zIGF0IG9uY2UsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QU5EKGxvZ2ljYWwxLCBbbG9naWNhbDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvYW5kIg%2Cs_mjS6IV1bOLUZkvWZ.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/and#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/and#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_~QU5EIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBBTkQgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHJlcXVpcmUgc2V2ZXJhbCBjb25kaXRpb25zIGF0IG9uY2UsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QU5EKGxvZ2ljYWwxLCBbbG9naWNhbDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvYW5kIg%2Cs_mjS6IV1bOLUZkvWZ.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QU5EIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBBTkQgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHJlcXVpcmUgc2V2ZXJhbCBjb25kaXRpb25zIGF0IG9uY2UsIGFsb25lIG9yIGluc2lkZSBJRi4%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~QU5EKGxvZ2ljYWwxLCBbbG9naWNhbDJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvYW5kIg%2Cs_mjS6IV1bOLUZkvWZ.png"}]}
```

## Sitemap

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