Forum Discussion

Bradley Peters's avatar
Bradley Peters
Copper Contributor
Sep 21, 2018
Solved

Using SUMIF to exclude values

Hi Guys,   I would like to use SUMIF, if possible, to add up a column but to exclude values when a corresponding cell contains the text "In Flight Relief". Can anybody help?
  • Lorenzo Kim's avatar
    Lorenzo Kim
    Sep 22, 2018
    can also reference a cell (Z2):
    =SUMIF(Z2:Z10,"<>"&Z2,M2:M10)
    where Z2 is the controlling text.
    be sure that the text is consistent in all controlling cells - otherwise it won't function properly.
    "In Flight Relief" is not sames as "In Flight Relief" nor "Inflightrelief"..
    If Z2 is deleted then the sum will be zero.... because the controlling cell is now blank.
    HTH

Resources