Use a Cell Reference in an Excel SUMIFS Not-Equal Criterion
Question details
Use a cell reference in a SUMIFS criterion to exclude the value stored in that cell.

- 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.
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.
Concatenate the Not-Equal Operator with a Cell Reference
Use this method when the value to exclude is stored in another worksheet cell.
Click the cell where you want the SUMIFS result to appear.
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.
Press Enter. Change the value in D1 to verify that the sum updates for the new exclusion.

Use a Structured Reference in a SUMIFS Criterion
Use this approach when the value to exclude comes from a column in the current table row.
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. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your workbook.
- 2. Choose a result cell: Click an empty cell where you want to display the sum.
- 3. Enter SUMIFS: Type =SUMIFS(B2:B10,A2:A10,"<>"&D1), adjusting the ranges and reference to match your data.
- 4. Calculate the result: Press Enter, then check that the result excludes rows matching the value in D1.

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.




