Function Problems

Use a Cell Reference in an Excel SUMIFS Not-Equal Criterion

Huma Ashraf ChHuma Ashraf Ch Nov 14, 2026 871 views

Question details

Use a cell reference in a SUMIFS criterion to exclude the value stored in that cell.

Use a Cell Reference in an Excel SUMIFS Not-Equal Criterion
Product
Microsoft Excel
Device & OS
not provided
Scenario
Sum values only when a corresponding criteria cell does not match a value stored elsewhere in the worksheet.
Observed behavior
A cell reference placed inside quotation marks is treated as literal text instead of referring to the cell's value.
Before you start

Identify the range to sum, the range to check, and the cell containing the value to exclude. Make sure the sum range and criteria range have matching dimensions.

Solution 1Recommended

Concatenate the Not-Equal Operator with a Cell Reference

Use this method when the value to exclude is stored in another worksheet cell.

1
Select the result cell

Click the cell where you want the SUMIFS result to appear.

2
Enter the formula

Type =SUMIFS(B2:B10,A2:A10,"<>"&D1), where B2:B10 contains the amounts, A2:A10 contains the values to check, and D1 contains the value to exclude.

3
Confirm and check the result

Press Enter. Change the value in D1 to verify that the sum updates for the new exclusion.

Concatenate the Not-Equal Operator with a Cell Reference
Keep the reference outside the quotes: The criterion "<>D1" compares against the literal text D1. Use "<>"&D1 to compare against the value in cell D1.
Calculate with WPS Spreadsheets

Apply a SUMIFS Not-Equal Criterion in WPS Spreadsheets

Use WPS Spreadsheets to sum values while excluding the value in a referenced cell. Join the not-equal operator and the reference with an ampersand.

  1. 1. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your workbook.
  2. 2. Choose a result cell: Click an empty cell where you want to display the sum.
  3. 3. Enter SUMIFS: Type =SUMIFS(B2:B10,A2:A10,"<>"&D1), adjusting the ranges and reference to match your data.
  4. 4. Calculate the result: Press Enter, then check that the result excludes rows matching the value in D1.
Exclude a cell's value dynamically in a SUMIFS calculationOpen and save Microsoft Excel XLSX filesWork with spreadsheet formulas in a familiar interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does "<>D1" not use the value in D1?

Quotation marks make D1 part of a text criterion. Use "<>"&D1 so the formula joins the not-equal operator to the value in the cell.

Can I exclude a value from another sheet?

Yes. Reference the other sheet after the ampersand, for example =SUMIFS(B2:B10,A2:A10,"<>"&Sheet2!D1).

Can SUMIFS apply more than one exclusion?

Yes. Add another criteria range and criterion, such as =SUMIFS(B2:B10,A2:A10,"<>"&D1,A2:A10,"<>"&D2), to exclude values matching either D1 or D2.

What if the cell I want to exclude is blank?

When D1 is blank, "<>"&D1 becomes the not-equal-to-blank criterion. Check whether excluding blank criteria cells is what you intend before using the result.