The <> operator inside the criteria string tells COUNTIF to count every cell in the range that does not exactly match the value after the operator. Everything about how COUNTIF works otherwise is the same — case-insensitive text comparison, exact matching for numbers, and the whole comparison must be inside one set of quotes. The critical point that trips people up is that blank cells are counted. A blank cell is technically not equal to Cancelled, so COUNTIF includes it in the total. If you want to exclude blanks as well, you need two conditions, which means moving up to COUNTIFS and adding a second check for not-blank. The other subtlety is combining the <> operator with a cell reference — you have to concatenate the operator string with the cell using & because COUNTIF criteria are literal strings, not expressions. Once these two quirks click, the formula becomes second nature. For counting non-blank cells specifically, the
count non-blank cells formula is a dedicated pattern worth knowing.