Formulas in MS Excel:
Formulas are the Bread and butter of worksheet. Without formula, worksheet will be just simple tabular representation of data. A formula consists of special code, which is entered into a cell. It performs some calculations and returns a result, which is displayed in the cell.
Formulas use a variety of operators and worksheet functions to work with values and text. The values and text used in formulas can be located in other cells, which makes changing data easy and gives worksheets their dynamic nature. For example, you can quickly change the data in a worksheet and formulas works.
Elements of Formulas:
A formula can consist of any of these elements:
-
Mathematical operators, such as + (for addition) and * (for multiplication):
Example: =A1+A2 Adds the values in cells A1 and A2.
-
Values or text:
Example: =200*0.5 Multiplies 200 times 0.15. This formula uses only values, and it always returns the same result as 100.
-
Cell references (including named cells and ranges):
Example: =A1=C12 Compares cell A1 with cell C12. If the cells are identical, the formula returns TRUE; otherwise, it returns FALSE.
-
Worksheet functions (such as SUMor AVERAGE):
Example: =SUM(A1:A12) Adds the values in the range A1:A12.