=SUMIF(A2:A14,"<>2000") sums everything except values equal to 2000 — the <> operator and the value both sit inside one pair of quotes, and the sum range can be omitted when it’s the same as the criteria range. For text, =SUMIF(A2:A13,"<>Apple",B2:B13).
To exclude more than one value, use SUMIFS with both conditions, since they combine as AND: =SUMIFS(B2:B13,A2:A13,"<>A",A2:A13,"<>C"). To compare against a cell rather than a typed value, join with &: =SUMIF(A2:A14,"<>"&E1). And "<>" on its own means “not blank”, so =SUMIF(A2:A14,"<>",B2:B14) sums the rows where column A has any entry.
In Excel, when you need to sum values that are not equal to specific criteria, you can use SUMIF or SUMIFS. Both functions can be used according to the data you have. In this tutorial, we will look at both situations.
SUMIF Not Equal To
In the following example, we have a list of values where we have three values that are 2000, but we need to sum all the other values.

Here we will use SUMIF to get the result.
=SUMIF(A2:A14,"<>2000",A2:A14)
- First, in cell C1, enter “=SUMIF” and then enter an opening parenthesis.

- Next, select the range where we need to check the criteria (not equal to 2000).

- After that, enter the values that we want to use as criteria i.e., not equal to 2000, and for this, we need to use the not equal operator (sign) and enclose it in double quotation marks.

- From here, you need to specify the range from where we need to sum the values. Now, as we have only one range, we need to use the same range to get the sum of the values.

- In the end, enter a closing parenthesis and hit Enter.

As you can see, we have 16046 in the result, which is the total of all the values that are not equal to 2000.
Note: [sum_range] is optional. If you skip it, SUMIF sums the cells of the criteria range itself, so you still get the same total.

=SUMIF(A2:A14,"<>2000")
SUMIFS Not Equal to Multiple Values (Text)
Let’s say you need to sum values using multiple not-equal values. In the following example, we have the list of products with the quantity, and you need to sum for the products that are not equal to A and C.

You can use the following formula.
=SUMIFS(B2:B13,A2:A13,"<>A",A2:A13,"<>C")

In the above formula, we have used multiple not-equal criteria to get the sum of the rest of the values. SUMIFS only adds a value when all the criteria are true, so a product is left out when it’s A or C.
Keep in mind that the comparison isn’t case-sensitive, so “<>A” also leaves out “a”. And blank cells in the criteria range count as “not equal to A”, so their values are included. To leave out blank cells too, add one more criterion with “<>”:
=SUMIFS(B2:B13,A2:A13,"<>A",A2:A13,"<>C",A2:A13,"<>")
SUMIF Not Equal to a Cell Value
Instead of typing the value in the formula, you can refer to a cell. Join the not equal operator with the cell using the ampersand (&). With this, you only need to change the value in cell E1 to get a new total:
=SUMIF(A2:A14,"<>"&E1)
Don’t put the cell reference inside the double quotation marks. “<>E1” would compare the values with the text “E1”, not with the value in cell E1.
Sum Values Not Equal to a List of Values
When you have a longer list of values to leave out, adding one criterion for each value makes the formula long. In that case, use SUMPRODUCT with MATCH. MATCH gives #N/A for the products that are not in the list, and ISNA turns those into TRUE, so only their quantities are added:
=SUMPRODUCT(B2:B13*ISNA(MATCH(A2:A13,{"A","C"},0)))
You can also replace {“A”,”C”} with a range that has the values to leave out, like E2:E5. Another simple way is to take the full total and subtract the values you don’t want:
=SUM(B2:B13)-SUMIF(A2:A13,"A",B2:B13)-SUMIF(A2:A13,"C",B2:B13)
Frequently Asked Questions
Why does my SUMIF not equal formula return the full total?
Usually, the value in the criteria doesn’t match the cells exactly, like extra spaces in the cells or a typo in the criteria. Check the cells with LEN or TRIM, and make sure the operator and the value are inside the quotation marks.
Can I use OR logic with not equal in SUMIFS?
Not directly, as SUMIFS joins all its criteria with AND. For “not A or not C”, every value passes anyway, so what you usually want is “not A and not C”, which is what the formula above does.
Is SUMIF not equal case-sensitive?
No. “<>A” leaves out both “A” and “a”. For a case-sensitive version, use SUMPRODUCT with EXACT:
=SUMPRODUCT(B2:B13*NOT(EXACT(A2:A13,"A")))
Written by
Puneet Gogia
Microsoft MVP — Excel · Founder, Excel Champs
Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.