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

If Function in Excel

The IF function in Excel evaluates a condition and returns one value if true and another if false, with examples provided for various scenarios. It can be combined with AND and OR functions to handle multiple criteria, allowing for more complex decision-making in formulas. Key points include using comparison operators and enclosing text in double quotation marks.

Uploaded by

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

If Function in Excel

The IF function in Excel evaluates a condition and returns one value if true and another if false, with examples provided for various scenarios. It can be combined with AND and OR functions to handle multiple criteria, allowing for more complex decision-making in formulas. Key points include using comparison operators and enclosing text in double quotation marks.

Uploaded by

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

IF function in Excel

The IF function is one of the most used functions in Excel. This page
contains many easy to follow IF examples.
Simple IF examples
The IF function checks whether a condition is met, and returns one value if
true and another value if false.

1a. For example, take a look at the IF function in cell B2 below.

Explanation: if the price is greater than 500, the IF function returns High,
else it returns Low.

1b. The following IF function produces the exact same result.

Note: you can use the following comparison operators: = (equal to), >
(greater than), < (less than), >= (greater than or equal to), <= (less than
or equal to) and <> (not equal to).
2. Always enclose text in double quotation marks.
3a. The formula below calculates the progress between two points in time.

3b. You can use the IF function to display an empty string if the end value
hasn't been entered yet (see row 5).

Explanation: if the end value is not empty (<> means not equal to), the IF
function calculates the progress between the start and end value, else it
displays an empty string (two double quotes with nothing in between).

And/Or Criteria
Use the IF function in combination with the AND function and the OR
function and become an Excel expert.
1. For example, take a look at the IF function in cell D2 below.

Explanation: the AND function returns TRUE if the first score is greater
than or equal to 60 and the second score is greater than or equal to 90,
else it returns FALSE. If TRUE, the IF function returns Pass, if FALSE, the IF
function returns Fail.

2. For example, take a look at the IF function in cell D2 below.

Explanation: the OR function returns TRUE if at least one score is greater


than or equal to 60, else it returns FALSE. If TRUE, the IF function returns
Pass, if FALSE, the IF function returns Fail.

3. For example, take a look at the IF function in cell D2 below.


Explanation: the AND function above has two arguments separated by a
comma (Table, Green or Blue). The AND function returns TRUE if Product
equals "Table" and Color equals "Green" or "Blue". If TRUE, the IF function
reduces the price by 50%, if FALSE, the IF function reduces the price by
10%

You might also like