Using An Excel Worksheet - Basic Formula Terminology: What Is A Formula ?
Using An Excel Worksheet - Basic Formula Terminology: What Is A Formula ?
Inserting a Formula
Rather than entering your formulas through the Formula Bar you can just enter them
directly into the cells. This is the preferred method.
In this very simple example a formula is used in cell D2 to calculate the total of the
values in cell B2 and C2. The advantage of using a formula is that it is updated
automatically, when the cells that it refers to change.
All the formulas contain basic operations such as addition, subtraction, multiplication and
division.
To represent these operations you use what are called Operators in between your
numbers. When you create a formula you need to include at least one operator.
Use the = sign for all formulas. In D2 type the = sign, then click on B2 and then input
the + (operator) and finally click on C2 and hit Enter.
Once you have finished any formula, always press Enter to confirm. After you have
pressed Enter the cell will display the result of the formula as opposed to the actual
formula which cells and operator(s) in the formula bar as indicated in the pictures below.
If you change the value in cell B2 to 9, the formula is re-calculated automatically and the
correct result is displayed.
xls-formulas 1 of 4
Karl Boeing
Addition + Percentage %
Subtraction - Exponentiatio ^
Multiplication * Less Than <
Divisio / Greater Than >
Equal To = Less Than or Equal To <=
Not Equal To <> Greater Than or Equal To >=
Using Parentheses
Parentheses are basically brackets. Using brackets in your formulas is a good habit to get
into even when they are not strictly needed because they help to clarify the order and
make the formula easier to understand.
Your parentheses must balance. For every open parentheses there must be a
corresponding close parentheses. If you try to submit a formula which does not contain
the same number of open and close parentheses, Excel will prompt you and tell you that
the formula you have entered is incorrect. Excel will make a suggestion as to what it
thinks the formula should be. You can accept the recommendation or press "No" to edit
the formula yourself.
Things to Remember
All formulas must start with an equal sign (=). If you type an equal sign into a cell, Excel
assumes that you are about to enter a formula. If you do not enter an equal sign then Excel
will assume you want to enter a text string.
Formulas can contain simple mathematical operators, values, cell references and
functions.
There is a strictly order of precedence among the operators which means that certain
operations are performed before others.
Any expression in a formula that is enclosed within a parentheses is calculated first.
When copying formulas Relative cell references is the default.
Workbooks that contain a large number of formulas require a large amount of memory
and hence take longer to open.
Formulas that contain links (especially to other workbooks) can often cause a real
headache.
Example:
=SUM(B5:B8), as shown below, changes to =SUM(C5:C8) when copied across to the next
cell.
xls-formulas 2 of 4
Karl Boeing
Now, you might be thinking, why not just use 10% and 15% in the actual formulas? Wouldn't
that be easier? Yes, if you are sure the discount percentages will never change - which is
highly unlikely. It's more likely that eventually those percentages will need to be adjusted.
Absolute Cell Reference - You tell Excel to use one specific cell, and never move to another
relative location in the calculations by using "absolute cell reference." To specify the cell,
place a dollar sign before the column letter and before the row number. Thus, $B$10 says
always use cell B10.
xls-formulas 3 of 4
Karl Boeing
When you are typing your formula, after you type a cell reference - press the F4 key. Excel
automatically makes the cell reference absolute! By continuing to press F4, Excel will cycle
through all of the absolute reference possibilities. For example, in the first absolute cell
reference formula in the above example, =B4*$B$10, I could have typed, =B4*B10, then
pressed the F4 key to change B10 to $B$10. Continuing to press F4 would have resulted in
B$10, then $B10, and finally B10. Pressing F4 changes only the cell reference directly to the
left of your insertion point.
xls-formulas 4 of 4