if statements in excel
The Microsoft Excel IF function returns one value if the condition is TRUE, or another value if the condition is FALSE. The IF function is a built-in function in Excel that is categorized as a Logical Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the IF function can be entered as part of a formula in a cell of a worksheet. Please read our IF-THEN-ELSE (VBA) page if you are looking for the VBA version of the IF statement as it has a very different syntax.