---
title: "SUMIF with a text criterion | PracticeExcel"
description: "In D2, use SUMIF to total the Units sold of Apple."
canonical_url: "https://practiceexcelonline.com/practice/sumif/sumif-text-criteria"
locale: en
meta:
  "og:description": "In D2, use SUMIF to total the Units sold of Apple."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_SUMIF%2Bwith%2Ba%2Btext%2Bcriterion%2Cdescription_~SW4gRDIsIHVzZSBTVU1JRiB0byB0b3RhbCB0aGUgVW5pdHMgc29sZCBvZiBBcHBsZS4%2Ceyebrow_SUMIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIkZydWl0IiwiVW5pdHMiLCIiXX0seyJuIjoyLCJjZWxscyI6WyJBcHBsZSIsIjUiLCIiXX0seyJuIjozLCJjZWxscyI6WyJQZWFyIiwiMyIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIkFwcGxlIiwiOCIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIlBsdW0iLCIyIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiQXBwbGUiLCI0IiwiIl19XSwidGFyZ2V0IjpbMSwyXX19%2Cp_Ii9wcmFjdGljZS9zdW1pZi9zdW1pZi10ZXh0LWNyaXRlcmlhIg%2Cs_m6of_b4QjCbBYqxc.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "SUMIF with a text criterion | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_SUMIF%2Bwith%2Ba%2Btext%2Bcriterion%2Cdescription_~SW4gRDIsIHVzZSBTVU1JRiB0byB0b3RhbCB0aGUgVW5pdHMgc29sZCBvZiBBcHBsZS4%2Ceyebrow_SUMIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIl0sInJvd3MiOlt7Im4iOjEsImNlbGxzIjpbIkZydWl0IiwiVW5pdHMiLCIiXX0seyJuIjoyLCJjZWxscyI6WyJBcHBsZSIsIjUiLCIiXX0seyJuIjozLCJjZWxscyI6WyJQZWFyIiwiMyIsIiJdfSx7Im4iOjQsImNlbGxzIjpbIkFwcGxlIiwiOCIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIlBsdW0iLCIyIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiQXBwbGUiLCI0IiwiIl19XSwidGFyZ2V0IjpbMSwyXX19%2Cp_Ii9wcmFjdGljZS9zdW1pZi9zdW1pZi10ZXh0LWNyaXRlcmlhIg%2Cs_m6of_b4QjCbBYqxc.png"
---

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

# **SUMIF with a text criterion**

1.
2.
3.

Step 1 of 3

**SUMIF** adds up only the rows that meet a condition. It takes the range to check, the condition, and the range to add up.

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

Already know it? Type the formula straight into D2.

D2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Fruit | Units |  |  |  | |
| 2 | Apple | 5 |  |  |  | |
| 3 | Pear | 3 |  |  |  | |
| 4 | Apple | 8 |  |  |  | |
| 5 | Plum | 2 |  |  |  | |
| 6 | Apple | 4 |  |  |  | |
| 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/sumif/sumif-text-criteria#webpage","description":"In D2, use SUMIF to total the Units sold of Apple.","name":"SUMIF with a text criterion","url":"https://practiceexcelonline.com/practice/sumif/sumif-text-criteria","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-text-criteria#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-text-criteria#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/sumif/sumif-text-criteria"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-text-criteria#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":"SUMIF","item":"https://practiceexcelonline.com/practice/sumif","position":3},{"@type":"ListItem","name":"SUMIF with a text criterion","position":4}]},{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-text-criteria#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I sum only the rows that match a word?","acceptedAnswer":{"@type":"Answer","text":"Use =SUMIF(range,\"word\",sum_range). The range is checked against the word and the matching cells in sum_range are added."}},{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-text-criteria#/schema/learning-resource/1","@type":"LearningResource","description":"In D2, use SUMIF to total the Units sold of Apple.","educationalLevel":"beginner","isAccessibleForFree":true,"learningResourceType":"exercise","name":"SUMIF with a text criterion","teaches":"SUMIF"},{"@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.
