# The IF Function Learning Outcome formulate and use the IF and nested IF statements formulate and use the IF and nested IF statements.

## Presentation on theme: "The IF Function Learning Outcome formulate and use the IF and nested IF statements formulate and use the IF and nested IF statements."— Presentation transcript:

The IF Function Learning Outcome formulate and use the IF and nested IF statements formulate and use the IF and nested IF statements

IF Statements Some explanations

IF Statements =IF(logical_testvalue_if_truevalue_if_false,,) EXAMPLE: Cell A2 shows total sales of a salesperson If the total sales is under £1000 the salesperson does not get any commission. If it is £1000 or more the sales person should receive 2% commission. The following IF statements are both correct =IF(A2<1000, 0, A2*2%)=IF(A2>=1000, 0, A2*2%)

Use of Quotation Marks If entering a CELL REFERENCE or a NUMERIC VALUE there are NO Quotation marks =IF(A2<1000 NO Quotation Marks =IF(A2 =“TEXT” Quotation Marks If entering TEXT it MUST be contained within Quotation marks

Nested IF Statements (1) =IF(logical_test value_if_false),, =IF(logical_testvalue_if_true,

Nested IF Statements (2) =IF(logical_test, value_if_true, =IF(logical_testvalue_if_truevalue_if_false,, ))

IF with Nested AND =IF(logical_test_1 value_if_false,, ) AND (logical_test_2, ) value_if_true

IF with Nested OR =IF(logical_test_1 value_if_false,, ) OR(logical_test_2, ) value_if_true

Similar presentations