IF Formula in MS Excel
MS Excel formulas are the easiest way to understand: MS Excel If Formula is very important and easy to use. It is a logical formula, where you will have to apply your own logic. So that you can easily find out the result. As
a result, we can get True or False values, or also we can put the value as per our
choice according to a true or false results. It works fast and is easy to apply. If you would like to learn MS Excel so there are few formulas, where you must have a good command.
Formula: “IF
If you are
a daily excel user, you must know the uses of “IF” Formula.
1 - It is a
condition-based formula
2 - We must
have at least two conditions. A-True... B-False...
3 - Syntax is :
3 - Syntax is :
IF(logical_test input cell (eg. A1), {value_if_true}, {value_if_false})
Example: 1 - Simple form of "IF" formula:
In you have only one value A1 = 1 (A1 is the cell reference in MS Excel spreadsheet)
Formula:
=if(A1=1,"Pass","Fail") -- Formula
Explanation: If cell A1 is 1 - Result is "Pass" or if A1 is blank or zero then the result will be "Fail".
Let's suppose cell A1 has a value of 1, then the result will reflect "Pass"
Let's suppose cell A1 has no value or any value except 1, then the result will reflect "Fail"
Let's suppose cell A1 has no value or any value except 1, then the result will reflect "Fail"
Example : 2
=if(A1=1,"Pass",if(A1=0,"Fail",0))
Explanation:
1 - A:1 is your cell reference or your input cell.
2 - Your output must be covered by " " ("inverted commas")
3 - Last zero (0) is an indication of no value, which means if you have neither 1 nor 0 then your output will automatically give you a 0 (zero) result.
=if(logical test, if true, if false)
A:10 TO A:15 is the cell reference or you can say, where we have to put the input to get the final result. The image is given above, is a good example and you can easily understand all the scenarios. You can also create multiple conditions with your IF Function. It is the basic IF Function in Excel, it is important to understand the basic function then you can use it anywhere.
You can write in the comment box below.
A:10 TO A:15 is the cell reference or you can say, where we have to put the input to get the final result. The image is given above, is a good example and you can easily understand all the scenarios. You can also create multiple conditions with your IF Function. It is the basic IF Function in Excel, it is important to understand the basic function then you can use it anywhere.
You can write in the comment box below.
For more excel query you can ask.
Topic Covered : if function excel multiple conditions | if function excel with text | how to use ifand or function together in excel | how to use if function in excel yes or no | how do you write an if then formula in excel | multiple if formula in excel | if then formula excel | nested if function excel | if function excel - multiple conditions | if function excel with text | multiple if formula in excel | nested if function excel | or function excel | how to use if function in excel yes'' or no
IF function | Logical test | Condition | True value | False value | Nested IF | Multiple conditions | Logical operators | Comparison operators | Conditional formatting | IFERROR function | IFNA function | IF with AND | IF with OR | IF with NOT | IF with ISBLANK | IF with ISNUMBER | IF with ISTEXT | IF with VLOOKUP
Comments
Post a Comment