Page 21 - Computing E-Book Grade 6
P. 21
The City School 2021-2022
OR
You can use the OR function to check if any out of a group of conditions are met.
Analysing Data
If there is even one condition which is met, Microsoft Excel shows the value TRUE,
otherwise, FALSE is displayed.
=OR (logical1, [logical2], ...)
• logical1: the first condition or logical value to evaluate.
• logical2[optional]: the second condition or logical value to evaluate.
In the above-mentioned example, a logical expression evaluates both logical conditions
and if either of the conditions is correct then the outcome will be TRUE and if all the
conditions are incorrect then the outcome will be FALSE. If you want to add more
conditions in the formula you can use a coma after the logical test as highlighted in the
example: =OR (D2=”Mature”,E2=”Lahore”).
Results in cell G4 and G6 are FALSE because none of the cells D2 and E2 TRUE
conditions. String values in double-quotes “ ” are case sensitive.
21

