Forum Discussion
ShaneFrancis
Nov 06, 2023Copper Contributor
multiple criteria to select number
I have one data set COUNTIFS(A1:D10, Berwick) If Berwick appears it would be classed as 1 In a the same formula set, I would like to count : E1:F10 when "Berwick" and "Clinic visit" appear if th...
SergeiBaklan
Nov 06, 2023Diamond Contributor
ShaneFrancis
Nov 13, 2023Copper Contributor
- SergeiBaklanNov 13, 2023Diamond Contributor
So, "Clinic visit", if appears, always in C1 and it is applied to all names in that column, not only to Berwick?
- ShaneFrancisNov 15, 2023Copper Contributor
SergeiBaklan yes correct
- SergeiBaklanNov 16, 2023Diamond Contributor
As variant
=IF( $C$1="Clinic visit", COUNTIF($A$2:$B$9, "berwick"), COUNTIF($A$2:$D$9, "berwick") )