0% found this document useful (0 votes)
51 views4 pages

If Statement

The IF statement checks if a condition is true or false. It will return one value if true, and another value if false. The syntax includes the condition, value if true, and value if false separated by commas. An example IF statement compares the values in columns A and B, returning "yes" if A is larger than B, or "no" if A is not larger than B.

Uploaded by

RJ Casildo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views4 pages

If Statement

The IF statement checks if a condition is true or false. It will return one value if true, and another value if false. The syntax includes the condition, value if true, and value if false separated by commas. An example IF statement compares the values in columns A and B, returning "yes" if A is larger than B, or "no" if A is not larger than B.

Uploaded by

RJ Casildo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 4

OBJECTIVES

1. DESCRIBE IF STATEMENT AND STRING


2. RECALL THE RELATIONAL OPERATORS
3. VALUE THE IF_STATEMENT BY USING
IT PROPERLY
4. ENTER IF_STATEMENT IN A
WORKSHEET
The Excel IF function checks to see if a certain
condition is true or false. If the condition is
true, the function will do one thing, if the
condition is false, the function will do
something else.
SYNTAX:

=IF(CONDITION, VALUE_IF TRUE, VALUE_IF_FALSE)


The arguments in an If statement are as follows:

Logical test – what are we asking? In this case, let’s say our
logical test is “Is the value in Column A larger than the value
in Column B?”

Value if true – what do we want displayed if the answer to


our question is “true”? In this example, let’s say we want the
answer to be “yes”

Value if false – what do we want displayed if the answer is


“false”? In this example, let’s say we want “no”.
How do we build an IF statement?

In a formula, the arguments are separated by commas, so for


this example, let’s put our formula in cell C2 and this is
what it would look like:

This says, IF the value in A2 is greater than the value in B2,


put yes in C2 and if it’s not greater than B2, put no in C2.

You might also like