---
title: "IFS function in Excel: syntax and examples | PracticeExcel"
description: "How to use IFS in Excel 365 and Google Sheets: replace nested IFs with a flat list of conditions."
canonical_url: "https://practiceexcelonline.com/functions/ifs"
locale: en
meta:
  "og:description": "How to use IFS in Excel 365 and Google Sheets: replace nested IFs with a flat list of conditions."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBJRlMgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlIG5lc3RlZCBJRnMgd2l0aCBhIGZsYXQgbGlzdCBvZiBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZTKGxvZ2ljYWxfdGVzdDEsIHZhbHVlX2lmX3RydWUxLCBbbG9naWNhbF90ZXN0MiwgdmFsdWVfaWZfdHJ1ZTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvaWZzIg%2Cs_XeuI35gjfg_sc6UM.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "IFS function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBJRlMgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlIG5lc3RlZCBJRnMgd2l0aCBhIGZsYXQgbGlzdCBvZiBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZTKGxvZ2ljYWxfdGVzdDEsIHZhbHVlX2lmX3RydWUxLCBbbG9naWNhbF90ZXN0MiwgdmFsdWVfaWZfdHJ1ZTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvaWZzIg%2Cs_XeuI35gjfg_sc6UM.png"
---

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

# **The IFS function**

Checks several conditions in order and returns the value for the first one that is TRUE. Use TRUE as the last test for "everything else".

=

IFS(

## **Syntax**

```
IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
```

<dl><dt>**logical_test1 **</dt>
<dd>The first condition.</dd>
<dt>**value_if_true1 **</dt>
<dd>The result when the first condition is TRUE.</dd>
<dt>**logical_test2, value_if_true2 **(optional)</dt>
<dd>More condition and result pairs, up to 127.</dd></dl>

## **Examples**

C1`=IFS(<sup>1</sup>A2>=90,<sup>2</sup>"High",<sup>3</sup>A2>=60,<sup>4</sup>"Mid",<sup>5</sup>TRUE,<sup>6</sup>"Low")`

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

**In plain words:** <sup>1</sup>If the score in A2 is 90 or more, <sup>2</sup>show High. <sup>3</sup>If it is 60 or more, <sup>4</sup>show Mid. <sup>5</sup>In every other case, <sup>6</sup>show Low.

C1=IFS(A2<50,"Low",A2<80,"Mid",A2>=80,"High")

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

## **Practice IFS**

- [**1****Commission rates with IFS**→](https://practiceexcelonline.com/practice/ifs-switch/ifs-commission-rates)

## **Read the guide**

- [**Excel IF formulas: from one condition to many**](https://practiceexcelonline.com/learn/excel-if-function)

## **Related functions**

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

```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/ifs#webpage","@type":"WebPage","description":"How to use IFS in Excel 365 and Google Sheets: replace nested IFs with a flat list of conditions.","name":"IFS function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/ifs","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/ifs#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/ifs"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/ifs#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":"IFS function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/ifs#article","description":"How to use IFS in Excel 365 and Google Sheets: replace nested IFs with a flat list of conditions.","headline":"IFS function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBJRlMgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlIG5lc3RlZCBJRnMgd2l0aCBhIGZsYXQgbGlzdCBvZiBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZTKGxvZ2ljYWxfdGVzdDEsIHZhbHVlX2lmX3RydWUxLCBbbG9naWNhbF90ZXN0MiwgdmFsdWVfaWZfdHJ1ZTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvaWZzIg%2Cs_XeuI35gjfg_sc6UM.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/ifs#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/ifs#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_~SUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBJRlMgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlIG5lc3RlZCBJRnMgd2l0aCBhIGZsYXQgbGlzdCBvZiBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZTKGxvZ2ljYWxfdGVzdDEsIHZhbHVlX2lmX3RydWUxLCBbbG9naWNhbF90ZXN0MiwgdmFsdWVfaWZfdHJ1ZTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvaWZzIg%2Cs_XeuI35gjfg_sc6UM.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~SUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBJRlMgaW4gRXhjZWwgMzY1IGFuZCBHb29nbGUgU2hlZXRzOiByZXBsYWNlIG5lc3RlZCBJRnMgd2l0aCBhIGZsYXQgbGlzdCBvZiBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~SUZTKGxvZ2ljYWxfdGVzdDEsIHZhbHVlX2lmX3RydWUxLCBbbG9naWNhbF90ZXN0MiwgdmFsdWVfaWZfdHJ1ZTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvaWZzIg%2Cs_XeuI35gjfg_sc6UM.png"}]}
```

## Sitemap

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