Decide with IF
Decisions and lookups7 min
IF checks a condition, then returns one value when it's true and another when it's false.
=IF(B2>=1000,"Bonus","No bonus")The condition compares two values with =, <> (not equal), >, <, >= or <=. Text results go in quotation marks; numbers don't.
Count what matches
To count how many cells meet a condition, use COUNTIF. The condition goes in quotation marks:
=COUNTIF(B2:B9,">500")Practice
2 exercises · free with an account