Quick, clean, and to the point

Sum if cells are not equal to

Excel formula: Sum if cells are not equal to
Generic formula 

To sum cells when other cells are not equal to a specific value, you can use the SUMIF function.

In the example shown, cell H7 contains this formula:


This formula sums the amounts in column E only when the region in column C is not "West".


The SUMIF function supports all of the standard Excel operators, including not-equal-to, which is input as <>.

When you use an operator in the criteria for a function like SUMIF, you need to enclose it in double quotes (""). In this case, the criteria is input as "<>West" which you can read as "not equal to West", or simply "not West".

Alternative with SUMIFS

You can also use the SUMIFS function to sum if cells are NOT blank. SUMIFS can handle multiple criteria, and the order of the arguments is different from SUMIF. The equivalent SUMIFS formula is:

=SUMIFS(amount, region,"<>West")

Notice that the sum range always comes first in the SUMIFS function.

SUMIFS allows you to easily extend the criteria to handle more than one condition if needed.

Dave Bruns

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.

Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.