HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The OR function is a premade function in Excel, which returns TRUE or FALSE based on two or more conditions
The OR function is a premade function in Excel, which returns TRUE or FALSE based on two or more conditions.
It is typed =OR
.
Note: The OR function is often used together with the IF function.
=OR([logical1], [logical2], ...)
The conditions are referred to as [logical1]
, [logical2]
, and so on.
The conditions can check things like:
>
<
=
Note: The different parts of the function are separated by a symbol, like comma ,
or semicolon ;
The symbol depends on your Language Settings.
Check if the Pokemon type is water OR has defense greater than 60:
The function returns "TRUE" or "FALSE".
Example OR function, step by step:
D2
=OR
B2="Water"
,
C2>60
Note: You can add more conditions by repeating steps 5-6 before hitting enter.
Since the value in cell B2
is not "Water" the first condition is FALSE.
Since the value in cell C2
is less than 60 the second condition is also FALSE.
Note: Text values needs to be in quotes: " "
The function can be repeated with the filling function for each row to perform the same check for each Pokemon:
Now, each row has a check for Water Type or Defense greater than 60:
For example:
Combining the OR function with an IF function lets you check multiple conditions for the IF function:
Note: The IF function lets you specify the return values.
The IF function is typed =IF
and has 3 parts:
=IF(logical_test, [value_if_true], [value_if_false])
The OR function takes the place of the logical_test
condition.
Here, the IF function returns "Yes" or "No".
Example OR function as the condition for IF function, step by step:
C2
=IF
OR
B2="Water"
,
C2>60
),
"Yes"
for when either or both conditions are TRUE,
"No"
for when both conditions are FALSE)
and hit enterThe function can be repeated with the filling function for each row to perform the same check for each Pokemon:
Now, each row has a check for Water Type or Defense greater than 60:
For example:
function copyFormulas(elementId){ /* Get the text field */ var copyText = document.getElementById(elementId); /* Select the text field */ copyText.select(); copyText.setSelectionRange(0, 99999); /* For mobile devices */ /* Copy the text inside the text field */ navigator.clipboard.writeText(copyText.value) .then(() => { alert('Range copied to clipboard.\nIt can now be pasted into the Excel spreadsheet.') }) .catch((error) => { alert(`Copy failed! ${error}`) }) }