IF function is one which are used the most often in Excel. IF is a logical function. But you can not only check TRUE / FALSE values. Let's take a look at some IF function examples. IF Function contains from 3 parts: Logical test - IF function checks if this test is true or false in the cell. Value if true - IF function puts this value if logical test is true. Value if false - IF function puts this value if logical test is false.