00 HSS CAH Preface - PMD
00 HSS CAH Preface - PMD
68
3. Data Processing with Electronic Spreadsheet
A Row
A Cell A Column
3.2.2 Cell
Cell is the intersection of a column and a row. It is the smallest unit of the worksheet
where data and formula can be placed. Each cell has a unique address. It is referred by
the combination of the column name and the row number. For instance, the cell address
A5 means; the intersection of column A and row 5.
In Figure 3.1, D8 is the currently active cell where the cell pointer points to. Cell pointer
is the dark cell-boundary which can be moved anywhere in the worksheet. It is the cell
where the next entry would take place.
69
3.2.3 Range
Range is a group of adjacent cells that form a rectangular area. A range may contain just
a single cell, or many cells. A range is specified by the addresses of the first cell in the
range and the last cell in the range. For instance, a range starting from B3 to E10 (Figure
3.2) is written as B3: E10, where ':' is the range indicator. The smallest range is a single
cell and the largest range is the entire worksheet.
Range B3:E10
70
3. Data Processing with Electronic Spreadsheet
Rows
Columns
Sheet tabs
Status bar
3.3.2 Toolbars
Toolbars contain icons or short-cut buttons for commonly used menu commands. The
two important Toolbars are Standard toolbar and Formatting toolbar. A Standard
toolbar consists of icons for saving, opening existing spreadsheets, creating new
spreadsheets, cut, copy, paste, print, etc. Formatting toolbar contains icons and listboxes
for formatting spreadsheet like changing font, style, size, alignments, etc.
71
3.3.4 Sheet tab
Sheet tab shows the worksheets available in the spreadsheet. We can use Sheet tab
option to switch from one sheet to another. It provides an easy way to copy, move,
delete, insert and rename the sheets.
3.3.5 Status bar
The Status bar is an area where the current status about the worksheet is displayed.
For example, the result of certain operations like sum, average, etc. of a selected range
will be displayed here.
Check yourself
72
3. Data Processing with Electronic Spreadsheet
The following are the different types of data that can be entered in a cell.
a. Numbers
Worksheets are mainly used for entering and manipulating numeric data. By default,
numbers are right aligned as shown in Figure 3.4. To enter a negative number either
type a minus ( - ) sign to the left of it or enclose it in parenthesis. Examples of numbers
are 35, 225.75, -50, (105.5).
b. Text
Texts are alphanumeric data entered in a worksheet. By default, text is left-aligned in a
cell. To enter a number as text, put a single quote (') to the left side of the number.
Numeric data
(right aligned in
a cell)
Text data
(left aligned in a cell)
Fig. 3.4 : Text and numeric data
c. Date and Time
Spreadsheet recognises a variety of date and time formats. The date elements can be
seperated using a slash (/) or hyphen (-). Time elements can be seperated using colon
(:). Some examples are 12/01/2014, 10:00:00 AM.
d. Formula
A formula is an equation that begins with an equal (=) sign. The cell containing a formula
displays the resultant value of the formula. A formula can be used to show a relationship
between cells. It can contain operators. The commonly used operators are +, -, *, / and
^ (exponentiation). A formula can also contain functions. We will discuss about functions
in the next chapter. For example, a formula that calculates the sum of the values of the
cells A1 and B1, is written as = A1 + B1.
73
3.5 Working with formula
Let us consider the salary details of the employees of a company ABC Ltd. The salary
details consists of Employee number, Name of the employee, Designation, Basic Pay,
Dearness Allowance (DA), Provident Fund deduction and Net Salary as shown in
Figure 3.5.
Let us calculate DA and Net Salary of each employee. DA is calculated as 40% of the
Basic Pay. Net Salary can be calculated using the formula
Net Salary = Basic Pay + DA - PF
The DA of the first employee is to be calculated and displayed in the cell E3. For this
place the cell pointer in cell E3 and enter the formula =D3 *40/100 as shown in Figure
3.6. The cell D3 contains the Basic Pay of the first employee. The formula for calculating
DA can also be calculated as =D3*40%.
74
3. Data Processing with Electronic Spreadsheet
75
or not. Note that closing a spreadsheet does not exit the spreadsheet application. To
exit a spreadsheet application use File à Exit.
To open an existing spreadsheet, choose File à Open. In the Open dialog box that
appears select the file and click Open.
a. Formatting numbers
The number formats can be applied to data in the cells using the Numbers tab of the
Format Cells dialog box. The appearance of numbers in a cell can be changed as
Percentage, Currency, Date, Time, Scientific, etc. The number of decimal places,
leading zeros, thousands separator, etc. can also be specified using this option. Note
76
3. Data Processing with Electronic Spreadsheet
b. Formatting font
Font tab of Format Cells dialog
box is used to change the font
face, size and style (bold,
italics) of a cell or a range of
cells. Effects like font colour,
underline, overline, strike
through and shadow can be
specified using the Font Effects
tab. Some of these options are
Fig. 3.9 : Format Cells dialog box
also available in the Formatting
toolbar.
d. Setting borders
The Borders tab is used to set the borders, its style and colour. The spacing of text from
the border can also be specified. A shadow can be given to cells using the Shadow
Style option in the Borders tab.
77
3.8.2 Formatting columns
Column formatting features are available in the Column option of the Format menu
(Format à Column). The different options in the Column submenu helps to set the
column width, optimal column width, hide or show columns.
To set the width of a column, select the required column and choose Width option from
the Column submenu. Enter the required width in the dialog box that appears. The
Optimal Width option is used to resize the width of the column to the minimum required
width that suits the contents of the selected cell. The value given in the Add box of
Optimal Column Width dialog box shown in Figure 3.11 adds the specified value to
this minimum width for the column. Note that by double clicking on the right border of
the column header, the column
can be resized to fit the longest
entry in the column.
We can hide a column by first
selecting a cell in the column to
be hidden and then use the
menu item Format à Column
à Hide. The column will be
Fig. 3.11 : Optimal Column Width dialog box hidden on the screen, but the
data in the column will be used
for the calculations in the sheet. Column hiding is generally used before printing. We can
verify whether columns are hidden by checking the column header names. A hidden
column can be made visible by selecting the adjacent columns and then use the menu
item Format à Column à Show.
78
3. Data Processing with Electronic Spreadsheet
79
• Prepare a neatly formatted timetable of your class. Format
the cells with proper font type, size and colour (different colour
for different subjects). The first row should display the class
name in merged form.
Let us do
Check yourself…
a. Inserting cell
We can insert blank cells above or to the left of the active cell on a worksheet. This will
shift the cells below in the same column downwards or in the same row to the right. We
can also insert rows above and columns to the left of the active cell on a worksheet. To
insert a cell, use the Cells… option from the Insert menu (Insert à Cells …). Note that
if more than one cell is selected, it will insert the same number of cells selected.
Consider the worksheet given in Figure 3.14. Let us now insert a cell in the position B4.
Select B4 and choose Cells from the Insert menu. In the Insert Cells dialog box, choose
the option Shift cells down. The result is displayed as in the Figure 3.15.
80
3. Data Processing with Electronic Spreadsheet
c. Inserting column
To insert a single column, select the column or a cell in the column immediately to the
right of the new column to be inserted. For example, to insert a new column to the left
of column B, click a cell in column B. To insert multiple columns, select the same number
of columns immediately to the right of the new columns to be inserted. For example, to
insert three new columns, select three columns. Columns can be inserted using the
Columns option of Insert menu (Insert à Columns). We can also right click the column
name and choose Column option from the popup menu.
Let us insert a new column Gross Salary in our Salary Bill example before the PF
column. Select the column F, choose Column option from the Insert menu and type
'Gross' as the column heading. The worksheet will now appear as in Figure 3.16.
Gross Salary is the sum of Basic Pay and DA. Type the formula for calculating Gross
Salary =D3+E3 in the cell F3 and copy it to the cells below.
81
d. Inserting a worksheet
A worksheet can be added to a spreadsheet using the menu item Sheet … from the
Insert menu. To insert a sheet, select the sheet before or after which the new sheet or
sheets are to be inserted from the Sheets tab. Choose Insert à Sheet… It will display
the Insert Sheet dialog box as in Figure 3.17. We can specify the position of the sheet,
number of sheets, name of sheet, etc. in this dialog box.
82
3. Data Processing with Electronic Spreadsheet
Cells option of the Edit menu will delete the entire rows. Similarly if entire column or
columns are selected, the Delete Cells option will delete the entire columns. Note that
Delete Cells dialog box will not be displayed in these cases.
It is possible to remove a worksheet permanently from the workbook. From the Edit
menu, select Delete option from the Sheet sub menu (Edit à Sheet à Delete). This
will prompt a confirmation dialog box for deleting the selected sheet.
83
A shortcut way to fill cells is to click on the Fill Handle in the lower right hand corner of
the cell and drag it in the direction to be filled. If the cell contains a number, the number
will fill in series. If the cell contains a text, the same text will fill in the direction you
choose (Figure 3.20).
84
3. Data Processing with Electronic Spreadsheet
Delete key on the keyboard. This displays a Delete Contents dialog box as shown in
Figure 3.22. Using this option the text, numbers, formula, formats, etc. can be deleted
in the selected range. The Delete all option deletes the entire content of the cells within
the selected range.
3.12 Freezing rows and columns in a worksheet
Freezing locks a specified number of rows at the top of a spreadsheet or a specified
number of columns on the left of a spreadsheet or both. While scrolling inside the sheet,
the frozen columns and rows always remain in view. Freezing is the act of making a
selected set of columns or rows immovable while scrolling the worksheet. To freeze
rows, click on the row header below the rows to be frozen. Select Freeze option from
Window menu (Window à Freeze). Similarly, to freeze columns, click on the column
header to the right of the columns to be frozen and select the Freeze option from the
menu. After freezing rows 1 and 2, the Pay Bill worksheet will appear as in Figure 3.23
when scrolled 2 rows down. Note that in the figure, rows 3 and 4 have moved up and
rows 1 and 2 remain frozen as we have scrolled down.
Check yourself
85
3.13 Cell referencing
Every cell in a spreadsheet has a cell reference which acts as an address of the cell.
These references can be used in formulae to perform various calculations. When the
data in a cell which is referenced elsewhere is changed, the formula which contains the
reference will be recalculated to reflect the change.
When a cell is referenced in a formula, the reference (cell address) can either be typed
in the formula or the mouse can be used to click on the cell to create a reference to it.
Any cell reference entered in a formula will be colour coded. The formula will show
different colours for different references and the cells will be outlined with the same
colour used in the formula as shown in Figure 3.24.
86
3. Data Processing with Electronic Spreadsheet
In relative references, cell references will move to be in the same positions relative to
the new cell. Consider the Figure 3.24. When the Net Salary in cell H3 is copied to cell
H4, the references in the formula changes as = D4 + E4 - G4 as in Figure 3.25. This is
because D3, E3 and G3 are relative references and they move to the same relative
positions in the next row namely, D4, E4 and G4. Relative references are convenient
when the same calculation is to be repeated across multiple rows or columns.
87
Now drag the formula in the cell E3 to the cells below. Note that the cell reference $D$2
remains the same in all the copied cells. Now the Salary Bill appears as in Figure 3.27.
When the percentage of DA changes, the cell D2 needs to be updated and the calculated
DA of all employees changes automatically.
Shrink Button
88
3. Data Processing with Electronic Spreadsheet
89
3.14.4 Page style setting
The Print option of File menu can be used to print a spreadsheet. We can select the
printer in which the spreadsheet is to be printed, the range to be printed, the number of
copies, the pages to be printed,
etc. using the General tab of the
Print dialog box as shown in Figure
3.31. The Page Layout tab of
Print dialog box allows to select
the number of pages to be printed
on each sheet and the order in
which the pages are to be printed.
A preview of the page is also
Fig. 3.31 : Print dialog box available in this dialog box.
Calc can export documents to PDF (Portable Document Format), which allows the file
to be viewed on any platform. PDF is a popular format for transferring files to others.
Note that once a sheet is converted to PDF format, it is not easily editable. A worksheet
can be exported to the PDF format using the menu option File à Export as PDF… In
the PDF Options dialog box shown in Figure 3.32, the range of pages to be converted
to PDF, the quality of the images, etc. can be specified.
90
3. Data Processing with Electronic Spreadsheet
Check yourself
Let us sum up
We have now discussed the various operations that can be performed with the help
of spreadsheet package. The different components of the spreadsheet window and
its uses have been familiarised. It is an excellent tool for storing huge volume of data
(text, numbers, date and time, formula). The data entered in a cell can be formatted,
formulae can be inserted and many calculations can be done easily. The data in the
cells can be formatted using different font styles, sizes, colours, borders, etc. The
appearance of the different types of data, the width and height of columns and rows
can be set. The cells in the worksheet can be merged using the merge feature. A
91
range can be selected, copied or moved to other locations. Cells, rows, columns or
worksheets can be inserted or deleted based on requirements. A range of cells can
be filled with values using the Fill Series option in the spreadsheet. Columns or rows
can be made immovable (freezed). Different types of cell references while copying
formulae, are also discussed in this chapter. Data in a worksheet can be printed after
applying the different print formatting features. Spreadsheet can be exported to the
PDF format, to use it on other platforms.
Learning outcomes
After the completion of this chapter the learner will be able to
• identify the features available in electronic worksheets.
• identify the need for spreadsheet package in numeric data processing.
• store data in a spreadsheet and analyse.
• format the contents of a spreadsheet.
• apply formula for calculations and create series.
• save the file permanently and retrieve it later.
• insert / delete / hide / freeze rows and columns.
• identify the use of relative and absolute referencing.
• use printing facility to take printouts of worksheets.
• familiarise with exporting worksheet to the PDF format.
Lab activities
1. Given a manual worksheet containing the details of students in a class with Reg.No,
Name, Age and Marks for 6 subjects. Create an electronic worksheet to calcu-
late the total mark and percentage (Max.Mark for each subject is taken as 100).
Use formula to calculate the total mark and percentage of marks for the first
student. Then copy the formula to the succeeding rows to complete the marklist.
Reg.No Name Age M1 M2 M3 M4 M5 M6 Total Percent
t age
5460 Rajeev 16 60 55 48 75 65 50
5461 Binoy 17 80 90 62 70 60 45
5462 Rahul 17 78 82 60 55 45 30
5463 Parvathi 16 70 85 40 50 55 40
92
3. Data Processing with Electronic Spreadsheet
Sample questions
93
7. By default, ______ number of worksheets are present in a workbook.
8. The Save, Print commands are available in ______ menu of the worksheet win-
dow.
94
We discussed the basic concepts of a spreadsheet
in the previous chapter. We saw how data is entered
in cells and how a cell is referred. We also learned
Key concepts
how to add a formula to a cell so that simple
• Functions
calculations can be done. This chapter introduces
various built-in functions available in a spreadsheet.
o Mathematical - SUM,
These functions make calculations simpler and
ROUND, ROUNDUP,
comparisons possible. Sorting and filtering are the
ROUNDDOWN,
two powerful features of a spreadsheet that make
COUNTIF
it an ideal tool for data analysis. Charts can also be
o Statistical - AVERAGE, used in the spreadsheet to provide information in a
MIN, MAX, COUNT graphical form.
o Logical - IF, AND, OR,
NOT
4.1 Functions
o Text - UPPER, LOWER, In this section we will learn different built-in functions
LEN available in a spreadsheet. For this, let us plan to
prepare the marklist of the first mid-term
o Nested functions
examination. The columns in the mark list are Roll
• Data manipulation
Number, Name, scores of six subjects including
o Sorting English, Second Language, Sociology, Journalism,
o Filtering Communicative English and Computer Application.
• Charts - Column, Bar, There are columns for Total, Percentage and Result
Line, Pie also.
In the last chapter we learned how to prepare a
work sheet. For preparing the mark list, create a
table with column headings as RollNo, Name,
English, Lang, Sociology, Journalism, Comm. Eng,
Comp. Appln., and Total as shown in Figure 4.1
Fig. 4.1 : Marklist showing scores in each subject
To find the total marks, place the cursor in the cell I3, where you want to display the
total marks of the first student as shown in Figure 4.1. Click the AutoSum button
in the Formula Bar. Now you can see =SUM(C3:H3) in the cell I3. Here, C3:H3 is the
range of cells used to calculate the SUM (refer Figure 4.2).
Press Enter key if the range shown is correct. This will calculate and display the total
marks of the first student in the cell I3 as shown in Figure 4.3.
96
4. Data Analysis using Spreadsheet
How can you calculate the total marks of all other students? It is very simple. The total
marks for all students can be calculated and displayed using the following steps.
1. Select cell I3.
2. Move the mouse pointer to the bottom-right corner of the cell. See that the mouse
pointer changes to thin + symbol.
3. Click and drag downwards to copy the formula in all cells. The total marks are
now displayed in all the cells.
Actually SUM is a built-in function used in spreadsheets. Now we will discuss about
functions and its usage in detail.
Spreadsheet provides many built-in functions that help to do a variety of tasks easily.
Usage of functions saves a lot of time and effort. The real power of spreadsheet lies in
the availability of large number of built-in functions for various purposes. Each function
has a name. They perform some specific operations and the result is displayed in the
cell. A function makes use of values or cell references, just like a simple formula. The
numbers or cells used for calculations are placed in brackets after the name of the
function. Functions are considered as pre-defined formula in spreadsheets.
In order to use a function, click the button in the toolbar after selecting the
appropriate cell. A Function Wizard dialog box will be displayed as in Figure 4.4.
97
Fig. 4.4 : Function Wizard dialog box
98
4. Data Analysis using Spreadsheet
In the last chapter we learned to insert formula in a cell. The total marks scored by the
first student is displayed in the cell I3 as indicated in Figure 4.3. You know that the
formula for calculating the percentage of marks is
Marks Scored
P= ×100
Maximum Marks
If the maximum mark for each subject is 50 the formula to be inserted in the cell J3 is
= I3 /300 *100
Press Enter key, the percentage of marks obtained by the first student is displayed in
the cell J3. Copy the formula to the cells below to find the percentage of marks for all
the students as shown in Figure 4.5.
You can see that the percentage of the student ‘Arun K’ is displayed as 81.3333333 in
Figure 4.5. Do you think that it will be better if the percentage is rounded to the nearby
integer? Or with exactly one or two decimal places? Here the function ROUND helps us
do this. Go to the cell K3 and click the insert function button. In the Function Wizard,
select Mathematical from the Category drop down box. Double click on the ROUND
function.
Figure 4.6 displays the structure of ROUND function as given in the Function Wizard.
ROUND function rounds a number to the specified number of decimal places. ROUND
function requires two values, the number to be rounded and a count. number can be
a cell address which contains the number to be rounded (here it is the percentage of
total marks) . count is the number of digits to be displayed after decimal point. In this
99
Fig. 4.6 : ROUND function
example, we need to round the percentage of total marks to the nearest integer value.
For this we fix count as 0. The result is shown in Figure 4.7.
Let us try to use the ROUND function for displaying the percentage of total marks in the
rounded format at column K where the formula to calculate the percentage is entered.
This can be done by using the formula for percentage as the first argument in the ROUND
function as given below.
= ROUND ( I3 / 300 x 100, 0 )
100
4. Data Analysis using Spreadsheet
Now, if we compare the actual percentage of total marks obtained for each student and
their rounded percentage of total marks, ‘Arun K’ will lose 0.33333333 percentage
when it is rounded. Students ‘Alex Paul’, ‘Asha P’ and ‘Joby’ will also lose the same
percentage due to rounding of actual percentage to the nearest integer using the ROUND
function. That means 0.5 and above rounds to the next higher number and others to the
next smaller number. Suppose you want to round the value to the next higher integer
always. You can use the ROUNDUP function as shown in Figure 4.8.
The arguments needed for the ROUNDUP function are the same as ROUND function but
the only difference is that ROUNDUP function rounds to the next higher number. For
example 81.33333333 will be rounded to 82 in our mark list. The result of ROUNDUP
function is shown in Figure 4.9.
101
Similarly you can find another function named ROUNDDOWN in the function wizard.
You can try this function and observe the difference in output.
COUNTIF function counts the number of occurences of values in a list that matches a
criteria. Now let us consider that we need to find the number of students who have
scored more than 80 percentage or more marks in the class. The function
=COUNTIF ( K3:K12, “>=80” )
gives the number of students who have scored 80 percent or more. The first argument
specifies the range of values and the second argument specifies the criteria. Note that
the criteria should be specified in double quotation marks. Refer Figure 4.10.
102
4. Data Analysis using Spreadsheet
Check yourself
1. What is a function?
2. Name the function used to calculate the total of a set of cells.
3. The syntax of ROUND function is _______.
4. Differentiate between ROUNDUP and ROUNDDOWN functions.
5. Write the function to display the number 67.8675 as 67.86.
6. What does COUNTIF function do?
103
4.1.2 Statistical functions
Statistical functions operate on a set of data and give summarised results. Spreadsheet
provides a number of statistical functions. A few of them are discussed in this section.
Consider the example of preparing the marklist that we discussed in the previous
section. Let us try to find the average of each subject and display it at the bottom row
of the mark entries. Subjectwise average is calculated for a particular subject by adding
marks of all students and dividing it by the number of students. But in a spreadsheet,
instead of performing this calculation you can directly use the statistical function
AVERAGE. The Function Wizard for the function AVERAGE is shown in Figure 4.11.
104
4. Data Analysis using Spreadsheet
105
Fig. 4.14 : Results of statistical function
Check yourself
106
4. Data Analysis using Spreadsheet
107
specified in Otherwise_value. On clicking the OK button the result will be displayed in
the cell L3. Copy the function to the other cells of the column. Now our mark list looks
as shown in Figure 4.16.
108
4. Data Analysis using Spreadsheet
Using AND function we can test up to 30 conditions. The maximum number of conditions
that can be tested may change depending on the version of the spreadsheet package
used. Each condition can return either True or False. In our example the AND function
can be specified as
=AND ( C3>=20, D3>=20, E3>=20, F3>=20, G3>=20, H3>=20 )
The result will be True if the scores of all subjects are greater or equal to 20. If the score
of any subject is less than 20, the function will return False. We can say that a student
has passed if AND function returns True and failed if the AND function returns False.
The OR function is another logical function. The result of OR function will be True, if any
of the conditions is True and will be False if all the conditions are False. In our example,
a student fails if he scores less than 20 marks for any of the subjects. So the result of a
student can be determined using the OR function as
=OR ( C3<20, D3<20, E3<20, F3<20, G3<20, H3<20 )
Here the result will be true if the score of any of the subject is less than 20. That is if OR
function returns True, we can say the student is failed, and if it is False the student is
passed.
The NOT function is used in situations where we need to get the reverse of logical test.
That is, if the condition is evaluated to true, NOT function returns False, otherwise it
returns True.
The logical functions in spreadsheet give either True or False as result. The syntax of the
different logical functions are given in Table 4.3.
Function Syntax Description
IF ( ) IF (Test, Then_value, If the condition is True, Then_value is
Otherwise_value) returned; else Otherwise_value is returned.
AND ( ) AND (Logical value1, Returns True if all the conditions are True;
Logical value2, …..) otherwise returns False.
OR (Logical value1, Returns True if any of the condition is True;
OR ( )
Logical value2, …..) returns False if all the conditions are False.
NOT(Logical value) Reverses the value of its argument. That is,
NOT ( )
if test condition is evaluates to True, then
NOT returns False and if the test returns
False, NOT returns True.
Table 4.3 : Logical functions
109
Check yourself
UPPER
It converts a text to the upper
case (capital letters). Only the
lower case (small letters) letters Fig. 4.18 : UPPER function
in the text are converted to the
upper case. Other characters in the text remain in the same form. Here we can give a
text as the argument. The argument can be a cell address also. The structure of UPPER
function in the Function Wizard
is shown in Figure 4.18.
LOWER
The LOWER function converts
a text to the lower case. Here
only the upper case letters in the
given text are converted to the
lower case.
Fig. 4.19 : LEN function
110
4. Data Analysis using Spreadsheet
LEN
It is used to calculate the
number of characters in
a text.
Figure 4.20 displays the
output of the above text
functions.
In our example, the
Fig. 4.20 : Text function examples
name and e-mail address
of a person is given in cells B1 and B2 respectively. The UPPER function is used to
convert name to uppercase letters and the LOWER function is used to convert email
address lower case letters. The number of characters in the name is also displayed
using LEN function. Note that space is also considered as a character.
The structure and description of commonly used text handling functions are shown in
Table 4.4
Function Syntax Description
UPPER ( ) UPPER(Text) Converts the given text into uppercase
LOWER ( ) LOWER(Text) Converts the given text into lowercase
LEN ( ) LEN(Text) Calculates the length of the text
Table 4.4 : Text handling functions
Check yourself
111
these values. Here subject average is calculated using the AVERAGE function. As you
have already learned, the ROUND function is used to round a number to the specified
number of decimal places. We can use the AVERAGE function inside the ROUND function.
The function can be written as
= ROUND ( AVERAGE ( C3:C27 ) ,0 )
Now the results will be 32, 40, 34, 35, 31 and 35.
In the case of nested function, the inner function is evaluated first and the outer function
operates on the result of the inner function.
Now let us assign grades to each subject. For this let us insert one column each after
every mark column. We have already discussed how columns can be inserted in the
previous chapter. Grades can be calculated based on the marks scored in each subject
using the following criteria.
It is clear that grades cannot be calculated
Marks Grade by testing a single condition. The IF
function we learned earlier has three parts;
40 or more A
A Test , Then_value and
Below 40 and 30 or more B Otherwise_value. Consider the case of
Below 30 and 20 or more C the first subject (English). In the Test part,
you can specify C3 >= 40. Then_value will
Below 20 D
be 'A' because if the mark is above or
equals 40, the grade is 'A'. The Otherwise_value is not a grade. Here we need to test
another condition C3 >= 30. For this we require another IF function in the
Otherwise_value part. To include a function in another function click button displayed
to the left of each item in the Function Wizard. As shown in Figure 4.21 the function to
find grade can be written as
=IF ( C3>=40,"A",IF ( C3>=30,"B",IF ( C3>=20,"C","D" ) ) )
This can be explained as: if C3 >= 40, then the grade is 'A'. Otherwise, check if C3 >=
30. If this is true, then the grade is 'B'. Otherwise check if C3 >= 20. If true, then the
grade is 'C' otherwise grade is 'D' .
112
4. Data Analysis using Spreadsheet
In the example of the mark list that we discussed, a student is considered passed if he/
she has got 20 marks or more in all the subjects. Earlier, you have seen that the function
AND or OR can be used to test more than one condition. These functions will however
return True or False as result. Here you have to check whether the mark of each
subject is greater than or equal to 20. If we are using an AND function for checking the
marks of individual subjects, it will return True if all the test conditions are True otherwise
returns False. So if an AND function is used in the Test part of the IF function, we can
test multiple conditions. The result 'Pass' can be specified in the Then_value and 'Fail'
will be specified in the Otherwise_value. As we have already learned, the text given in
the Then_value will be displayed, if the Test is evaluated to True and the text in the
Otherwise_value will be displayed if the Test is evaluated to False. So this will give the
desired result.
How will you include an AND
function in the IF function? In
the test section of the IF
function, click on the button
and select AND function. Now
you can set multiple conditions.
The function in the formula bar
will be displayed as Fig. 4.22 : Nesting using IF and AND functions
=IF ( AND ( C3>=20, E3>=20, G3>=20, I3>=20, K3>=20, M3>=20 ) ,"Pass", "Fail")
This nested function, will give you the result as 'Pass' if all the conditions mentioned
inside AND function are evaluated to true. The same thing can be done using OR function.
Figure 4.22 refers to the nesting of IF and AND functions.
From the above discussion it is clear that you can include one function inside another.
This feature makes a spreadsheet a powerful tool for data processing. The final mark
list is displayed as in Figure 4.23.
113
• Calculate the grades of other subjects in the example of
marklist preparation.
Let us do
• Find whether a student is ‘Pass’ or ‘Fail’ by using OR function
inside IF.
4.2.1 Sorting
Consider the marklist in Figure 4.23.In order to prepare a rank list, the student with
highest total comes in the first row, the second highest total in the second row and so
on. It is not easy to find the student record with highest total by scrolling through the
sheet, cutting the row and pasting it as the first row. Then find the student with the next
highest mark and make it the second row, and so on.
Sorting allows us to arrange the data in a table either in ascending or descending order
of one or more columns. To get the rank list, sort the mark list in the descending order
(highest values comes first) of total. The following steps are used for sorting
1. Select the entire table
2. Click Data à Sort from the menu bar. This will display a Sort dialog box as in
Figure 4.24.
3. Select the column from the Sort by drop down list. (Select the column as column
O, the column of Total marks).
114
4. Data Analysis using Spreadsheet
5. Click OK.
• Do not leave a blank row between column heading and the data, as
the blank row and blank column indicates the end of the table.
115
When Sort is clicked from Data menu or using sort buttons, the cells
above, below, to the right and to the left of the current cell will be
selected until it encounters a blank row or column. A spreadsheet treats
the topmost row in the table as the column heading. So they can be
used to specify the sort column instead of column label.
In the Ranklist example, you have sorted the data based on a single column, named
'Total'. If the total of two students is the same, who will get the priority? Here you can
use the option Then by in the Sort dialog box. That is, if there are more than one rows
with the same data in the column specified for sorting, Then by is used to specify which
column is to be considered next for sorting.
116
4. Data Analysis using Spreadsheet
each Second Language section are sorted separately in the alphabetical order. The
Sort dialog box is shown in the Figure 4.26. In this dialog box, give Sort by as ‘Sec.
Language’, the first Then by as ‘Gender’ and the second Then by as ‘Name’. Now
click OK button and observe what happens.
The sorted list is given in Figure 4.27. Now the Roll Numbers can be given.
4.2.2 Filtering
Filtering allows us to display only data that meets some criteria. Filtering temporarily
hides the data in a spreadsheet that does not meet the condition. In our Marklist
example we have scores of each student in each subject, grades, total marks and the
result. Now let us prepare a list of students who have passed using the filtering feature
in spreadsheet. There are two types of filtering Autofilter and Standard Filter.
a. Autofilter
Autofilter displays a dropdown list containing all the values in each column and allows
to filter the rows based on values in the list. The steps for filtering using Autofilter are
given below
117
Fig. 4.29 : List of passed students using Autofilter.
Autofilter allows
selection of records When you apply an additional Autofilter on another
that display column of a filtered data range, the other combo
identical values in boxes list only the filtered data.
the specified
column. Here the filter condition is tested for equality. That means it will display the
records that contain the specified value in the column in which Autofilter is applied. It
hides the rows from the result that do not satisfy the criteria.
In addition to filter data based on the values in the column, Autofilter permits to filter
top 10 rows. The top 10 filter works only with numbers. It will display top 10 rows
without sorting.
To display all records again, select the All entry in the Autofilter combo box. To cancel
data filter and display all data, reselect choose Data à Filter à AutoFilter again.
b. Standard filter
Standard Filter is used when the data is to be filtered based on a range of values in
particular data fields (column). It can also be used when multiple conditions are to be
used for filtering. These multiple conditions can be combined with either a logical AND
or a logical OR operator.
Suppose you need the list of students whose percentages are above 75 and who got 'A
grade' in English.
This cannot be done by the Autofilter, as there are two conditions and one of the
conditions does not depend on equality. Standard Filter can be used in this situation.
The first condition is Percentage above 75. The second condition is grade of English
should be 'A'. Both the conditions should be satisfied. Connect the conditions with AND
operator. The Standard Filter window is shown in Figure 4.30.
118
4. Data Analysis using Spreadsheet
Check yourself
119
4.3 Charts
It is much easier to understand data when it is presented graphically. Charts are graphical
representation of numeric data. Charts make it easier for users to compare and understand
statistical data. They can be used for data analysis. Charts can present data entered
into the worksheet in a visual format using a variety of graph types.
Charts are constructed with the numeric data entered in the worksheet. The data can
be individual numbers in a worksheet or a data series within a column or a row. This
section explains how you can create simple charts from the data.
The following are sales details of ABC Ltd. during the four quarters of a year. Carry out
the following steps to create a chart.
1. Select the data range.
2. Select Chart from the Insert menu or click on the chart icon on the Tool bar. This
will display Chart Wizard.
3. Choose a Chart Type. There are many types of charts in spreadsheet like
Column, Bar, Line, Pie, etc. Select Column type.
4. Click on the Data Range. The selected range will be displayed. Ensure it is
correct. If needed, make the necessary changes.
120
4. Data Analysis using Spreadsheet
8. Legends : A legend is a box that specifies the colour, symbol or pattern assigned
to the data series.
121
c. Line charts
Data represented in columns or rows in a worksheet can be plotted with the help of line
chart. Line charts can be used to display continuous data over time with respect to a
common scale. Thus, Line charts are the best for viewing data trends at equal intervals
of time. The horizontal axis (x-axis) is used to represent the category data and all the
value data is distributed uniformly along vertical axis (y-axis). It is ideal for representing
large data that show trends or changes over time where you want to focus on continuity.
d. Pie charts
Pie chart is used to display how much each part contributes to a total value. It is very
useful in a situation where one has to show the relative proportions. It offers greater
visual clarity. In case of pie chart only one data series is used. If more than one data
series are selected, spreadsheet uses the first series.
When we create a pie chart, the spreadsheet totals the data points in the series and then
divides the values of each data point into the series total to determine how large each
data point's pie slice should be. It is effective where there is small number of data
points. Generally, there can be maximum of five or six data points or slices in a pie
chart. If the points are more in number then it becomes very difficult to interpret the
chart. Besides, it is very important to note that the values to be used in the pie chart
122
4. Data Analysis using Spreadsheet
must be all positive. If there are some negative values, in that case the negative values
will be automatically converted in to positive values. Figure 4.34 displays different
types of charts.
Now let us consider the sales details of ABC Ltd. displayed in Figure 4.35. Here the
data of sales done by three salesmen in the four quarters of the year is given.
Let us draw a column graph
with these data. We have three
series of data corresponding to
each salesman. The range is
selected as A3 to D7. Then
follow the steps used to create
a chart mentioned earlier. On
clicking the Finish button the
Fig. 4.35 : Quarterly report of different salesmen
chart will be displayed as in
Figure 4.36.
Compare this chart with chart
in Figure 4.33. In the previous
chart there is one column
corresponding to each
quarter. Now there are three
columns corresponding to
each salesman. How do you
identify the column of a
particular salesman? Here the
colour legend comes to help. Fig. 4.36 : Bar chart
The legend is shown in the right side of the chart. It tells which is the colour used to
represent each salesman.
Try the same data with other types of charts. This data is not suitable for Pie chart as
this contains three series for each quarter. Pie chart can deal only with one series of
data.
123
Chart Wizard contains more options than we discussed. They are beyond our scope.
Still you can experiment with options available in Chart Type, Data Range, Data Series
and Chart elements.
Check yourself
Let us sum up
In this chapter we have familiarised ourselves with the spreadsheet. A large amount
of data can be entered in multiple sheets of a workbook. We can perform different
calculations by entering expressions or formula in a cell to perform calculations. In
the first section of this chapter we saw that there are many built-in functions available
in a spreadsheet that make calculations even simpler and comparisons possible.
These functions are categorized into different groups. We have discussed only a few
functions in the spreadsheet. A discussion on all the functions available in a spreadsheet
is beyond the scope of this book. Sorting and filtering are powerful features of the
spreadsheet that makes it an ideal tool for data analysis. In this chapter we also
learnt charts. There are different types of charts in a spreadsheet. Charts can be
used to provide information in a pictorial form. They make it easy to understand
facts.
124
4. Data Analysis using Spreadsheet
Learning outcomes
After the completion of this chapter the learner will be able to
• identify the use of different mathematical functions - SUM, ROUND,
ROUNDUP, ROUNDDOWN and COUNTIF.
• identify the use of different statistical functions - AVERAGE, MIN, MAX
and COUNT.
• identify the use of different logical functions - IF, AND, OR and NOT.
• identify the use of different text functions UPPER, LOWER and LEN.
• sort data in a spreadsheet.
• identify the use of Filtering.
• compare different types of charts.
Lab activities
125
3. The syntax of ROUND function is _________ .
4. Name the function that is used to find highest value in a range of cells.
5. Which function is used to find number of values in a range of cells?
6. Which charts are considered suitable for viewing data trends at equal intervals of
time?
126
5. Presentation Software
127
contain graphics and a facility for slide show. Presentation tool facilitates the creation of
presentations on any particular topic like uses of Internet, global warming, social
networking, etc.
Let us prepare a presentation to give awareness about the importance of saving our
environment from various threats. Before we start, we should have a clear idea about
the content and the structure of the presentation. The first slide in the presentation
usually contains the title of the presentation and details of the presenter. The second
slide gives an introduction to the topic. More details about the subject are included in
the succeeding slides. The contents in these slides can be presented with the help of
bulleted lists, images, tables, audio and video. Instead of presenting the matter in
paragraphs, it would be better if they are presented in the form of a bulleted list. After
the contents are presented, it will be better to conclude them in the presentation.
In this chapter, we use Open Office Impress as a tool for creating the presentation.
Note that there may be changes in the features available depending on the software and
its version. When we open Impress, a dialog box showing the Presentation Wizard as
in Figure 5.1 appears on the screen.
128
5. Presentation Software
The Empty presentation option is selected by default and then the Create button at the
bottom of the wizard is clicked. The window as in Figure. 5.2 is displayed.
129
Designing the first slide
Let us give our presentation the title 'Save our Planet - Earth'. By default, the design of
the first slide consists of provisions to add a title and a text. Click on the provision given
for the title and enter heading of our presentation. Similarly, the name and class of the
presenter can also be entered in the box below. After entering the title the slide appears
as in Figure 5.3.
130
5. Presentation Software
Opening a presentation
To open an existing presentation, choose File à Open or
Ctrl + O. An Open dialog box appears. Select the file that
we want to open and click Open.
5.3 Adding new slides
While designing presentation, we may need to add more
slides. Let us now add a slide that introduces the topic. Use
the menu item Insert à Slide to add a slide. Here, we choose
the Title Only layout from the predefined layouts in the Tasks
pane (refer Figure 5.5).
Entering text in a slide
In this slide we introduce the topic. Here, we will have a
Fig. 5.5 : Predefined
heading and a narration about the topic. There are two ways
layouts
to add text in a slide. Text can be typed directly in the text
element in a slide or using the Text tool in the Drawing toolbar.
By directly typing the text in the slide
Here, text can be added directly to the title object and the body object. For entering a
text, click on the object as described in Section 5.2. Enter the title as 'Our Earth'.
By using a Text tool
1. Click on the Text icon on the Drawing toolbar.
2. Click and drag to draw a box for the text on the slide.
3. Type the contents in the text box and click outside the textbox to deselect it.
131
Check yourself
a. Character formatting
Setting the font face, size, colour
and other effects to the characters
in the slide is called character
formatting. Character formatting
options are available in Format à
Character menu or clicking the
character button in the Text
Formatting toolbar. A Character
dialog box is displayed as shown
in Figure 5.7.
The Font tab of Character dialog Fig 5.7 : Character dialog box
box can be used to select the
desired font face, style (Regular, Bold, Italic and Bold Italic) and the size of the font.
Font Effects tab is used to specify a font colour, gives effects like embossed, engraved,
outlined, shadow, etc. It can also be used to specify the style and colour of underline,
132
5. Presentation Software
overline and strikethrough. The Position tab provides facility to make a text superscript
or subscript. In addition, it allows to set the spacing between the characters.
b. Paragraph formatting
These formatting features apply to a paragraph of text. Indentations, spacing, alignment
and tab setting can be done using this feature. Select Format à Paragraph menu item
or click the paragraph button on the Text Formatting toolbar to view the Paragraph
dialog box as in Figure 5.8.
Indentation of the text, spacing before and after the paragraph and spacing between
133
Fig. 5.9 : After applying character and paragraph formatting
5.4.2 Bullets and numbering
Bullets and numbering allow to present a list of items in the slide attractively. Bullets
and Numbering can be accessed using the menu item Formatting à Bullets or using
Bullets and Numbering icon in the Formatting toolbar.
In our presentation about the earth, let us add a new slide about the issues that affect
our environment. For this, we add a new slide and select a layout that contains bullets.
Type the points in the bulleted list. To change the format of the bullets, select the list of
items and then click the Bullets and Numbering icon. The Bullets and Numbering
dialog box as in Figure 5.10 appears.
The Bullets and Numbering dialog box
contains five tabs namely, Bullets,
Numbering type, Graphics, Position and
Customize for formatting the lists. The
Bullets tab is used to set the style of the
bullet. To use a more attractive graphical
bullet, choose a suitable bullet from the
Graphics tab. Numbering type tab
provides option to select the different
numbering styles available. Position tab
allows to set indent, width of numbering
and alignment of the different levels of Fig. 5.10 : Bullets and Numbering dialog
box
134
5. Presentation Software
135
Fig 5.13(b) : Confirmation dialog box
Fig 5.13(a) : Choosing a colour for
background
136
5. Presentation Software
137
In the same way, a gradient,
hatching pattern or a bitmap
image can be set as the
background of an object.
The Shadow tab is used to
set shadow to an object.
The percentage of
transparency of an object
can be set using the
Transparency tab. Figure Fig. 5.17 : Slide after applying gradient
5.17 shows the slide after
applying gradient to the title object.
138
5. Presentation Software
slide is by selecting Insert à Picture from File menu option. Let us give a background
image to our first slide using the above method. In the Insert Picture dialog box that
appears, browse and select an image. The selected image will be added to the slide.
Note that this image will hide other objects in the slide. To send it to the back of other
objects, right click on the image and choose Arrange à Send to Back. Image and
other objects in the slide can be resized and re-positioned by clicking and dragging.
The new appearance of the first slide is as in Figure 5.19.
139
Load button to select an appropriate
template. Click OK button to apply the
template to current slide (Figure 5.22).
Templates can also be selected at the
time of creating a new presentation.
The Presentation Wizard shown in
Figure 5.1 allows you to create a
presentation from a list of existing
templates.
Fig. 5.21 : Slide Design dialog box
Check yourself
• Make five different slides based on any topic that you have
studied this year and give suitable background colour, text
etc.
Let us do
140
5. Presentation Software
The table inserted on the slide can be resized and positioned by dragging it. When a
table is selected, a Table toolbar is displayed (Figure 5.23(b)). This toolbar contains
tools for merging, splitting, giving colours, borders, alignments, etc. to the cells of a
table. This toolbar also
consists of buttons for
inserting or deleting
rows and columns,
setting table properties,
etc. The Tasks pane
shows various
predefined styles of
tables from which we
can select a suitable
style. A Tasks pane can
Fig. 5.24 : A slide with table
also be used to create
a table. This can be done by clicking a suitable design from the Table Design tab in the
Tasks pane. The important days related to environment can be presented using a table
as in Figure 5.24.
141
5.9 Inserting a sound file
At times, it may be necessary to
play sound during the
presentation. In our presentation,
let us insert a poem 'Bhoomikkooru
Charamageetham' by Prof.
O.N.V. Kurup. This poem is
stored as bhoomi.wav. Let us
now create a new slide to insert
this poem. In this slide, first insert
an image of Prof. O.N.V. Kurup.
Now we can insert the sound file.
A dialog box as in Figure 5.25 is Fig. 5.25 : Open dialog box to select sound files
displayed when we select Movie
and Sound option of Insert menu. Click Open button after selecting the audio file. The
new slide is displayed as in Figure 5.26.
We can see that the sound file
is inserted in our slide in the
form of a sound icon. It is set
to begin automatically when
the slide comes on the screen.
If we do not want the sound
icon to appear on the screen,
you can drag it off the slide.
It will be still active but will
not be visible on the slide.
Fig. 5.26 : Slide with sound file
5.10 Inserting video clip in a slide
A video clip can be inserted into a
slide in the same way as we insert
a sound file. Select the movie file
from the Open dialog box that
appears, when we choose Insert à
Movie and Sounds menu. Let us
include a video on pipe compost in
our presentation. The new slide
with the video clip is shown in the Fig. 5.27 : Slide with video clip on pipe compost
Figure 5.27.
142
5. Presentation Software
Remember that whenever we need to move our presentation to other computers, both
the presentation and the folder with the movies and sound files must be copied together.
Otherwise, the presentation software will not play the audio or video. This is because
the presentation software loses its link to the specified file in the new computer.
On the left hand side, select one of the four types of hyperlinks:
• Internet: Used to hyperlink to a web page in the Internet, normally starting with
http://.
• Mail & News: Create or edit hyperlink for email or news address.
• Document: The hyperlink points to a document, sections of a document or to
another slide in the presentation.
• New document: The hyperlink creates a new document of the selected type.
The right part of the dialog box changes according to the choice made for the hyperlink
type. A full description of all the choices and their interactions is beyond the scope of
this chapter.
143
5.12 Adding action objects
In the presentation we can add actions, such as going to another slide, play audio or
video, etc. to an object in a slide. The object can be a shape like a text box or an image.
When the user clicks on it or points to that object, the action will be applied.
5.12.1 Adding a button to move to the first slide
1. Select a slide to insert a button.
2. Choose the Rectangle tool from the Drawing toolbar ( ) and drag it on the
slide to a suitable place such as the lower-right corner of the slide.
3. Right-click on the rectangle and select Interaction from the popup menu (Figure
5.29). The option Interaction is also available in the Slide Show menu. An
Interaction dialog box appears as in Figure 5.30.
144
5. Presentation Software
item Slide Show à Interaction. In the Interaction dialog box that appears (refer
Figure 5.30), select Go to document item for Action at mouse click setting as in
Figure 5.30. Then browse the sound or movie file that we want to play. Remember that
all the file types that are listed in the dialog box are not supported by the presentation
software.
145
5.14.1 Normal view
It is the main view for creating individual slides. It is used to design and format various
objects in the slide. The whole slide is visible on the screen when normal view is used.
This is the default view in a presentation.
146
5. Presentation Software
147
a. Changing the order of slides in a presentation using Slide Sorter view
To move a slide in a presentation using the Slide Sorter view,
1) Click on the slide. A thick border is shown around the slide.
2) Drag and drop it to the required position.
Suppose our aim is to move the fifth slide 'Days to Remember' to the last position.
Click on the slide, drag and drop it to the last position. After sorting, the Slide Sorter
view appears as in Figure 5.36.
148
5. Presentation Software
Click the Add button. The Custom Animation dialog box appears as in Figure 5.38.
Choose an effect from one of the pages of this dialog, and choose the speed or duration
of that effect. In our presentation 'Save Earth', select the title and click the Add button
from the Custom Animation pane. From the Entrance tab of the dialog box, select Fly
In and click OK.
There are five tabs in the Custom Animation pane as shown in Figure 5.38. Each tab
contains many effects. You can experiment with different effects.
149
We can add transitions, in Slide Sorter view or in Normal
view. To see the effect of a selection, we need to be in Normal
view and select the Automatic preview checkbox on the Slide
Transition page of the Tasks pane as in Figure 5.39.
150
5. Presentation Software
151
in black and white. For printing a presentation, choose File à Print to display the
Print dialog box (refer Figure 5.41).
Choose the required settings from the options and click the Print button. A preview of
the page to be printed is also available in this dialog box.
Check yourself
1. To remove a transition effect select ________ item in the list on the slide
transition page in the Tasks pane.
2. Define the term slide transition.
3. Give any three items present in the slide transition pane.
4. What do you mean by action button in a slide?
5. Write the steps to insert a transition effect to slide of a presentation you
have created.
Let us sum up
An effective presentation helps to convey ideas to the audience better than a mere
speech. Presentation software enables presenting the topic with the help of pictures,
sounds, videos and animations. Slides can be prepared and its content can be
formatted by inserting text boxes, setting the background colour and patterns. The
various built-in templates called master pages can be used to make the presentation
attractive. Formatting can be done to a particular area in the slide or to the entire
slide. The different styles of bullets and numbering available can be used if required.
Facilities to insert images or draw pictures on the slides are available in presentation
software.
Presentation software provides different slide views that support the presenter. Tables
inserted in a slide can be formatted using different built-in formats available or can
be customised. Movies and sound can be inserted in the slides. Different built-in
transition effects can be set to slides. Animations given to the objects in the slide
make a presentation attractive. We can create hyperlinks in a slide that provides
links to documents or websites. Various printing options are available to print the
slides, notes, handouts, etc.
152
5. Presentation Software
Learning outcomes
After the completion of this chapter the learner will be able to
• identify the use of presentation software and its features.
• create slides by entering text and formatting it.
• insert various objects like images, tables, audio, video, etc.
• make the slides attractive using transitions and animation.
• identify the different slide views and its use.
• familiarise with various printing options.
Lab activities
153
3. Discuss the different ways of inserting a sound file to a slide.
4. How can you play background music in presentation?
5. Explain how tables can be inserted into slides.
6. What do you mean by rehearse timings in slide transition?
7. Give the steps to insert action buttons in a slide. Explain its use.
8. What do you mean by hyperlink? How do you insert hyperlinks in a slide?
154