Week 5 For Sending
Week 5 For Sending
Excel enables you to create many formulas by simply typing in a cell or using your mouse pointer
to select cells to include in a formula. For example, you can create basic formulas for addition,
subtraction, multiplication, and division using these methods. However, as you have discovered in previous
lessons, the user interface offers tools that make it easier to work with data. In this lesson, you use a few
command groups on the Formulas tab to display formulas and name ranges to be used in formulas.
The real-strength of Excel is its capability to perform common and complex calculations.
The formula is one of the essential elements of Excel, which enables you to add, subtract, multiply, and
divide numbers. When you enter a formula in a cell, the formula is stored internally and the results are
displayed in the cell. You can view the underlying formula in the formula bar when the cell is active, when
you double-click the cell to edit it, or by using the Formulas tab.
Take
Note
Formulas should be typed without spaces, but if you type spaces, Excel eliminates them when you press
Enter.
A
formula is
an equation
that
performs
Take Note
You can begin a formula with a plus (+) sign or a minus (−) sign as the beginning calculation
operator, but Excel changes it to an equal sign when you press Enter. Excel doesn’t recognize a construct
like 3+4= as a legitimate formula. Excel treats it like an ordinary string of characters. Excel uses four
types of calculation operators: arithmetic, comparison, text concatenation, and reference. This lesson
1
covers several arithmetic operators and the equal sign, which is a comparison operator. The arithmetic
operators are listed in Table 4-1.
When you build a formula, it appears in the formula bar and in the cell itself. When you complete
the formula and press Enter, the value displays in the cell and the formula displays in the formula bar if you
select the cell. You can edit a formula in the cell or in the formula bar the same way you can edit any data
entry. When you click the Show Formulas button on the Formulas tab, all formulas in your worksheet
display. Click the Show Formulas button again to toggle off display of formulas.
Following arithmetic operator priorities, the first operation is 8 multiplied by 3 and that result is
divided by 2. Then 7 is added and 4 is subtracted. You can use parentheses in a formula to override
the standard order of operations. Excel performs calculations on formulas inside parentheses first.
Parentheses inside of parentheses are called nested parentheses. Calculations are performed on formulas
in the innermost set of parentheses first, and from left to right if nested parentheses are at the same level.
Therefore, the result of the following formula with parentheses is different from the previous one:((7 + 8) *
(3 / 2)) − 4 = 18.5
Following arithmetic operator priorities, the first operation is the sum of 7 + 8 multiplied by the
quotient of 3 divided by 2. Then, 4 is subtracted.
Take Note
2
While modifying a complex formula, if you decide to revert back to the original formula and start
over, just press Esc. If you’ve already pressed Enter, you’ll need to click the Undo button on the Quick
Access Toolbar.
Take Note
You can use either uppercase or lowercase when you type a cell reference in a formula.
For example, it does not matter whether you type B4 or b4 in the formula you enter. Excel changes the
reference to uppercase when you press Enter.
You use relative cell references when you want the reference to automatically adjust when you copy
or fill the formula across rows or down columns in ranges of cells. By default, new formulas in Excel use
relative references.
There are two methods for creating formulas using relative references:
• By typing the formula directly into the cell
• By clicking a cell to include in the formula rather than typing the cell reference.
The second method is usually quicker and eliminates the possibility of typing an incorrect
cell identifier, especially if you need to create a formula with many cell references. For example,
it might be easy to make a mistake typing =D2+D7+D9+D12+D14 rather than just clicking each cell to
add it to the formula. You can also reference a range of cells in a formula, which you learn about later in
this lesson. Cell referencing raises another important point about Excel. When you perform math on a
series of numbers on paper, they’re usually right next to each other in a column or a single row. In a
worksheet, the numbers don’t have to be adjacent: You can create formulas that reference cells
anywhere in the worksheet.
Take Note
3
When constructing a worksheet, plan on using relative cell references unless you know there will be
a reason not to adjust the cell identifier when you insert or delete columns and rows.
Sometimes you do not want a cell reference to change when you move or copy it. To
make an absolute cell reference, use the dollar sign ($) before the column and row of the cell you want to
reference.
An absolute cell reference refers to a specific cell or range of cells regardless of where the formula is
located in the worksheet. Absolute cell references include two dollar signs in the formula, preceding the
column letter and row number. The absolute cell reference $B$3, for example, always refers to column
(B) and row (3). When you copy the formula to any other cell in the worksheet, the absolute
reference will not adjust to the destination cells.
You can also create a mixed reference in which a column or a row is absolute, and the other
is relative. For example, if the cell reference in a formula is $A5 or A$5, you would have a mixed
reference in which one component is absolute and one is relative.
4
A mixed cell reference is a cell reference that uses an absolute column or row reference, but not
both. The column portion of the cell reference is absolute and remains unchanged in the formula regardless
of where the formula is copied. The row portion of the formula is relative (no dollar sign precedes the row
number of 3), so that part of the cell reference changes when the cell is copied.
If you copy a formula across rows or down columns, the relative reference automatically adjusts,
and the absolute reference does not adjust. For example, when you copied the formula containing the
mixed reference $B3 to a different cell in column C, the reference in the destination cell changed to $B4.
The column reference remained the same because that portion of the formula is absolute. The row
reference adjusted because it is relative.
In Excel, groups of cells are called ranges. The cell groups are either contiguous or non-contiguous.
You can name (define) ranges, change the size of ranges after you define them, and use named ranges in
formulas. The Name Box and the Name Manager help you keep track of named ranges and their cell
addresses. You can also use the Paste Names command to create a list of named ranges and their
addresses in a worksheet.
Naming a Range
When you refer to the same cell range over and over, it might be more convenient to give it a name. Excel
recognizes the name as the cell range and uses the values in those cells to do what you specified. For
instance, if you have a series of sales figures in a column, instead of referring to them as the range C4:C10,
you can name them SalesQ3. Any time you use the name SalesQ3 in a formula, Excel would then use the
values in those cells.
5
A named range is a group of cells, and occasionally a single cell, with a designated name. The
most common reason to name a range is to refer to it in formulas and functions. Naming ranges or an
individual cell according to the data they contain is a time-saving technique, even though it might not seem
so when you work with limited data files in practice exercises. However, naming a range in a large or
complex worksheet enables you to go to the location quickly, similar to a bookmark.
After selecting a range of cells, you can name the range using three different methods:
• By typing a name in the Name Box next to the formula bar
• By using the New Name dialog box
• By using the Create Names from Selection dialog box
• Range names may not include spaces. Microsoft recommends you use the underscore character (_) or
period (.) to separate words, such as Fruit_List and Personal.Budget.
• Range names cannot be the same as a cell reference, such as A7 or $B$3.All names have a scope,
either to a specific worksheet or to the entire workbook.
The scope of a name is the location within which Excel recognizes the name without qualification.
Excel requires that a name must be unique within its scope, but you can use the same name in different
scopes.
6
In the New Name dialog box, if you select a worksheet name from the Scope list, the scope is at the
local worksheet level.
If you select Workbook, the scope is at the global workbook level.
If you defined a named range after you entered a cell reference in a formula, you might want to
update the existing cell reference to the defined name. Select an empty cell, click the arrow next to Define
Name, and click Apply Names.
In the Apply Names dialog box, click one or more names, and click OK.
Take Note
You can use the same name for equivalent ranges in other worksheets within a workbook. Include the name
of the worksheet in brackets before the range name to identify which worksheet you’re referring to.
After creating named ranges, you can select a name in the Name Box drop-down list to select the named
range on the worksheet.
B. Exercise
a. Multiple Choice. Choose the letter of the correct answer.
b. True or False.
Write True if the statement is correct, False if it states otherwise.
1. To allow Excel to distinguish formulas from data, all formulas begin with an equal sign (=).
2. Regarding a named range, the scope of a name is the location within which Excel recognizes the name
without qualification.
3. You can create a new range by selecting the cells and typing a name in the Name Box next to the
formula bar.
4. The order of operations determines which parts of a formula are calculated before other parts of the
formula.
5. The formula = 6 * 2 / 3 produces the same result as = 6 * (2 / 3).
C. Assessment
A. Write the correct formula to get the Average in G5:G9.
B. Write the correct formula to get the Total Cost in E12:E15 and Grand Total in E16.
7
``