Related:
- Countif
- How to count names in Excel: formula, using COUNTIF - Guide
1 response
Hi Jack
Assuming this is what you are after
A B C
CityX 3.1% =if(B<=3%, 0, 1) "will return value 1"
CityY 3.0% =if(B<=3%, 0, 1) "will return value 0"
CityZ 2.9% =if(B<=3%, 0, 1) "will return value 0"
You can then count the number of cities have values 1 by using the formula =countif(C2:C4, 1) and number of cities have values 0 with =countif(C2:C4,0).
Hope it helps.
DitzySuz
Assuming this is what you are after
A B C
CityX 3.1% =if(B<=3%, 0, 1) "will return value 1"
CityY 3.0% =if(B<=3%, 0, 1) "will return value 0"
CityZ 2.9% =if(B<=3%, 0, 1) "will return value 0"
You can then count the number of cities have values 1 by using the formula =countif(C2:C4, 1) and number of cities have values 0 with =countif(C2:C4,0).
Hope it helps.
DitzySuz