SMORF
SMORF

Reputation: 499

Excel COUNTIFS cell equals range of cells AND cell from range equals another range

What formula can I use that will count the cells in my first sheet (ALL DATA) ...

Thanks

Upvotes: 0

Views: 1716

Answers (1)

barry houdini
barry houdini

Reputation: 46331

I'm assuming that for the second criterion you just want to count rows where the column N value is equal to one of E2:E5

Try this formula in Summary sheet

=SUMPRODUCT(COUNTIFS('ALL DATA'!C:C,A2,'ALL DATA'!N:N,USERS!E2:E5))

COUNTIFS returns an array of 4 values, one each for E2:E5, so SUMPRODUCT is used to sum that array to get the final result

Assumes all values in E2:E5 are different, otherwise rows may be double counted

Upvotes: 1

Related Questions