if then else statement excel
The Microsoft Excel IF-THEN-ELSE statement can only be used in VBA code. It returns a value if a specified condition evaluates to TRUE, or another value if it evaluates to FALSE. The IF-THEN-ELSE statement is a built-in function in Excel that is categorized as a Logical Function. It can be used as a VBA function (VBA) in Excel. As a VBA function, you can use this function in macro code that is entered through the Microsoft Visual Basic Editor.