---
title: "SUMIF with a wildcard | PracticeExcel"
description: "Practice SUMIF with wildcards in a live spreadsheet: total the sales of every product whose name contains a word."
canonical_url: "https://practiceexcelonline.com/practice/sumif/sumif-wildcard-contains"
locale: en
meta:
  "og:description": "Practice SUMIF with wildcards in a live spreadsheet: total the sales of every product whose name contains a word."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_SUMIF%2Bwith%2Ba%2Bwildcard%2Cdescription_~UHJhY3RpY2UgU1VNSUYgd2l0aCB3aWxkY2FyZHMgaW4gYSBsaXZlIHNwcmVhZHNoZWV0OiB0b3RhbCB0aGUgc2FsZXMgb2YgZXZlcnkgcHJvZHVjdCB3aG9zZSBuYW1lIGNvbnRhaW5zIGEgd29yZC4%2Ceyebrow_SUMIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiU2FsZXMiLCJDaGFpciBzYWxlcyIsIiJdfSx7Im4iOjIsImNlbGxzIjpbIk9mZmljZSBDaGFpciBQcm8iLCIxNDUwIiwiIiwiIl19LHsibiI6MywiY2VsbHMiOlsiRGVzayBMYW1wIiwiMzIwIiwiIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiS2lkcyBDaGFpciIsIjQ4MCIsIiIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIlN0YW5kaW5nIERlc2siLCIyMTAwIiwiIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiQ2hhaXIgQ3VzaGlvbiIsIjE1MCIsIiIsIiJdfV0sInRhcmdldCI6WzAsM119fQ%2Cp_Ii9wcmFjdGljZS9zdW1pZi9zdW1pZi13aWxkY2FyZC1jb250YWlucyI%2Cs_vEF6MBqr-yF-9SXp.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "SUMIF with a wildcard | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_SUMIF%2Bwith%2Ba%2Bwildcard%2Cdescription_~UHJhY3RpY2UgU1VNSUYgd2l0aCB3aWxkY2FyZHMgaW4gYSBsaXZlIHNwcmVhZHNoZWV0OiB0b3RhbCB0aGUgc2FsZXMgb2YgZXZlcnkgcHJvZHVjdCB3aG9zZSBuYW1lIGNvbnRhaW5zIGEgd29yZC4%2Ceyebrow_SUMIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJQcm9kdWN0IiwiU2FsZXMiLCJDaGFpciBzYWxlcyIsIiJdfSx7Im4iOjIsImNlbGxzIjpbIk9mZmljZSBDaGFpciBQcm8iLCIxNDUwIiwiIiwiIl19LHsibiI6MywiY2VsbHMiOlsiRGVzayBMYW1wIiwiMzIwIiwiIiwiIl19LHsibiI6NCwiY2VsbHMiOlsiS2lkcyBDaGFpciIsIjQ4MCIsIiIsIiJdfSx7Im4iOjUsImNlbGxzIjpbIlN0YW5kaW5nIERlc2siLCIyMTAwIiwiIiwiIl19LHsibiI6NiwiY2VsbHMiOlsiQ2hhaXIgQ3VzaGlvbiIsIjE1MCIsIiIsIiJdfV0sInRhcmdldCI6WzAsM119fQ%2Cp_Ii9wcmFjdGljZS9zdW1pZi9zdW1pZi13aWxkY2FyZC1jb250YWlucyI%2Cs_vEF6MBqr-yF-9SXp.png"
---

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

# **SUMIF with a wildcard**

**Premium**

In E1, total the sales of every product with Chair anywhere in its name. Use \* on both sides of the word: SUMIF(A2:A8,"\*Chair\*",B2:B8).

E1fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Product | Sales |  | Chair sales |  | |
| 2 | Office Chair Pro | 1450 |  |  |  | |
| 3 | Desk Lamp | 320 |  |  |  | |
| 4 | Kids Chair | 480 |  |  |  | |
| 5 | Standing Desk | 2100 |  |  |  | |
| 6 | Chair Cushion | 150 |  |  |  | |
| 7 | Monitor Arm | 640 |  |  |  | |
| 8 | Gaming Chair | 1890 |  |  |  | |
| 9 |  |  |  |  |  | |

**Premium lesson**

## **Unlock SUMIF and every other lesson**

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:**AVERAGEIF and AVERAGEIFS****SUMIFS**

It comes up in this mock test: [**Excel assessment (Indeed format)**](https://practiceexcelonline.com/tests/indeed-excel-assessment)

[**See plans, from $5/month**](https://practiceexcelonline.com/pricing) [**Already premium? Sign in**](https://practiceexcelonline.com/login?next=/practice/sumif/sumif-wildcard-contains)

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-wildcard-contains#webpage","description":"Practice SUMIF with wildcards in a live spreadsheet: total the sales of every product whose name contains a word.","name":"SUMIF with a wildcard","url":"https://practiceexcelonline.com/practice/sumif/sumif-wildcard-contains","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-wildcard-contains#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-wildcard-contains#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/sumif/sumif-wildcard-contains"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-wildcard-contains#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 wildcard","position":4}]},{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-wildcard-contains#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I sum cells that contain certain text in Excel?","acceptedAnswer":{"@type":"Answer","text":"Use wildcards in SUMIF, =SUMIF(A2:A8,\"*Chair*\",B2:B8). * stands for any characters and ? for one."}},{"@id":"https://practiceexcelonline.com/practice/sumif/sumif-wildcard-contains#/schema/learning-resource/1","@type":"LearningResource","description":"Practice SUMIF with wildcards in a live spreadsheet: total the sales of every product whose name contains a word.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"SUMIF with a wildcard","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.
