2k24 Ch. 02
2k24 Ch. 02
– III)
2
MICROSOFT EXCEL – MULTIPLE SPREADSHEETS
ACTIVATING WORKSHEETS
The sheet tabs at the bottom of the workbook window show the names of the sheets
in the current workbook; the active sheet's tab is bold. To switch to another sheet, simply
click on its sheet tab.
Sheet tabs
Fig. 2 : Sheet tabs for navigation
The following shortcut keys can also be used to activate the worksheets :
CTRL + PGUP To activate the previous sheet if any.
CTRL + PGDN To activate the next sheet if any.
Insert worksheet
tab
Fig. 3 : Inserting a new worksheet
Method 3 : To insert a new worksheet before an existing worksheet, select that
worksheet, and then on the Home tab, in the Cells group, click Insert, and then click Insert
Sheet.
To insert multiple worksheets at a time :
1. Hold down SHIFT, and then select the same number of existing sheet
tabs of the worksheets that you want to insert in the open workbook.
For example, if you want to add three new worksheets, select three
sheet tabs of existing worksheets.
2. On the Home tab, in the Cells group, click Insert, and then click Insert Sheet.
DELETING A WORKSHEET
To remove any unwanted worksheets (such as empty worksheets) from your
workbook, you can delete it.
To delete a worksheet, use one of the following methods :
Method 1 : Right-click on the sheet tab and choose Delete command from the
shortcut menu.
Method 2 : On the Home tab, in the Cells group, click the arrow next to Delete, and
then click Delete Sheet.
Once a worksheet is deleted, it cannot be recovered back, so be very careful with this
command!
RENAMING A WORKSHEET
When a new workbook is opened, the default names of the worksheets are Sheet1,
Sheet2, Sheet3, etc. You can give more meaningful names to the worksheets by renaming
40 Computer Application – I (S.Y. B.Com.) (Sem. – III)
them. Sheet names can contain up to 31 characters and spaces are permitted. However,
the following characters are not permitted: square brackets ( [ and ] ), colon ( : ), slash ( / ),
backslash ( \ ), question mark (?), and asterisk ( * ).
1. On the Sheet tab bar, right-click the sheet tab that you
want to rename, and then click Rename.
2. Select the current name, and then type the new name.
PAGE BREAK
A page break is a divider that breaks a worksheet into separate pages for printing.
Excel automatically inserts page breaks based on the paper size and margin settings. A
dashed horizontal and vertical line indicates where a page break occurs.
To insert a Page Break :
1. Click on the cell where you want to insert the page break.
2. Click on Page Layout à Page Setup à Breaks.
3. Select Insert Page Break.
To delete a Page Break :
1. Click on the cell from where you want to delete the page break.
2. Click on Page Layout à Page Setup à Breaks.
3. Select Remove Page Break.
PAGE PREVIEW
Before you print a worksheet or chart, you may want see the output on the screen to
check whether the settings you have done are correct or not. Excel’s Print Preview feature
comes in very handy to see the output on the screen.
1. Click the File menu, click the arrow next to Print, and then click Print Preview.
(You can also press CTRL+F2.)
2. To preview the next and previous pages, at the bottom of the Print Preview
window, click Next Page and Previous Page.
3. To exit print preview and return to your workbook, click any other tab above the
preview window.
CREATING FORMULA
The power of a spreadsheet lies in its ability to manipulate your data and provide you
with additional information. To do this, it needs to be told what kind of information you
need. Spreadsheets can be told this by means of formulae. We can extract much more
information from your raw data by using formulae in an Excel worksheet.
DEFINING A FORMULA
The real strength of a spreadsheet program is its ability to organize and compute. One
of the computing tools is formulae. Formulae tell the program how to add information
found in different cell locations. For example, to add two numbers in, say, cells A1 and B1,
Excel requires you to enter "=A1+B1" in your cell where you want the total displayed. A
formula is an equation that analyzes data on a worksheet.
42 Computer Application – I (S.Y. B.Com.) (Sem. – III)
● All Excel formulae must start with the equal to symbol ( = ); this is how Excel
distinguishes between a formula and text.
● Formulae may contain the following mathematical symbols : +, *, -, /, ^
(exponentiation), % (percentage), brackets ( and ).
● A formula can contain cell references, values, and worksheet functions.
● When you enter a formula in a cell, the cell displays the result of the formula. The
formula itself appears in the formula bar when the cell is activated.
Example :
Let us understand how formulae make a spreadsheet package powerful. Consider the
worksheet shown in Fig 5.
The worksheet in Fig. 5 shows the sales of a company, during the four quarters of
2008, in the four different regions. Cells F3, F4, F5 and F6
contain the total sales for each region; cells B7, C7, D7,
and E7 contain the total sales in all the four regions for
each quarter.
Cells F3 through F6 and cells B7, C7, D7, E7 actually
contain formulae to provide these totals. Let us look at
each of these formulae in these cells Fig 6
Fig. 6
Cell F3 contains the formula =B3+C3+D3+E3. It implies that the cell F3 will store
the value obtained by the addition of values stored in cells B3, C3, D3 and E3. In this
example, the values stored in these four cells are: 256, 347, 333, and 289. Thus, effectively,
the formula is equivalent to the addition 256 + 347 + 333 + 289, which also works out
to 1225.
Similarly, to find the totals in cells B7, C7, D7 and E7, we have used a formula for
each cell. Can you find out what the formulae are for each of these cells?
Types of formulae
So far, we have seen one type of formula which contains only numeric values. These
are numeric formulae. The other types of formulae are :
Text formulae : These contain the operator & (called the concatenation operator)
and text. The & operator combines two text values to produce a single piece of text. For
example, if, cell A1 contains “Micro” and B1 contains “computer”, then the formula
=A1&B1 will produce “Microcomputer”. The result of these formulae is a text value.
Logical formulae : These contain the relational operators <, >, =, >=, <=, <>.
These operators operate on two conditions to produce a logical result. i.e., TRUE
or FALSE.
Microsoft Excel – Multiple Spreadsheets 43
OPERATOR PRECEDENCE
When several mathematical operators appear in an expression, the order in which the
operators act on the operands depends on precedence rules. These precedence rules are
as follows :
SYMBOL OPERATOR PRECEDENCE
^ Exponentiation 1
* Multiplication 2
/ Division 2
+ Addition 3
- Subtraction 3
& Concatenation 4
= Equal to 5
< Less than 5
> Greater than 5
Consider, for example, a formula such as = 2+(3^2*4)-(4*3-3)*2. The stages in
working out this expression are :
2 + (9 * 4) – (12 – 3) * 2
= 2 + 36 – 9 * 2
= 2 + 36 – 18
= 2 + 18
= 20
Parentheses are used to override Excel’s built-in order of precedence. Nesting of
parentheses is also permitted in Excel. Nesting means putting parentheses inside
parentheses. In such a case, Excel evaluates the most deeply nested expressions first and
works its way out.
For example, consider the expression =((B3*C3) + (B4*C4) + (A6*D6))* C5
In this expression the innermost parentheses will be evaluated first, i.e., (B3 * C3) will
be evaluated, then (B4*C4) will be evaluated, then (A6 * D6). Excel will then add up these
three terms and subsequently multiply the sum by C5.
ENTERING FORMULAE
A formula must begin with an equal sign ( = ) so that Excel knows that a cell contains
a formula rather than text. There are two ways to enter a formula into a cell: enter it
manually, or by pointing to cell references.
Example :
Consider the example below (Fig 7), where we have to calculate the total salary of an
employee. The Basic salary of 5 employees is given in column B. For each employee,
calculate the DA, HRA, Travelling Allowance (TA), and Gross salary. Subtract income tax
at 30% of Gross salary and calculate the net salary of each employee.
DA is 37% of basic salary, HRA is 30% of basic, TA is fixed at ` 400, and Income tax is
30% of gross salary.
CELL REFERENCES
There are three types of references: relative references, absolute references, and mixed
references.
Relative References : By default, Excel creates relative references in formulae. In
the above example, the formula =F2-G2 was copied in cells H3 through H6. The cell
references changed in each of these cells. Thus, in cell H3, the formula was =F3-G3, in cell
H4, it was = F4-G4. Excel adjusts the cell references to refer to the cells that are relative to
the new formula. Using a relative reference is like giving someone directions that explain
how to go to point A from your current position – like “go 100 steps ahead, turn left and
the third building is the one you are looking for”.
Copying a formula results in relative references to the cells. Cut and paste will not
produce relative references.
Examples of relative references are H1, =F3-G3, etc.
Absolute references : An absolute reference is indicated by prefixing a dollar sign
($) before the column letter and the row number. Thus, an absolute reference uses two
dollar signs in its address. An absolute reference looks like this: $B$4. The dollar sign
Microsoft Excel – Multiple Spreadsheets 45
implies that the row and column address are fixed. Therefore, if such a formula is copied in
various cells, the formula will not change.
Using a relative reference is like giving someone an address : “10 Janpath,
New Delhi”.
Mixed References : A mixed reference is indicated by prefixing a dollar sign ($)
before either the column letter or the row number, but not both. A mixed reference
address uses only one dollar sign. A mixed reference address looks like this B$2. In this
case, the column reference is relative, but the row reference is absolute. Similarly, an
address like $C4 implies that column C is absolute but row 4 is relative.
The different types of cell references are summarised in the table below :
EXAMPLE TYPE
A1 Relative reference
$A$1 Absolute reference
$A1 Mixed reference (column part is absolute)
A$1 Mixed reference (row part is absolute)
Example : Consider the worksheet shown in Figure 9. The monthly expenditure
incurred by a student on three categories is shown in the worksheet.
We have to calculate the total monthly expenditure (cells B5, C5, and D5), the total
expenditure on each category for these three months, the percentage spent on each
category every month.
We will create formulae which use mixed references.
8. Enter the formula =D3*$B$1 in cell E3. This formula contains relative reference
(D3) and absolute reference $B$1. Since the cost of each of the three items must
be multiplied by the same value 7.50%, we have to give a reference that is fixed
and does not change as the formula is copied in various cells.
9. Copy this formula to cells E4 and E5 also. The formula in E4 will be D4*$B$1, and
the formula in E5 will be D5*$B$1. Thus, in all the three cases, we are multiplying
the price of the respective item with the fixed sales price (contained in cell B1).
10. If instead of multiplying price by $B$1, we multiply it by B1 in cell E3, then the
formula copied in cells E4 and E5 will D4*B2 and D5*B3. This is not the formula
we want!.
11. The formula in cell B7 will be =F3+F4+F5.
Note : Change the Sales Tax value in cell B1 to 10, and observe how all the values are re-
calculated automatically.
To switch between displaying formulae and values in a worksheet
1. Press CTRL + ` (left single quotation mark - to the left of the 1 key on the
alphanumeric keyboard; it’s the same key that contains the tilde character that looks like
a wave).
Name Box
1. Select cell B1. The Name Box displays the address of this cell as B1. Click in the
Name Box and type salestax. This will be the name for cell B1.
2. Select the range B3:B5 and in the Name Box, type the name price.
3. Select the range C3:C5 and in the Name Box, type the name quantity.
4. Select the range D3:D5 and in the Name Box, type the name cost.
5. Select the range E3:E5 and in the Name Box, type the name tax.
6. Select the range F3:F5 and in the Name Box, type the name total cost.
7. In cell D3, type the formula =price*quantity. Copy this formula to cells D4
and D5.
8. In cell E3, type the formula =cost*salestax. Copy this formula to cells E4 and E5.
9. In cell F3, type the formula =cost+tax. Copy this formula to cells FE4
and F5.
10. In cell B7, type the formula =F3+F4+F5.
It can be seen that the use of names makes formulae more readable and easier to
understand.
48 Computer Application – I (S.Y. B.Com.) (Sem. – III)
REFERENCE OPERATORS
We have already seen that a cell is identified by its address such as A1 or by a name
such as sales tax. A cell reference may also be, for example, A1:D3, which is a range. These
are called cell references. Reference operators combine ranges of cells for calculations.
There are three types of reference operators in Excel :
Reference Meaning Example
Operator
: (colon) Range: Produces one reference to all the cells between and B2:D2
including the two references.
, (comma) Union: Produces one reference that includes the two B4, D4
references.
(space) Intersection: Produces one reference to cells common to the B7:D7 C6:C8
two references.
These can be understood with the help of the following worksheet :
A B C D E
1
2 Colon: Range B2:D2
3
4 A union is specified by
5 a comma, for example
B4, D4
6
7 An intersection is
8 specified by a space,
e.g., B7:D7 C6:C8. Cell
9
C7 is the intersection.
10
Fig. 14 : Reference Operators
Microsoft Excel – Multiple Spreadsheets 49
CREATING LINKS
The general syntax for an external reference formula is :
= [WorkbookName]SheetName!CellAddress
The cell address is preceded by the workbook name (in square brackets), the
worksheet name, and an exclamation point. E.g., the following formula uses a cell
reference in the sheet named MarchExpd in a workbook named Budget2008.
= ’[Budget2008]MarchExpd’!Provisions.
The other workbook need not be open. If the above workbook was closed, then we
can use the formula
= ’D:\My Documents\[Budget2008]MarchExpd’!Provisions
Here we have given the complete path to the reference.
Creating a link formula by pointing
Reference formulas can be entered directly, but doing so may result in typing errors
(typos). Instead, one can let Excel build the formula for you.
1. Open the sourcebook.
2. Activate the cell in the dependent workbook that will hold the formula.
3. Begin entering the formula.
Microsoft Excel – Multiple Spreadsheets 51
4. When you get to the part that requires an external reference, activate the source
workbook and select the cell or range.
5. Finish the formula and press ENTER.
If the source workbook is open, the external reference will not include the path to the
workbook. But if you close the source workbook, the external reference formulas will
change so as to display the complete path.
Creating a link formula by pasting
The Paste Special command can also be used to create external reference formulas :
1. Open the source workbook.
2. Select the cell or range that that you want to link, and copy it to the Clipboard
(right click and Copy).
3. Activate the dependent workbook and select the cell where you want the link
formula. If you are pasting a range, just select the upper left cell.
4. Right click and select Paste Special command and then click on the Paste Link
button.
UPDATING LINKS
Whenever there is a change in the source workbook, the dependent workbook is
automatically updated. In the above example, change the contents of cell B7 in
MONTHLYINC.XLSX and observe how the contents of TAXCALC.XLSX are
automatically updated.
If the source workbook is closed, the cells in dependent workbook will not update
automatically.
QUESTIONS
I. Write answers:
1. What is meant by the term cell reference?
2. What is the value of the expression (3*2^2 + 4)/(7 – 2*2)? Explain using Excel’s
precedence rules.
3. Explain the term relative reference.
4. Explain the terms absolute reference and mixed reference.
5. How does Excel differentiate between a formula and text in a cell?
6. Explain the advantages of linking worksheets.
7. Which operations can be carried out on a worksheet?
8. State the sequence of steps to change the number of worksheets in a workbook.
9. Give two methods to add a new worksheet to a workbook.
10. Write the sequence of steps for each of the following spreadsheet operations:
a) Hide a worksheet
b) Unhide a worksheet
c) Delete a worksheet
11. What is a header and footer? What type of information can be displayed in a header
or footer? Write the sequence of steps to add header and footer to a worksheet.
12. Write the sequence of steps to insert and delete a Page break in a worksheet.
13. What are the three types of formulae in Excel? What is the difference between
numeric formulae and logical formulae?
14. State the operator precedence rules for mathematical operators.
15. What are reference operators in Excel?
16. With the help of an example, illustrate the technique to refer to a cell in another
worksheet in the same workbook. How does this technique change while referring to
a cell in another workbook?
17. What is meant by “linking workbooks” ? Define the terms external reference,
dependent workbook and source workbook. What, if any, is the drawback of linking
workbooks?
18. Explain the procedure for creating a link formula by pointing and by pasting.
OBJECTIVE QUESTIONS
I. State whether the following are true or false :
1. The exponentiation operator has the highest precedence.
2. Parentheses can be used to override the built-in operator precedence in Excel.
3. In the formula = 8 + 6 / 2, the addition operation (+) is completed before the division
operation (/).
4. A formula may start with any symbol.
54 Computer Application – I (S.Y. B.Com.) (Sem. – III)
40. The shortcut key to activate the previous worksheet in CTRL + PGUP.
41. A new worksheet can be added to a workbook by pressing SHIFT + F11.
42. By default, a new worksheet is added in front of the currently active worksheet.
43. Worksheet name can contain the colon ( : ) character.
44. A picture, such as a company logo, cannot be displayed in the header or footer part of
a worksheet.
45. A worksheet may have either a header or a footer, but not both.
46. Excel displays page breaks in a worksheet by dashed horizontal and vertical lines.
47. Linking or workbooks is necessary when one workbook itself contains too much data.
48. If there is a change in the source workbook, the dependent workbook is automatically
updated.
49. A workbook must have at least 3 worksheets.
50. A worksheet can contain references to cells in more than 2 workbooks.
ANSWERS
True : 1, 2, 7, 8, 12, 13, 15, 16, 19, 21, 23, 25, 27, 28, 29, 32, 33, 34, 35, 36, 38, 39, 40,
41, 42, 46, 47, 48, 50
False : 3, 4, 5, 6, 9, 10, 11, 14, 17, 18, 22, 20, 24, 26, 30, 31, 37, 43, 44, 45, 49
II. Select the best answer for each of the following questions :
1. When you are typing a formula in a cell. The first thing that must be entered is :
(a) the first cell referenced. (b) parenthesis.
(c) Quotation marks. (d) An Equal sign.
2. Which of these is an absolute reference :
(a) A1 (b) $A1 (c) A$1 (d) $A$1
3. Which of these is a mixed reference :
(a) A1 (b) $A1 (c) A$1 (d) both b and c above
4. Which of these is the correct way of referencing a cell A1 on worksheet named
Admissions2009 in the same workbook :
(a) =Admissions2009!A1 (b) =Admissions2009-A1
(c) =A1!Admissions2009 (d) =Admissions2009
5. Cell D1 in a worksheet contains the formula =A1*(B1+C1). On copying this formula
to cell D2, the formula will be :
(a) =A1*(B1+C1) (b) =A2*(B2+C2) (c) =A1*(B2+C2) (d) =D1*(B1+C1)
6. Cell D1 in a worksheet contains the formula =$A$1*(B1+C1). On copying this
formula to cell D2, the formula will be :
(a) =$A$1*(B1+C1) (b) =$A$1*(B2+C2)
(c) =$A1*(B2+C2) (d) =A$1*(B1+C1)
7. Cell D1 in a worksheet contains the formula =$A1*(B1+C1). On copying this formula
to cell D2, the formula will be :
(a) =$A$1*(B1+C1) (b) =$A$1*(B2+C2)
(c) =$A2*(B2+C2) (d) =A$1*(B1+C1)
8. When referring to a cell in another worksheet (same workbook), the sheet reference
is always _____, while the cell reference may be _____.
(a) absolute, relative (b) relative, absolute
(c) mixed, absolute (d) relative, mixed
56 Computer Application – I (S.Y. B.Com.) (Sem. – III)
III. State the steps to perform the following operations in Microsoft Excel :
1. To change the number of worksheets in a workbook.
2. To activate the previous worksheet.
3. To add / delete a new worksheet.
4. To rename a worksheet.
5. To copy a worksheet.
6. To hide/unhide a worksheet.
7. Switch between displaying formulas and values.
8. Increase the contents of cell A1 by 10% and store the value in cell B1.
9. Increment D3 by 1, and store the result in cell B4.
10. Decrease the contents of cells B1:B10 by the value stored in cell A1, and store the new
values in range C1:C10.
11. Add the contents of cell A1 of Sheet2 and contents of cell B1 of Sheet3 and store the
result in cell A1 of Sheet1 . (Assume active worksheet is Sheet1).
12. Multiply the contents of cell A1 of Sheet1 in workbook “C:\My Documents\ Expd2000”
by 10, and store the result in cell A1 of Sheet1 of the currently open workbook.
13. To insert a Page Break.
14. To remove a Page break.
PRACTICAL EXERCISES
1. Create a new worksheet which contains the temperature in degrees Fahrenheit in
column A, from 26 to 46 in steps of 2 degrees. Column B should contain the
equivalent temperature in degrees Centigrade. The formula for converting from
F to C is :
C = ( F – 32 ) * 5/9
Format the values of centigrade temperature to display one decimal place.
Your formula should not contain the constant 5/9, but instead it should contain an
absolute reference to this fixed value.
Give appropriate headings to worksheet and columns.
2. Enter appropriate formulas (using mixed reference) to complete the following table :
A B C D E
1 5% 6% 7% 8%
2 100 5 6 7 8
3 200
4 300
5 400
Each cell will consist of the value in column A multiplied by the value in row 1. Thus,
cell B2 will contain 100 * 5/100 = 5; cell C2 will contain 100 * 6/100, etc. (Hint:
Formula in cell B2 is =$A2*B$1.
3. Consider the following worksheet. What will be the contents of cells A8, B8, and C8 if
these cells contain the following formulas :
Cell A8: = A4:D4 C1:C6
Cell B8: = A6:D6 B1:B4
Cell C8: = A1:A1,B1:B1
58 Computer Application – I (S.Y. B.Com.) (Sem. – III)
A B C D
1 502 738 635 789
2 603 219 37 828
3 185 18 333 117
4 510 474 575 537
5 706 997 560 178
6 775 620 56 3
7
8
Explain the significance of the results obtained in these cells. Double-click cell B8.
What do you see in the worksheet? Explain. (Hint make use of reference operators).
4. Prepare the spreadsheet shown below. The specifications are given as under :
● Column A should have a width of 8; all others a width of 11.
● The numbers in columns B, C, and E are direct input. Columns D & F require
formulas (cells D6:D8, F6:F8, and F10); the numbers are here just as a check for
your formulas.
● The title INVENTORY REPORT, should be font size 14 point. The title should be
centered over all 6 columns.
● The column headings should be right aligned over numbers (which will also right
align); left aligned over the part numbers which should also be left aligned.
● Bold all column headings and the word TOTAL.
A B C D E F
1 INVENTORY REPORT
2
3 Part Opening Quantity Closing Cost per Inventor
y
4 No. Stock Used Stock Unit Value
5
6 AT 560 150 58 92 5.00 460.00
7 HJ 290 28 7 21 300.00 6300.00
8 GT 300 45 15 30 165.00 4950.00
9
10 TOTAL 11710.00