Skip to main content

Excel Basics: IF function formula made easy!

Description



The IF function returns one value if a condition you specify evaluates to TRUE, and another value if that condition evaluates to FALSE.



Syntax





The IF function syntax has the following arguments:



logical_test:

Required.

Any value or expression that can be evaluated to TRUE or FALSE. For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100, the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE. This argument can use any comparison calculation operator.



value_if_true  

Optional.

The value that you want to be returned if the logical_test argument evaluates to TRUE. For example, if the value of this argument is the text string "Within budget" and the logical_test argument evaluates to TRUE, the IF function returns the text "Within budget." If logical_test evaluates to TRUE and the value_if_true argument is omitted; that is, there is only a comma following the logical_test argument, the IF function returns 0 . To display the word TRUE, use the logical value TRUE for the value_if_true argument.



value_if_false  

Optional.

The value that you want to be returned if the logical_test argument evaluates to FALSE. For example, if the value of this argument is the text string "Over budget" and the logical_test argument evaluates to FALSE, the IF function returns the text "Over budget." If logical_test evaluates to FALSE and the value_if_false argument is omitted; that is, there is no comma following the value_if_true argument, the IF function returns the logical value FALSE. If logical_test evaluates to FALSE and the value of the value_if_false argument is blank; that is, there is only a comma following the value_if_true argument, the IF function returns the value 0.







Source:

https://support.office.com/en-in/article/IF-function-a918d97a-251e-4af5-bd15-09b12b8742bb





Comments

Popular posts from this blog

Wildcard search and functions in Excel to Extract first name, last name ...

© ™ ® - Quick and Easy way to insert the symbols in excel

COUNT and SUM formula

Here is a simple explanation of the various COUNT and IF formulas Here are some of the simple COUNT and IF formulas: COUNT - Counts number of cells with numbers in a range COUNTA - Counts number of non blank cells in a range COUNTBLANK - Counts number of blank cells in a range COUNTIF - Counts if a criteria is met in a range COUNTIFS - Counts if multiple criteria is met in a range SUM - Sum of a range SUMIF - Sum of a range if a single criteria is met SUMIFS - Sum of a range if multiple criteria are met Watch the video to understand the working of these formulas Welcome to Excel is Simple; A channel where we will help you will all your excel problems in the simplest possible way Subscribe to the channel by clicking http://www.youtube.com/user/excelissimple?sub_confirmation=1