🚀
ArkyEdu GLOSAR TIC
RO Practice Lab
Spreadsheets, Docs & Media Grade 8 RO Term: Funcțiile Logice IF și COUNTIF în Excel

Logical Spreadsheet Functions: IF & COUNTIF

💬 Share on WhatsApp
📌 Quick Definition (Answer-First)

The IF function tests a condition and returns one result when true and another when false. COUNTIF counts how many cells in a range match a given criterion (such as scores >= 8).

How It Works & Why It Matters

IF takes 3 arguments: logical_test, value_if_true, and value_if_false.

In COUNTIF, comparison criteria with operators like ">=5" or text strings must be enclosed in double quotes.

💻 IF & COUNTIF Syntax
=IF(D2>=5, "Pass", "Fail")
=COUNTIF(D2:D30, ">=8")
=SUMIF(B2:B30, "CS", D2:D30)

🏫 Classroom Example

=COUNTIF(E2:E28, "Pass") counts how many students passed without manual tallying.

⚖️ COUNTIF vs. COUNT

COUNT counts all numeric cells in a range; COUNTIF counts only cells matching your specific rule.

⚠️ Common Mistake in Exams & Homework

Forgetting quotes around text outputs or comparison strings like ">=8", or mixing up comma vs. semicolon separators.

❓ Quick Questions & Answers

Why must ">=8" be inside quotes inside COUNTIF?
Excel expects the criterion argument of COUNTIF to be evaluated as a condition string.

Related Glossary Terms

← Back to Full Glossary (A–Z)