Call us at:
1.805.498.7162

Home > Excel Resources > Excel IF Function 
Microsoft Excel IF Function HelpIF Function TutorialThe IF Function can evaluate a TRUE/FALSE condition and return one of two values based on whether a TRUE was evaluated or a FALSE was evaluated. 
Function Specifics 
What is the Microsoft Excel IF Function?The IF function is a computer program that you run from a worksheet cell formula. It can evaluate a TRUE/FALSE condition and return one of two values based on whether a TRUE was evaluated or a FALSE was evaluated. You run the IF worksheet function by typing its name in a formula then followed by the information it is suppose to use. The IF function is generally used to make a decision in a worksheet formula thus providing logic for your worksheet. The decision as well as the values the function returns can be a great many things. A common use for the IF function would be to calculate different formulas based upon its TRUE/FALSE decision. For example, if you are calculating a sale and want to give the customer a 10% discount if the sale is above $400.00 then you would use the IF function to accomplish such a task. The IF worksheet function is also heavily used in summarizing data and in protecting against worksheet errors (error protection).
How Do You Type the IF Worksheet Function in a Formula?Whenever you type a formula in a worksheet cell, this is called syntax or grammar. The general IF function syntax has a format like this when you type it in a worksheet cell: =IF(logical_test, [value_if_true], [value_if_false]) Where logical_test, [value_if_true], [value_if_false] are called the function argument list. Remember, you are running a computer program at this point so the program needs information to operate and that is why there is an argument list. When you see an argument list and you see square brackets [ ] around the argument name, this means the argument is optional and you do not have to include it when typing unless you need it. So for the syntax above, you need to include one argument for the IF function when typing it in a worksheet cell formula in order for it to calculate correctly. What argument values can be used are discussed below. Remember functions expect certain things in their argument lists, if you do not put the correct information in the list they will generate an error when run. IF Worksheet Function Argument Definitions
How Do You Run the IF Function?Since the IF function is a computer program, it runs when you press Enter to enter the formula that contains it. If any of the arguments are wrong, the function will return an error.
What Do I Type for a IF Function Argument?When typing the IF function in a worksheet cell formula, you need to replace the argument list with arguments separating each one with a comma (,). Some typical arguments you can use are:
* It is possible to name a cell or group of cells on a worksheet and use that name in place of a range reference or cell reference. Consult Excel help on how to name a cell. 
Need Help? Let our Microsoft Excel workshops below show you how to use the worksheet function that you see on this page and more. They are unlike anything taught on the training market today.

Additional IF Function ExamplesThe worksheet seen below contains some typical worksheet formulas that run the IF worksheet function. Pay close attention to the argument list and the syntax used to write the formula.
Things to Know About the IF Function

Copyright © 20022015
EMAGENIT All Rights Reserved