So the formula in E2 is saying IF(Actual is Greater than Budgeted, then Subtract the Budgeted amount from the Actual amount, otherwise return nothing). In the above illustration, instead of returning a text result, we are going to return a mathematical calculation. In the above example, the IF function in D2 is saying IF(C2 Is Greater Than B2, then return “Over Budget”, otherwise return “Within Budget”) You can also nest multiple IF functions together in order to perform multiple comparisons. You are not limited to only checking if one thing is equal to another and returning a single result, you can also use mathematical operators and perform additional calculations depending on your criteria. In this example, the formula in cell D2 says: IF(C2 = 1, then return Yes, otherwise return No)As you see, the IF function can be used to evaluate both text and values. In the above example, cell D2 says: IF(C2 = Yes, then return a 1, otherwise return a 2) The value that you want returned if the result of logical_test is FALSE. The value that you want returned if the result of logical_test is TRUE. Use the IF function, one of the logical functions, to return one value if a condition is true and another value if it's false.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |