The IF function is one of the most popular functions in Excel, and it allows you to make logical comparisons between a value and what you expect.