5

Can you please advise on how can I use COUNTIF with multiple conditions?

enter image description here

My proposal (left) shows the formula for one criterion (distinct regions).

However, I am interested in counting distinct regions for each distinct month (two criteria) - on the right: desired result.

pnuts
  • 58,317
  • 11
  • 87
  • 139
Sam
  • 3,067
  • 19
  • 53
  • 55

1 Answers1

12

you can use COUNTIFS() instead

=1/COUNTIFS($A:$A,A2,$B:$B,B2)
pevik
  • 4,523
  • 3
  • 33
  • 44
JosieP
  • 3,360
  • 1
  • 13
  • 16