Home
Software
Hardware
German
About Us


Using the versatile 'IF' function in Excel

  • Let your calculations in Excel be done on basis of well defined criteria
  • A small flash movie on multiple 'if AND' function in Excel
  • IF
    Returns one value if a condition you specify evaluates to TRUE and another value if it evaluates to FALSE.
    Use IF to conduct conditional tests on values and formulas.
    Syntax
    IF(logical_test,value_if_true,value_if_false)
    Logical_test is 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 is the value that is returned if logical_test is TRUE. For example, if this argument is the text string "Within budget" and the logical_test argument evaluates to TRUE, then the IF function displays the text "Within budget". If logical_test is TRUE and value_if_true is blank, this argument returns 0 (zero). To display the word TRUE, use the logical value TRUE for this argument. Value_if_true can be another formula.
    Value_if_false is the value that is returned if logical_test is FALSE. For example, if this argument is the text string "Over budget" and the logical_test argument evaluates to FALSE, then the IF function displays the text "Over budget". If logical_test is FALSE and value_if_false is omitted, (that is, after value_if_true, there is no comma), then the logical value FALSE is returned. If logical_test is FALSE and value_if_false is blank (that is, after value_if_true, there is a comma followed by the closing parenthesis), then the value 0 (zero) is returned. Value_if_false can be another formula.
    Remarks
  • Up to seven IF functions can be nested as value_if_true and value_if_false arguments to construct more elaborate tests. If you want to test more than seven conditions, consider using the LOOKUP, VLOOKUP, or HLOOKUP function.
  • When the value_if_true and value_if_false arguments are evaluated, IF returns the value returned by those statements.
  • If any of the arguments to IF are arrays (array: Used to build single formulas that produce multiple results or that operate on a group of arguments that are arranged in rows and columns. An array range shares a common formula; an array constant is a group of constants used as an argument.), every element of the array is evaluated when the IF statement is carried out.
  • Microsoft Excel provides additional functions that can be used to analyze your data based on a condition. For example, to count the number of occurrences of a string of text or a number within a range of cells, use the COUNTIF worksheet function. To calculate a sum based on a string of text or a number within a range, use the SUMIF worksheet function.

  • Using 'if' and multiple 'if' function in Excel
    Note the complete function

    Family Computer Club, no.9, Savitri Cinema Commercial Complex, Greater Kailash-2,
    New Delhi-110048 Ph: 29213339 Mobile: 9810081867
    Contact person: Dr. Dinesh K Takyar
    Any Queries?
    Good learning solutions!

     
    Home
    Software
    Hardware
    German
    About Us