# What is an example of a logical function in Excel?

## What is an example of a logical function in Excel?

Excel logical functions – overview

Function Description Formula Example
AND Returns TRUE if all of the arguments evaluate to TRUE. =AND(A2>=10, B2<5)
OR Returns TRUE if any argument evaluates to TRUE. =OR(A2>=10, B2<5)
XOR Returns a logical Exclusive Or of all arguments. =XOR(A2>=10, B2<5)

What are the 10 logical functions in Excel?

Logical functions (reference)

Function Description
AND function Returns TRUE if all of its arguments are TRUE
FALSE function Returns the logical value FALSE
IF function Specifies a logical test to perform
IFERROR function Returns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formula

### How do you do logical functions in Excel?

Syntax. Use the IF function, one of the logical functions, to return one value if a condition is true and another value if it’s false. For example: =IF(A2>B2,”Over Budget”,”OK”)

What does the logical function if means in MS Excel?

The IF function checks whether a condition is met, and returns one value if true and another value if false. Explanation: if the score is greater than or equal to 60, the IF function returns Pass, else it returns Fail.

#### Where are the logical functions in Excel 2007?

Related Book. Excel 2007 uses seven logical functions — AND, FALSE, IF, IFERROR, NOT, OR, and TRUE — which appear on the Logical command button’s drop-down menu on the Excel Formulas tab of the Ribbon. All the logical functions return either the logical TRUE or logical FALSE when their functions are evaluated.

When does a logical function return true in Excel?

For example, if cells A1:A5 contain numbers, the formula =AND (A1:A5) will return TRUE if none of the cells contains 0, FALSE otherwise. A logical function returns the #VALUE! error if none of the arguments evaluate to logical values.

## How does the and function work in Excel?

After evaluating the comparisons in the two logical arguments, the AND function compares the results: If logical argument 1 and logical argument 2 are both found to be TRUE, then the AND function returns logical TRUE to the cell. If, however, either argument is found to be FALSE, then the AND function returns FALSE to the cell.

How does the not function in Excel work?

NOT (logical) tests whether the logical argument is TRUE or FALSE. If TRUE, the NOT function returns FALSE. If FALSE, the NOT function returns TRUE. OR (logical1,logical2,…) tests whether the logical arguments are TRUE or FALSE. If any are TRUE, the OR function returns TRUE. If all are FALSE, the OR function returns FALSE.