---
title: "SUMIF with the criterion in a cell in Google Sheets | PracticeExcel"
description: "In E2, total the Sales of the rep named in D2. Point SUMIF at D2 instead of typing the name, so the total follows when D2 changes."
canonical_url: "https://practiceexcelonline.com/sheets/practice/sumif/sumif-criteria-from-a-cell"
locale: en
meta:
  "og:description": "In E2, total the Sales of the rep named in D2. Point SUMIF at D2 instead of typing the name, so the total follows when D2 changes."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_SUMIF%2Bwith%2Bthe%2Bcriterion%2Bin%2Ba%2Bcell%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gRTIsIHRvdGFsIHRoZSBTYWxlcyBvZiB0aGUgcmVwIG5hbWVkIGluIEQyLiBQb2ludCBTVU1JRiBhdCBEMiBpbnN0ZWFkIG9mIHR5cGluZyB0aGUgbmFtZSwgc28gdGhlIHRvdGFsIGZvbGxvd3Mgd2hlbiBEMiBjaGFuZ2VzLg%2Ceyebrow_SUMIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZXAiLCJTYWxlcyIsIlJlcCIsIlRvdGFsIl19LHsibiI6MiwiY2VsbHMiOlsiQW5uYSIsIjEyMDAiLCJCZW4iLCIiXX0seyJuIjozLCJjZWxscyI6WyJCZW4iLCI4MDAiLCIiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJBbm5hIiwiOTUwIiwiIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiQ2FybCIsIjExMDAiLCIiLCIiXX0seyJuIjo2LCJjZWxscyI6WyJCZW4iLCI0MDAiLCIiLCIiXX1dLCJ0YXJnZXQiOlsxLDNdfX0%2Cp_Ii9zaGVldHMvcHJhY3RpY2Uvc3VtaWYvc3VtaWYtY3JpdGVyaWEtZnJvbS1hLWNlbGwi%2Cs_gcc1PLyn5b2yqydi.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "SUMIF with the criterion in a cell in Google Sheets | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_SUMIF%2Bwith%2Bthe%2Bcriterion%2Bin%2Ba%2Bcell%2Bin%2BGoogle%2BSheets%2Cdescription_~SW4gRTIsIHRvdGFsIHRoZSBTYWxlcyBvZiB0aGUgcmVwIG5hbWVkIGluIEQyLiBQb2ludCBTVU1JRiBhdCBEMiBpbnN0ZWFkIG9mIHR5cGluZyB0aGUgbmFtZSwgc28gdGhlIHRvdGFsIGZvbGxvd3Mgd2hlbiBEMiBjaGFuZ2VzLg%2Ceyebrow_SUMIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJSZXAiLCJTYWxlcyIsIlJlcCIsIlRvdGFsIl19LHsibiI6MiwiY2VsbHMiOlsiQW5uYSIsIjEyMDAiLCJCZW4iLCIiXX0seyJuIjozLCJjZWxscyI6WyJCZW4iLCI4MDAiLCIiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJBbm5hIiwiOTUwIiwiIiwiIl19LHsibiI6NSwiY2VsbHMiOlsiQ2FybCIsIjExMDAiLCIiLCIiXX0seyJuIjo2LCJjZWxscyI6WyJCZW4iLCI0MDAiLCIiLCIiXX1dLCJ0YXJnZXQiOlsxLDNdfX0%2Cp_Ii9zaGVldHMvcHJhY3RpY2Uvc3VtaWYvc3VtaWYtY3JpdGVyaWEtZnJvbS1hLWNlbGwi%2Cs_gcc1PLyn5b2yqydi.png"
---

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

# **SUMIF with the criterion in a cell**

**Premium**

In E2, total the Sales of the rep named in D2. Point SUMIF at D2 instead of typing the name, so the total follows when D2 changes.

E2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Rep | Sales |  | Rep | Total | |
| 2 | Anna | 1200 |  | Ben |  | |
| 3 | Ben | 800 |  |  |  | |
| 4 | Anna | 950 |  |  |  | |
| 5 | Carl | 1100 |  |  |  | |
| 6 | Ben | 400 |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

**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:**SUMIFS****COUNTIFS**

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

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/sheets/practice/sumif/sumif-criteria-from-a-cell#webpage","@type":"WebPage","description":"In E2, total the Sales of the rep named in D2. Point SUMIF at D2 instead of typing the name, so the total follows when D2 changes.","name":"SUMIF with the criterion in a cell in Google Sheets","url":"https://practiceexcelonline.com/sheets/practice/sumif/sumif-criteria-from-a-cell","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/practice/sumif/sumif-criteria-from-a-cell#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/practice/sumif/sumif-criteria-from-a-cell"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/practice/sumif/sumif-criteria-from-a-cell#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"SUMIF","item":"https://practiceexcelonline.com/sheets/practice/sumif","position":3},{"@type":"ListItem","name":"SUMIF with the criterion in a cell in Google Sheets","position":4}]},{"@id":"https://practiceexcelonline.com/sheets/practice/sumif/sumif-criteria-from-a-cell#/schema/learning-resource/1","@type":"LearningResource","description":"In E2, total the Sales of the rep named in D2. Point SUMIF at D2 instead of typing the name, so the total follows when D2 changes.","educationalLevel":"intermediate","isAccessibleForFree":false,"learningResourceType":"exercise","name":"SUMIF with the criterion in a cell","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.
