What is IF function in Excel?
To perform the logic test IF function is performed. It checks whether certain conditions is true or false. If the condition is true, then it will give result accordingly if the condition is false then the result or out-put will be different.
Example: For example, you select the cell, and you want to display that cell as “Greater than five,” when value is true (=5 or 5) and “less than five” when value is false (<5). For that by using IF condition you can display result.
=IF (Logical test, value if true, value if false)
=IF (A1>5, “Greater than five, “Less than five”)