Forum Discussion
Joebax86
Feb 17, 2021Copper Contributor
SUMIF and NOT functions
Hi, Just trying to get my head around the best way to calculate the sum of values from one column but excluding some based off a name in another. I tried the following: =SUMIF(A4:A20,NOT("Bloggs")...
JMB17
Feb 17, 2021Bronze Contributor
Try =SUMIF(A4:A20,"<>Bloggs",B4:B20)
- Joebax86Feb 17, 2021Copper Contributor
- JMB17Feb 17, 2021Bronze Contributor
Correct. When you enter SUMIF(A4:A20,"Bloggs",B4:B20), the "=" is implicit, so think of it as SUMIF(A4:A20,"=Bloggs",B4:B20), but you can use other conditional comparison operators (<, >, <=, >=, <>).
- Joebax86Feb 17, 2021Copper ContributorYeh makes sense, thanks for the explanation.