An if statement in Excel is used to check whether a certain condition is met, and if it is, then a certain action is taken. Example: =IF(A1="Yes", "Accepted", "Rejected") This formula checks the value in cell A1. If A1 is equal to "Yes", then the result will be "Accepted". If A1 is anything other than "Yes", then the result will be "Rejected".