IF function is used to make a logical comparison between two values either within a formula or by comparison the values / arguments of two cells.