The IF function in Excel executes a logical comparison between 2 worth’s. The result of the IF function is either TRUE or FALSE.