Not Equal To (<>) not working in SUMIFS

minus4

New Member
Joined
Jul 22, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hello all,

I can't get Not Equal To <> syntax to work in my SUMIFS formula. SUMIFS is returning value as if Not Equal To criteria does not exist.
Data tab is queried data table that contains text.

=SUMIFS(Data[Length],Data[ItemID],"7610001006",Data[Status],"Sold",Data[Year],"2019",Data[WhseID],"<>"&"85")

I tried the alternatives below and it did not work either.
=SUMIFS(Data[Length],Data[ItemID],"7610001006",Data[Status],"Sold",Data[Year],"2019",Data[WhseID],"<>85")

Any help is greatly appreciated.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
check if the numbers are numbers in your source range
then try all numbers without "", even year
 
Upvote 0
check if the numbers are numbers in your source range
then try all numbers without "", even year
OK. So numbers are actually numbers, so even without "" SUMFIS returns correct values. But Not Equal To still doesn't work.
 
Upvote 0
maybe try: Data[WhseID],"<>"&A1) where A1=85

and check if the syntax is correct
 
Upvote 0
maybe try: Data[WhseID],"<>"&A1) where A1=85

and check if the syntax is correct
OK. So A1=85. I converted A1 to text. Not Equal To still does nothing. Converted it back to number, and it's the same.
Formula still returns value as if Not Equal To is not there.

If I do the (sum of all whse ID)-(sum where whse ID=85), then I get the number I want.
=SUMIFS(Data[Length],Data[ItemID],"7610001006",Data[Status],"Sold",Data[Year],"2019")-SUMIFS(Data[Length],Data[ItemID],"7610001006",Data[Status],"Sold",Data[Year],"2019",Data[WhseID],"85")

SUMIFS works correctly, only Not Equal To is not. So I don't think Syntax is an issue.
 
Upvote 0
post representative example using XL2BB
or
post a link to the shared Excel file with representative example and expected result via onedrive, googledrive, dropbox or any similar service

I suggest second option
 
Last edited:
Upvote 0
can you post a sample of your table column no. Data[WhseID]
 
Upvote 0
=SUMIFS(Data[Length],Data[ItemID],"7610001006",Data[Status],"Sold",Data[Year],"2019",Data[WhseID],"<>"&"85")
[....]
=SUMIFS(Data[Length],Data[ItemID],"7610001006",Data[Status],"Sold",Data[Year],"2019",Data[WhseID],"<>85")

Note that there is no difference between the two. Both pass the string "<>85" to SUMIFS. It makes no difference how the string is formed (concatenation in the first case).

However, I wonder if you inadvertently corrected the problem when you typed(?) the formula into your posting.

Be sure to copy-and-paste the formula from the Formula Bar.

In the Formula Bar, I wonder if I you have a space before "<>" or a space in between.

To demonstrate, enter 1 into A1 (verify ISNUMBER(A1) returns TRUE), then copy-and-paste the following formulas into Excel.

=COUNTIF(A1," <>2")
=COUNTIF(A1,"< >2")
=COUNTIF(A1,"<> 2")
=COUNTIF(A1,"<>2")

The first two formulas return zero because of the errant spaces. The count the cells with the text " <>2" and "< >2", not the cells that do not equal 2.

The last two formulas return one, as expected.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top