xxxxxxxxxx
# For single conditions
# With cell reference
=COUNTIF(A1:A10,"<"&B1)
# With numeric value
=COUNTIF(A1:A10,"<100")
# With string value
=COUNTIF(A1:A10,"UK")
# For multiple conditions
Use "COUNTIFS" (Excel 2019+ editions only)
xxxxxxxxxx
COUNTIF(A1:A20,">100") // count sales over 100
COUNTIF(B1:B20,"sold") // count if content = "sold"