Forum Discussion

ana ayesh's avatar
ana ayesh
Copper Contributor
Jan 24, 2018
Solved

Countif function

Hi ,    I have a long list of value and i need to get the value for example, to count any number but not including  3,5,7,20,43,87,91? How do i go about to use COUNTIFS or other function in excel...
  • IngeborgHawighorst's avatar
    IngeborgHawighorst
    Jan 26, 2018

    Note: columns are vertical, rows are horizontal. It is confusing if you label a column as a "row A".

     

    You can count the number of cells that don't have the value "aa" like this:

     

    =COUNTIF(B2:B20,"<>aa")

     

    And to sum the values of column C where column A is not "aa" you can use

     

    =SUMIF(B2:B20,"<>aa",C2:C20)

     

    If you want to use whole column references instead of row 2 to row 20, that can be done, too, but for the Countif() you will need to subtract 1 for the header (wrongly) named Row A.

     

     

    Does that do what you need?

     

     

Resources