Unit-07
Unit-07
Did you ever wonder if you could afford to buy a computer? If you save
100 taka a month this year and increase the amount by 5% each year,
how much can you save in 5 years? What if you increase the amount by
8% instead? What if you start with 150 taka a month? This work
involves many hours of tedious calculations and recalculations.
157
Office Automation and MS Office
A Brief History
Financial models can be created that let you play what-if. By changing
one or more variables, the model recalculates, and a new set of results
can be presented in tabular and/or graphical format.
Electronic spreadsheet (also called worksheets) provides many built-in
statistical, analytical, and scientific formulas. Thus it can be used in
many scientific and engineering environments to crunch numbers and
present findings.
Nowadays spreadsheets support powerful, flexible graphical
presentations. Worksheets can include charts and graphs, and can be
formatted for high impact presentations.
Spreadsheets can also be used as a database management tool. Here
database manipulation is simple. You can perform many database
158
Spreadsheet Analysis
i) Lotus 1-2-3
ii) PeachCalc
iii) VisiCalc
iv) Microsoft Excel.
2. Analytical questions
159
Office Automation and MS Office
1. At the system prompt (such as C:\>), type excel and press Enter.
2. From the Microsoft Excel/Office window, double click on the
Microsoft Excel program icon.
160
Spreadsheet Analysis
Microsoft Excel
You will always find a cell surrounded by a bold border. This is the
active cell. Whatever entry you make, it always goes to the active cell.
You can make any cell active at any time. The currently active cell
address always appears in the reference area of the formula bar.
Formula bar is the line just above the worksheet. When you select a cell
(i.e., make it active), the formula bar displays the contents of that cell.
When you make a new entry or edit an existing cell data, the formula bar
becomes active and you can see the entry or modifications in it.
Formula bar also includes an enter box (√ ) and a cancel box (×). You
can complete a cell entry or an edit you have made to an entry by
clicking this enter box as well as by pressing the ENTER key. You can
cancel an entry or edit by clicking the cancel box or by pressing the ESC
key.
The leftmost part of the formula bar is the reference area. It always
displays the address of the active cell. Later when you learn to select a
range of cells, you will see the reference area show the size of the
selected range.
The top two lines of the spreadsheet window are for the menu bar and
the tool bar. The menu bar contains menus and the menus contain
commands. In Microsoft Excel, the menu bar changes slightly depending
on what type of document you are working on. For example, when you
are working with a chart, the menu bar contains a Chart menu and a
Gallery menu.
When you open a menu, it displays a list of available commands. Some
commands have shortcut key combination listed to the right of the
command name. These shortcut keys can be used to activate a command
without first going through the main menu.
Some of the command names may appear dimmed. This indicates that
these commands can not be activated at the current situation.
Note : The toolbar consists of a series of buttons for the most frequently
used spreadsheet commands. Excel supplies a number of toolbars
161
Office Automation and MS Office
serving different needs of the user. You can make any or all of the
toolbars visible at all times, if required.
Moving Around the Worksheet
In total a worksheet contains more than 4 million available cells. The
portion you can see is a very small part of the whole. You can easily
access the other parts of the worksheet by using the scroll bars.
The Table 2.1 gives the keys or key combinations that you can use to
navigate the worksheet.
• Select Goto option from the Edit menu or press F5. Type the cell
address and press Enter.
Quitting Excel
Excel will give you an opportunity to save any previously unsaved work
before you quit.
162
Spreadsheet Analysis
Exercises
i) Toolbar
ii) Chart
iii) Worksheet
iv) Cell.
i) Z9
ii) A35
iii) AI
iv) None of the above.
Hands on Practice
To get more familiarised with Excel and the topics covered in this
lesson, perform the following:
1. Start Excel.
2. Identify the various components of Excel window.
3. Move the cell pointer to the following cells.
D5, G35, AD122, H52, A1, IV16384, L384, A384
Try as many key combinations as possible to perform the above
movements.
4. Navigate through the Excel menu and see the commands available.
5. Exit from Excel.
163
Office Automation and MS Office
To develop your own spreadsheet, you will need to make entries into the
Entering Data cells of the worksheet. Entering data into cells is simple. Simply move
the cell pointer to where you want to enter the data and type in. You will
see the entry appear in the formula bar. When you finished typing, lock
the entry by pressing the [ENTER] key. The cell pointer will
automatically move to the cell below. You may use any of the following
keys at the end of your entry.
164
Spreadsheet Analysis
A Constant value is data that you type directly into a cell; it can be a
numeric value, including currency, percentage, fraction or scientific
notation, or it can be text. Constant values do not change unless you
select the cell and edit the value yourself.
To enter a number as a constant value, select the cell and type the
number. Numbers can include numeric digits (0 through 9) and the
following special characters.
165
Office Automation and MS Office
The number displayed in a cell may differ from what is entered. Based
on the cell format, the number may be rounded, but Excel stores the
original data up to 15 digits of accuracy. Excel always uses the stored
data in calculation no matter how it is displayed on the screen. You can
always change the way a number is displayed. You will learn more about
formatting cells in module.
If a text exceeds the width of the cell it is entered, it will overlap into
adjacent cells, provided those cells are empty. Otherwise it will be
truncated for display. This truncation will not affect the actual content of
the cell. You may see the actual entry in the formula bar when you select
the cell.
166
Spreadsheet Analysis
167
Office Automation and MS Office
Note : If any open documents have not been saved before word displays
the Save As dialog box so that you can name then.
2. In the Open dialog box, type or select the file you want to open and
click OK.
3. If the file is not in the current directory, then select the desired drive
from the Drives list box and directory from the Directories list box.
4. Click OK.
168
Spreadsheet Analysis
Exercise
1. Analytical questions
Hands on Practice
169
Office Automation and MS Office
• what is a formula
• what operators you may use, their function
• how to write valid formulas
• what a function is
• advantages of uses built in functions
• available functions from Excel
• how you can specify a block of data.
Formula
Formulas are entries that enable you to make calculations based on the
numbers and text in the worksheet. With a formula you can perform
operations, such as addition, multiplication, comparison etc. on
worksheet values. A formula always begins with a equal sign (=).
• Arithmetic operator,
• Comparison operator,
• Text operator.
Comparison operators compare two values and produce the logical value
TRUE or FALSE based on the comparison done. For example, the
formula = 7<25 produces the value TRUE, whereas =5>7 produces
FALSE.
Text operator joins two or more text values in a single combined text
value.
170
Spreadsheet Analysis
Text Operator
Operator Function
& Concatenates two text values
Of course, it will not be of much use if you can operate only on numeric
and text constants. Fortunately, Excel allows entering cell
references/addresses in formulas. For example, the formula =B2+B3+B4
will add the contents of the cells B2, B3, B4 and stores the sum in the
cell where the formula has been entered. The most interesting part in
using cell references in the formula is that if any of the entries in the
cells B2, B3, B4 are changed, the spreadsheet will recalculate the sum
automatically. You can use data located in different areas in one formula
and one cell’s value in several formulas.
171
Office Automation and MS Office
Function
A function is a special prewritten formula that takes a value or a set of
values, performs an operation, and returns a value. Assume your
worksheet has numbers in cells B5 through B12, and you need their sum.
From your knowledge of formulas you may enter
=B5+B6+B7+B8+B9+B10+B11+B12. This method is tiresome when
summing eight cells, but becomes impossible if hundreds of cells need to
be added. Excel relieves us by providing the SUM function. The same
result can be achieved using =SUM (B5:B12).
Microsoft Excel comes with hundreds of functions. Table 4.1 lists some
of the functions from Excel.
172
Spreadsheet Analysis
173
Office Automation and MS Office
Exercises
1. Multiple Choice Questions
a. A formula begins with
i) =
ii) ×
iii) +
iv) -.
b. Arithmetic operators perform basic
i) mathematical operations
ii) logical operation
iii) boolean operation
iv) none of the above.
2. Analytical questions
a. Describe an arithmetic operator
b. Describe a comparison operator
c. Describe a text operator
d. Briefly describe a function
e. Write the names of the function and outline their job.
f. How you can specify a block of data?
Hands on Practice
3. Load Excel
a) Open the worksheet you saved in Lesson 3.
b) Enter the following formulas in the assigned cells.
174
Spreadsheet Analysis
175
Office Automation and MS Office
To insert rows :
Inserting Rows or Columns
1. Select the desired number of row(s) immediately below where you
want the new row(s).
2. From the Insert menu, click Rows.
To insert column :
176
Spreadsheet Analysis
Clearing a cell removes the contents (formulas and data), formats, notes,
or all three from a cell.
To erase cell contents :
Erasing cell contents
1. Select the desired cells.
2. From the Edit menu, select Clear.
3. Click All, Contents, Formats, or Notes.
Note : Pressing DEL clears contents only.
Aligning Cell Entries
Microsoft Excel automatically aligns text to the left and numbers to the
right. You can change this default alignment of text, numbers, and dates.
To Click
Align text
Centre
Align Right
177
Office Automation and MS Office
Changing Fonts
Font refers to the design of the characters in which text and numbers are
displayed on the screen and printed by a printer. Each font has a name
and comes in various sizes and styles.
You can apply fonts to cells so that all of the characters within the cell
have the same font characteristics. For this
a). Using the format menu :
To change Fonts :
178
Spreadsheet Analysis
1. Select cell(s).
5. Click OK.
b). Using standard toolbar :
Alternatively, you may select font, size and style from the toolbar.
Font toolbar
179
Office Automation and MS Office
Hands on practice
1. a) Open [Link]
b) Copy the contents of B1
c) Erase B1
d) Select A1
e) Bold the selected text
f) Change the point size to 16.
180
Spreadsheet Analysis
Formatting Numbers
Number formats control how numbers, including date and time , are
displayed. Excel provides many built-in number formats for your
convenience.
To assign a built-in numeric format
1. Select cell or cells.
Formatting Numbers 2. From the Format menu, choose Cells command.
181
Office Automation and MS Office
6. Click OK.
You may also create custom formats, but this is beyond the scope of this
course.
Adding Borders
You can add seven types of borders to a cell or range of cells and add a
shading pattern (1 of 18 available patterns) to selected cells. To add
borders.
To add borders :
1. Select cell(s).
2. From the Format menu, choose Cells.
3. Select the Border tab to display the Border dialog box.
Adding borders
182
Spreadsheet Analysis
Removing Borders
To remove borders :
1. Select the cell or cells,
2. From the Format menu, choose Cells.
Removing borders
3. Click on the Border tab.
4. In the Border dialog box, clear one or more options under
Border.
Adjoining cells share borders. For example, putting a bottom border on
one cell produces the same effect as putting a top border on the cell
below it. Sometimes when you remove a border, the border doesn’t
disappear from the cell. This happens because there are two borders
applied to the gridline, and you must remove both.
183
Office Automation and MS Office
Hands on Practice :
2. a) Select the Format Code under Number 0.00 and type 385.
b) Select the Format Code under Number as ###0.00 and type 8592.
3. a) Open [Link] [unit 7, lesson 5]
b) Select the cells A, B, C, D.
c) Apply Border
d) Select A1 and C1
e) Apply pattern and color.
184
Spreadsheet Analysis
1. Select at least one cell in each column you want to change the
width.
2. From the Format menu, choose the Column.
3. Choose the Autofit Selection option or double-click the column
boundary to the right of the column heading.
To fix up the column width manually, do either of the following :
Note : Widths are specified in number of characters and you can specify
a width from 0 to 255 characters.
b) By using mouse
1. Point to the column boundary to the right of the column heading,
2. Drag it to the width you want.
Note: The mouse pointer will change to when you point to the
boundary.
185
Office Automation and MS Office
1. Select at least one cell in each row you want to change the
width.
2. From the Format menu, choose the Row.
3. Choose the Autofit Selection option or double-click the row
boundary to the right of the row heading.
b) By using mouse
Note : The mouse pointer will change to when you point to the
boundary.
Page Setup
You use the Page Setup to change printer settings for a single document.
In this way, you can add headers and footers, change margins, etc. You
can also specify settings such as paper orientation and paper size.
The Page Setup command in the File menu displays a tabbed dialog box
which provides access to most print related settings. The Four tabs are :
Page, Margins, Header/Footer, and Sheet.
To define paper size and paper orientation :
1. Position the insertion font.
2. From the file menu, choose Page Setup.
3. Select Page tab.
186
Spreadsheet Analysis
4. Select the paper size from the Paper Size and paper orientation
from the Orientation box.
5. Select Scaling option and/or First Page Number, if necessary.
6. Click OK.
Setting margins
To set margin by using Page Setup dialog box.
Setting margins
187
Office Automation and MS Office
You can specify headers or footers to print at the top or bottom of your
document. The Header/Footer tab is where page headers and page
footers are entered and formatted. Headers and footers work exactly
alike -- you may choose a built in header/footer, or define a custom one.
3. Click OK.
188
Spreadsheet Analysis
6. Click OK.
189
Office Automation and MS Office
Exercise
i) 2 sections
ii) 3 sections
iii) 4 sections
iv) none of the above.
b. Which of the following are shown when a numeric entry do not fit in
the cell?
i) a series of $ $ $
ii) a series of # # #
iii) a series of % % %
iv) none of the above.
B. Hands on practice
1.
a) Open [Link].
b) Copy all data to the next page.
1
c) Set paper size as letter 8 × 11 in and page orientation as lands
2
cape.
2.
a) Set left and right margin as 1.5”.
b) Set top and bottom margins as 1”.
3.
a) Display custom header dialog box.
b) Type Bangladesh Open University.
c) Format the typed text.
d) Insert page Number as the following format.
4.
a) Open [Link].
b) Set colum width as 20,8.
c) Set row height as 6,5.
190
Spreadsheet Analysis
• Page setup
• Printer selection and setup
• Print Preview
• Print.
You have already learned how to define paper size, margins etc. in your
last lesson. We shall learn the remaining steps involved in printing in
this lesson.
Printer Selection
To select the printer :
If you do not find the printer you want in the list, you will have to use
the Microsoft Windows Control Panel to install the printer first. Once
installed, you will find the printer listed in the above dialog box.
191
Office Automation and MS Office
Print Preview
By previewing your sheet, you can see each page exactly as it will print,
with the correct margins and page breaks, and the headers and footers in
place. Previewing a sheet can save you time and printer life.
To Do this
Display next page Click Next
Print
Before printing, you may specify how the worksheet will be printed,
what part of the sheet to print, whether gridlines and row/column
heading are to be printed etc. The Sheet tab in the Page Setup dialog box
allows you to specify a print area, print titles, and several of these print
options.
192
Spreadsheet Analysis
To Do this
Set Print area. Type or specify a range of cells in
the Print Area edit box.
Print titles for the selected Select rows and columns under
worksheet in case of multiple page Print Titles options.
document.
Control the order in which your Specify the print order under page
data is numbered. order option.
Print gridlines/row column Select corresponding the check
headings/note etc. box from print option.
To initiate Printing :
193
Office Automation and MS Office
To Do this
Print only selected cells in the Select Selection.
selected sheets.
Prints the print area of each of the Select Sheets.
currently selected sheets.
Prints the entire print area all Select Entire Workbook.
sheets in the active workbook.
Specify the number of copies. Type or select copies.
Print all pages in selected sheet Select All Type or select Pages(s).
print the range of pages.
3. Click OK.
Page Breaking
If a sheet is larger than one page, Excel divides it into pages for printing
by automatically inserting page breaks where needed. These page breaks
are based on the paper size, margin settings, and scaling options. If
automatic page breaks cause a page break to occur in an undesirable
194
Spreadsheet Analysis
place on the worksheet, you can insert manual page breaks. Whenever
you set a manual page break, Excel adjusts the automatic page breaks in
Printing
the rest of the sheet.
1. Select the row below the row where you want the page break to
appear.
2. From the Insert menu, click Page Break.
Inserting or removing page 1. Select the column to the right of the column to start new page.
break. 2. From the Insert menu, click Page Break.
195
Office Automation and MS Office
Hands on Practice :
1. a) Open [Link].
b) Copy all the contents of 1st page to the 2nd page.
c) Preview the worksheet.
d) Display the next page.
e) Close preview.
f) Insert horizontal page break from cell B3.
196
Spreadsheet Analysis
Learning Objectives
• what a chart is
• what a ChartWizard is
• how to create a chart in Excel
• how to change chart type
• how to add more data in the chart
• how to delete data from chart
• how to change data series
• how to format chart
• how to change worksheet image plotted in a chart
Chart
A chart is a graphic representation of worksheet data. Excel 5.0 offers 15
types of charts to choose from --- 9 of them are two dimensional chart
A chart is a graphic types and the remaining 6 are three dimensional chart types. You may
representation of worksheet plot a chart directly on your worksheet or as a separate document. Charts
data. and related data are interlinked. Therefore, charts are automatically
updated whenever you make modifications in the chart data.
Chart Area
Y axis
title
Y-Axis (Value axis) Chart Data X axis title X-axis (Category axis) Legend
series
197
Office Automation and MS Office
Creating a chart
Creating chart is simple in Excel. It comes with a ChartWizard tool. The
ChartWizard guides you through the steps required to create a new chart
or modify settings for an existing chart.
Creating a Chart 1. Select the range of worksheet cells that contain the data you want to
plot.
Note : You may select non-contiguous ranges if you wish. Do not select
empty cells outside the rows and columns you want plotted.
2. From the Insert menu, select the Chart or click .
3. Point to where you want top-left corner of the chart located and drag
and drop it onto the desired position.
Note : To plot a chart in a perfect square, hold down the Shift key while
you drag. To align the chart to cell grid, hold down the Alt key while you
drag.
198
Spreadsheet Analysis
7. In Step 4 of 5 dialog box, you will find a preview of the chart, and it
asks you to specify how the data on the chart is oriented i.e whether
data series are in rows or columns. The options of this step are as
follows :
199
Office Automation and MS Office
Note : You may modify any of the selections made so far by clicking the
Back push button up to the relevant dialog box and change the
selections. Once you are decided, click the Finish button.
Modifying Chart
To Change the worksheet image plotted in a chart :
200
Spreadsheet Analysis
• Method 2
1. Activate the chart.
• Method 3
1. Activate the chart.
2. From the Format menu, choose Auto Format.
201
Office Automation and MS Office
• Method 1
Excel will display a dialog box to let you specify the type of data being
added.
• Method 2
Method 3
1. Activate the chart.
2. From the Insert menu, choose the New Data.
202
Spreadsheet Analysis
203
Office Automation and MS Office
204
Spreadsheet Analysis
Exercise
a. A chart is a
i) 6
ii) 9
iii) 15
iv) 25.
2. Analytical questions
a. What is a chart?
b. How to plot a chart in Excel?
c. How to modify the data used for plotting?
3. Hands on Practice
a) Open [Link].
b) Select cell from A2 to A9 and from B2 to B9.
c) Create a chart using the selected data.
d) Change the chart type.
e) Change data orientation.
205