excel formula - Multiple Or Conditions in a Countifs Statement -



excel formula - Multiple Or Conditions in a Countifs Statement -

is possible have multiple or conditions in countifs statement?

i trying write statement counts number of records relationship either 'contractor' or 'supplier' , if severity either 'serious' or major. first or status work, first status in sec or statement beingness picked up. here have written:

=(countifs(data!f:f,{"contractor","supplier"},data!e:e,{"serious","major"}))

=sumproduct((data!f:f="contractor")+(data!f:f="supplier"),(data!e:e="serious")+(data!e:e="major"))

the (data!f:f="contractor") produce array of true/false size of column f, true column f "contractor".

the (data!f:f="supplier") produce array of true/false size of column f, true column f "supplier".

the above 2 arrays "added" - converts them 1/0s instead , adds 2 arrays together, producing array size of column f, 1 / 0 s, 1s cells in column f either "contractor" or "supplier".

the same "serious"/"major"

inside sumproduct 2 arrays 1&0s multiplied together, homecoming 1 when there 1 in both arrays so: f {"contractor or "supplier"} , e {"serious" or "major"} the whole array summed (by sumproduct() ) homecoming count of rows match criteria (as single number)

excel-formula countif

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -