---
title: "Count everything except one value | PracticeExcel"
description: "Practice COUNTIF with not equal to in a live spreadsheet: count every ticket that isn't closed."
canonical_url: "https://practiceexcelonline.com/practice/countif/countif-not-equal"
locale: en
meta:
  "og:description": "Practice COUNTIF with not equal to in a live spreadsheet: count every ticket that isn't closed."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Count%2Beverything%2Bexcept%2Bone%2Bvalue%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiB3aXRoIG5vdCBlcXVhbCB0byBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IGNvdW50IGV2ZXJ5IHRpY2tldCB0aGF0IGlzbid0IGNsb3NlZC4%2Ceyebrow_COUNTIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJUaWNrZXQiLCJTdGF0dXMiLCJOb3QgY2xvc2VkIiwiIl19LHsibiI6MiwiY2VsbHMiOlsiVC0xMDEiLCJPcGVuIiwiIiwiIl19LHsibiI6MywiY2VsbHMiOlsiVC0xMDIiLCJDbG9zZWQiLCIiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJULTEwMyIsIldhaXRpbmciLCIiLCIiXX0seyJuIjo1LCJjZWxscyI6WyJULTEwNCIsIkNsb3NlZCIsIiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlQtMTA1IiwiT3BlbiIsIiIsIiJdfV0sInRhcmdldCI6WzAsM119fQ%2Cp_Ii9wcmFjdGljZS9jb3VudGlmL2NvdW50aWYtbm90LWVxdWFsIg%2Cs_mtcIKVUnWOZN1y-E.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Count everything except one value | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Count%2Beverything%2Bexcept%2Bone%2Bvalue%2Cdescription_~UHJhY3RpY2UgQ09VTlRJRiB3aXRoIG5vdCBlcXVhbCB0byBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IGNvdW50IGV2ZXJ5IHRpY2tldCB0aGF0IGlzbid0IGNsb3NlZC4%2Ceyebrow_COUNTIF%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiLCJEIiwiRSJdLCJyb3dzIjpbeyJuIjoxLCJjZWxscyI6WyJUaWNrZXQiLCJTdGF0dXMiLCJOb3QgY2xvc2VkIiwiIl19LHsibiI6MiwiY2VsbHMiOlsiVC0xMDEiLCJPcGVuIiwiIiwiIl19LHsibiI6MywiY2VsbHMiOlsiVC0xMDIiLCJDbG9zZWQiLCIiLCIiXX0seyJuIjo0LCJjZWxscyI6WyJULTEwMyIsIldhaXRpbmciLCIiLCIiXX0seyJuIjo1LCJjZWxscyI6WyJULTEwNCIsIkNsb3NlZCIsIiIsIiJdfSx7Im4iOjYsImNlbGxzIjpbIlQtMTA1IiwiT3BlbiIsIiIsIiJdfV0sInRhcmdldCI6WzAsM119fQ%2Cp_Ii9wcmFjdGljZS9jb3VudGlmL2NvdW50aWYtbm90LWVxdWFsIg%2Cs_mtcIKVUnWOZN1y-E.png"
---

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

# **Count everything except one value**

**Premium**

In E1, count the tickets in B2:B8 whose status is anything but Closed. "Not equal to" is <>, so the criterion is "<>Closed".

E1fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Ticket | Status |  | Not closed |  | |
| 2 | T-101 | Open |  |  |  | |
| 3 | T-102 | Closed |  |  |  | |
| 4 | T-103 | Waiting |  |  |  | |
| 5 | T-104 | Closed |  |  |  | |
| 6 | T-105 | Open |  |  |  | |
| 7 | T-106 | Closed |  |  |  | |
| 8 | T-107 | In progress |  |  |  | |
| 9 |  |  |  |  |  | |

**Premium lesson**

## **Unlock COUNTIF 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:**SUMIF****AVERAGEIF and AVERAGEIFS**

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/countif/countif-not-equal)

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/countif/countif-not-equal#webpage","description":"Practice COUNTIF with not equal to in a live spreadsheet: count every ticket that isn't closed.","name":"Count everything except one value","url":"https://practiceexcelonline.com/practice/countif/countif-not-equal","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/countif/countif-not-equal#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/countif/countif-not-equal#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/countif/countif-not-equal"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/countif/countif-not-equal#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":"COUNTIF","item":"https://practiceexcelonline.com/practice/countif","position":3},{"@type":"ListItem","name":"Count everything except one value","position":4}]},{"@id":"https://practiceexcelonline.com/practice/countif/countif-not-equal#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I count cells not equal to a value in Excel?","acceptedAnswer":{"@type":"Answer","text":"=COUNTIF(B2:B8,\"\u003C>Closed\"). To count cells that are not empty, use \"\u003C>\" on its own."}},{"@id":"https://practiceexcelonline.com/practice/countif/countif-not-equal#/schema/learning-resource/1","@type":"LearningResource","description":"Practice COUNTIF with not equal to in a live spreadsheet: count every ticket that isn't closed.","educationalLevel":"beginner","isAccessibleForFree":false,"learningResourceType":"exercise","name":"Count everything except one value","teaches":"COUNTIF"},{"@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.
