Logical Tests and Operators
Swipe to show menu
Comparison Operators
- Greater than
>; - Less than
<; - Equal to
=; - Greater than or equal
>=; - Less than or equal
<=; - Not equal to
<>.
Note
Text comparisons must match exactly — spelling, spacing, and capitalisation all matter. Always wrap text values in quotation marks: "Groceries" not Groceries.
The IF function
=IF(logical_test; value_if_true; value_if_false)
=IF(D9>100; "High"; "Low")
- Logical test: the condition to evaluate — any comparison using
><=>=<=<>. ReturnsTRUEorFALSEinternally; - Value if TRUE: what to return when the condition is met. Can be text (in quotes), a number, another formula, or a cell reference;
- Value if FALSE: what to return when the condition is not met. Same flexibility as the TRUE value.
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 4
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Section 3. Chapter 4