i.t. Part-b__ Unit 2(1)
i.t. Part-b__ Unit 2(1)
6 Analysing Data in
Spreadsheet
are living in the information age, characterized by shift from industrial production to one based on
mation and computerization. There is a large amount of data available and it keeps on increasing with
Ypassing year. This data has great potential to change the way we work, if it is effectively and efficiently
essed. Data analysis allows to extract useful information from data to () take decision based upon the
ysed data and (ii) expand knowledge on various subjects.
tofthe industries work based on data and require analysing it to:
Make informed decisions supported by facts.
ldentify performance issues.
data.
Visualize different dimensions of
better business relationships by understanding customer requirement(s).
Create
increase profits.
Identify ways to reduce cost and class, Calc provides several tools to
efectively
functions, studied in previous
ddition to formulas and Menubar.
grouped under Tools and Data menu on
ess data. They are CR9U3NHPEV
separate
ONSOLIDATING DATA allows to gather data spread across comes
important tool in analysing data, as it consolidate and aggregate
data. (t
Consolidation is an allows to
sheet.Consolidation tool in Calc sheets, for reviewing.
sheets into a single spread over many
summarize large data, which is box:
y to quickly Consolidate data dialog different sheets to
required to use from
options is of cell range,
in tollowing to the data,
in the form
be specified by
reference mouse
It is can
rce data ranges consolidate. Source data selecting range using
range of cells address was given a
name.
typing range, if the range consolidateddata,
selecting name of
the result(s) of
(first), where the
target cell beforeit gets
reference ofthe getstored. source data
Dy results It is the
manipulation, should applied on the
after is to be
function which
the
To select
163
nction to aggregate targetsheet.
copied to the
To consolidate data, use the following steps:
1. Open the file containing data to be consolidated.
2. Go to Data -> Consolidate on Menu bar to open Consolidate dialog window as shown
Consolidate
Eunction:
Sum
Consolidation ranges
Add Delete
Options
Help OK Cancel
CREATING SUBTOTALS
Whenever afunction is to be applied on part of a series (of numbers), it is done in two steps.
create group of cells
" apply common function(s) to the group.
automatically
In Calc, both these tasks can be performed using single command - Subtotal. t
and applies common function / formula to the grouped data.
164
methods available in Calc to work with
are
two
subtotals:
ere
SUBTOTALfunction Q DID YOoUKNOW?
aa Subtotalstool.
W
An array is a contiguous rectangular
block of information that Calc can
BTOTALunction manipulate in a formula.
has relatively limited methods for
function
calculates subtotal of
generating subtotal and works with only few categories of
data organized in single
e It
labelled column.
accessed using:
functioncan be
L. GotoInsert -> Functions on Menu bar to open Function Wizard
Hot Keys
window. Alternatively use Function Wizard icon on the Formula bar.
2.
Select Mathematical from Category option. Press Ctr+F2 to quckily open
3. Select SUBTOTAL from the list of functions as shown in Fig. 6.2. Function wzard wndow.
Function Wizard
Functions Structure
Function result
Search SUBTOTAL
165
SUBTO FunctionName
Function code for
Functlon Code AVERAGE
101 COUNT
102 COUNTA
103
MAX
104
MIN
105
PRODUCT
106
STDEV
107
STDEVP
108
019 0 SUM
VAR
110
VARP
111
contains another
In case, if a cell range, containing subtotal, is used to calculate subtotal subtotol
first one is not considered while applying the second subtotal.
Subtotal Tool
This is a more comprehensive option for applying functions (subtotal) to a group of data, as it
subtotal of up to three arrays arranged in columns (labelled). Further it groups data by category:
them automatically. Subtotal tool can be accessed using:
Go to Data-> Subtotals on Menu bar to open Subtotal dialog box (window).
To add Subtotal in a sheet:
1. Select the cell range on which Subtotal is to be applied. Do include heading (Label) in the
Calc can automatically identify the range if a single cell within the data is selected.
2. Open Subtotal dialog box having three tabs as shown in Fig. 6.3.
Subtotalr
analysis is the process of changing the values in the cell to see how those changes will affect the
hat-if applied in
tcome of
the formulas the spreadsheet. It allows people to recognize options andimpact of
data.
enging assumptions on that
cenarios are
saved set of cell values, having a name such as Best Case, Worst Case, Most Likely Case, used
Asheet can have several scenarios defined over it for same set of calculations, but each
Fthe-caBeutations.
cenario should
have some different value in the cells.
.ranarios can be switched over to analyse data by viewing outcome of each. Scenarios are useful
st the effects of different conditions on the calculations and avoid manual data entry for each
ndition.
reating Scenarios
Create a scenario, follow the given steps: Create Scenaio
1 Select the cells having values that will change Name of Scenardo
between scenarios. Sheet1,Scenario1
2 Go to Tools -> Scenarios on Menu bar to open Comn
Created by . on 161w2022 17:01:06
Create Scenario dialog box as shown in Fig. 6,4.
3. Type a name for the Scenario in "Name of
Scenario" field. For now, remaining fields, i.e.
Settings (properties) of Scenario, can have
default values. Settlngs
4. Click OK Display border 0COC0
button to close the dialog box.
e new Copy back
Scenario is automatically activated upon
eation. Use Steps 1to 4to create more scenarios OCopy ntire sheet
Prevent changes
the sheet.
Concel
Help
Mote
Alunique
ways choose a name for Scenario< which is
and helps in properly identifying it. Fig. 6.4 Create Scenario dialog box
167
modifed
2000
7900
Fig 65 frarnple ena riared
To switch between scenarios, press down arrow (in scenario colurnn) to display a list of all
choose from. Selet the desired scenario.
Activity
Achild gets pocket money per month to spend on Transport, Food, Stationary,
Help him in fixing the amount spend on each head, using scenarios.
1. Open a Calc file.
Errtertairtert, Me
2 In cell A1 enter "Expenses" and in cell 81 enter "Anount"
3. From Cell A2 to A6 enter the expense heads as given above.
4. In cell A7 enter Total.
5. Estimate some amount for each head and enter in cells B2 to B6.
6. In cell B7, calculate total of B2:86.
7. Create a Scenario for this estimation. Give it a suitable narne.
8. Create two more Scenarios, by changing some values in the range, and
giye a differet rame to er
9. Use cell displaying Total Amount to compare various scenarios, by switching
between them.
10. Save your work.
empty cells will either be a column, if the values are entered in a column or row otherwise
168
Operations on Menu bar to
-
Data
Multiple open Multiple Operations dialog box as shown in
to
F i6
G0
g.. 6
Mutiple operations
DefutSettings
Eormulae:
Help OK Cancel
ClickonFormulasfield and provide rereference of the cell, in which formula was typed (in step 1).
Rowinput cell or Column input cell, depending on which out of two, was used to enter values
AChoose type/ select cell reference to the variable used.
Inthe box,
Step2.
in
runthe tool.
-ClickOKto
manufacturing company. Cost of a toy produced by them is Rs 20, which they sell at Rs
consider a toy number
Let's
produce this toy, they expend
a fixed amount - Rs 100000 per year. What is the minimum
100. To Break-even?
toys sold to reach
di
Calc file.
1. Open a new 3. In Column B make following entries.
following entries.
2 In Column A make
Row number Entry
Row number Entry
1 100
1 Selling Price
2 20
2 Cost Price
100000
3
3 Fixed Cost 1000 (initial estimate)
4
4 Quantity Sold B4*(B1-82)-83
5 Profit
starting from 1000 to 5500
in step of 500.
range of values
cZitll, enter a
5. Give Profit to Column F. alternate
Label Quantity to column E and Table, where column E defines
define Result
6. E2 to F11. This will
Select cell range starting from
for the result.
values and column F is range of empty cells
Open Multiple Operations dialog box. - select B4.
8. In input cell field
Formulas field - select B5, in Column
9. Cick OK.
Help OK Cancel
Activity
Subject Enichment
Astudent wants to track his score for final exams. So
far, he has received scores for:
Exam Name Percent score
Term 1 81.2
Practicals 78
Yearly Exam
Final Score 84
Final score will be calculated as average of Percent scores for all exams conducted in the year.h
was to attain 85 as Final score. What is the minimum percent score he must get in Yearly Exam tb
his target?
170
CalcFile.
(si ColumnA. type Exam Name in row 1, Term 1in row 2, Half Yearly in row 3 and so on.
Score in row 1, 81.2 in row 2,
B type Percent
Column and so on.
sing willlook
like, Fig. 6.8.
sheet
our
Exam Name
2 Term 1 Percent Score
3 Half Yearty 81.2
|Term 2 79.2
5 IA 75.992
6 Pract. 78
Yearly Exam 1
8 Final Score
68
Fig. 6.8 Sample datesheet
g Solver
elaborated form of Goal Seek as it can work with more than one variable to produce the
e tool is an formula cell
in sheet, observing the impact on result and
R result. Solver modifies a set of input cells maximized
objective to find a set of input values for which the result is either minimized /
Sraint), with an optimization problems in scientific, engineering,
value. Hence, it is used to solve
POxmated to the target
S and other disciplines. unknown
allows to solve mathematical problems with multiple
tes, It can be said that Solver goal-seeking method.
and a set of restrictions on the variables, using and
Optimize result to, By changing cells
V
Solver parameters - Target Cell,
ng Conditions.
tool requires minimum four
done.
which goal seeking is
RCell is the desired output value i.e. the
outcome for
Maximum, Minimum or Value of
ize
result to provide options to chose
from -
whose value is to be
optimized
ef
Selleeece
Activity
Let's apply Solver tool to the activity solved using Goai Sbiect Encime
Seek tool.
1. Folow steps 1 to 4 to create the
sheet. Do not enter value 1 in cell B7.
2. Click on cell 88 and open Solver
dialog box.
3. Fill in the parameter values as Target
cell - B8, Optimize resuit to - Maximize
and Limiting Conditions. By changTE
Cell Reference Operator Value
87 100
87 =>
87 Sohe Status
Integer
Currert Sokutior
4. Press on Solve Button.
5. A Pop-Up window "Solver Status" will appear
displaying various
details as shown in Fig. 6.11. Stagnatior:
Runme
6. Press OK button to finish the process. Next pop up
will confirm
whether to keep or ignore the result as shown in Fig. 6.12.
Soving Resut X Fig 5 Sover stat
Solving sKcesstuily finished
Result 85
C
Trivandrum
Fig. 71 formula cell and bar
Either use Function Wizard or Name box, to access
will displaythe function name.
AVERAGE function as shown in Fig. 7.2. Input Line
Position cursor within parenthesis.
AVERAGE
AVERAGE
ROUNDUP
ROUND
SUM
HsUBTOTAL
HcoUNT
HMAX
Click on Accept icon in Input Line on Formula bar or press Enter key to finish. Average sheet will
now show the value from referenced cell.
Add a comma at the end of reference.
Repeat step 6, 7and 8 with sheet "yY2022" as shown in Fig. 7.4.
AVERAGE v X/AVERAGE(SY2021.81, SM20281)
Activity
Subject Ennichment
Find average for all regions in "CBSEresult" file using Cell
Referencing method.
178
reference using keyboard, follow given steps:
ereate worksheets.
boththe
Open
control to the worksheet in which cell reference is to be inserted.
Switch
cell to add reference.
Selectthe
Formula bar
Click = icon in
reference as 'file:///Path & File Name'#$'SheetName.cellReference.
Type cell
SINGHYPERLINKS
on some other
known as link, is an embedded command that allows to jump (transfer control)
link, also another piece of text, an
section of same document. The Command can be embedded in a
ument or to
link is a clickable pointer to a resource.
anicon or a graphic. In simple terms
e within current sheet. This
hyperlink to jump to a resource at a different location from
allows to use
tioncan be:
worksheet.
in same sheet or
in another worksheet.
computer or network.
different type of resource on local
Internet.
a page on
hyperlinks
tive and Absolute used in sheet to connect adata source- Relative
and Absolute.
which can be type of link
are two types of hyperlinks to current working location. This
will specify address of resource with respect information to
ive hyperlink
with any necessary folder(s) name. Remaining
resource, prefixed resource starting from the current
ins the name of target tells how to reach the
browser. A relative link
to resource is added by documents' - (Start or Target), location is changed.
work if any of the
ion. Arelative link will not includes path name, folder name and target
resource. It
complete address of the location. Thistype of linking
lute hyperlink gives resource regardless of any
name. Absolute link tells how to reach the
Urce
operating system YOUKNOW?
onger works on some of the absolute link Q DID
An
macóS) and on web as well. (short form
pointer
of Hyperlink) is clickable Locator)
resource is moved. A Link Resource
Stop working if the target to a resource and
URL (Uniform
the resource.
allows to save URL's: is unique address of
Dpening a Hyperlink
LibreOffice Security option.
Currents address
the file
on the settings made in
Dpeningtext hyperlink is dependent butFor tofirstn,
we checked using: options
LibreOffice -> Security -> Security Options and Warnings ->
" Tools > Options >
180
one of
the following:
hyperlink carry out
epen cursor positioned over the hyperlink.
Ctrl-click with
with the cursor positioned over the hyperlink
Left-click
Context menu's Open Hyperlink option by right clicking on hyperlink
Use
DATA
KING TO EXTERNAL other type) can be inserted as a link
into a sheet. Calc
CSV, Calc or any
from another document (HTML,
linking:
des two ways of
box.
Using External data dialog
Using Navigator. external
and the name of range / table is known, then using
named tables from the
file contains named ranges or linking. In case, if the range or table is to be selected
option for
dialog will be a quick and easy
easier.
then using Navigator will be
External Data dialog External Data
external data:
ollowing steps to insert a link to URL of BternaData Sorce
data is to be inserted Browse..
Open sheet where external
insertion of external
Select the cell from where
range or table the cell
data should begin. In case of left, cells value.
Selected will hold target sheet's, top
Data on Menu bar to
G0 to Sheet -> Link to External
shown in Fig. 7.6.
open External Data dialog box as
ie seconds
ype reference of the target resource or typetrom OUpdate every. 60
select a source file
Uress of source file, or Cancel
Browse QK
ne file selection dialog accessed through
drop-down list.
Help
button, r select an entry from the Data dialog
Fig. 7.6 External
on completion.
St two cases, press Enter key 181
5. Depending on which type of external file is selected for
dialog. If external file is HTML, insertion, Calc
(i) Import Options dialog box is displayed on screen. Choose
recognize special numbers.
(ii) Click OK to get the list of Available Tables / Ranges loaded inte
import
of the dialog box. the
(ii) Select the named range(s) or table(s) to be inserted. Use Ctrd
to
Available
(iv) Click on OK.
6. If external file is CSV - Text Import dialog boX
select more
is displayed on screen.
cSV_all in the Available Tables/ Ranges area of the Click Ok
External Data on the dian
7. If external file is Calc or
Microsoft Excel, Calc
Available Tables/Ranges area of External Data dialogpopulates the diEtenalalog.Dta
of range names that are with the list
defined in source file.
range name to be inserted and click Ok as Select the desired
8. For all external data
shown in Fig, 7.7. fle/ /D/GolBrothe Jdasag
sources, specify the data refreshing
frequency, defined in seconds. Meess
9. Click OK to close the External
data.
Data dialog and insert the linked
Calc adds the new entry to the
linked areas list in Navigator,
double-clicking this entry will highlight the
as shown in Fig. 7.8. linked data in sheet
Hdp
Fig. 7.7 Spreadsheg
A2A7
A
C Nlgtor
Lerm 1 Colurnn: A
67
Half Yearly Row: 2
4 Term 2
S9
5 LA
6 Pract 45 heets
34
K Range names
7 Yeary Bam
85 Database ranges
Linlced areas
9
10
Images
S oLE objects
Fig. 7.8 The linked area Camments
highlighted
Using Navigator
Navigator dialog bOx can be accessed using any Hot Keys
" View ->
one of the following:
Navigator on Menu bar.
" Navigator deck on Press F5 to qun
Sidebar use. Navigator dabg à
Use following stepsto insert a
link to external data:
1. Open Calc
spreadsheet in which external data is to
be inserted (Target
2. Open other document). be HTM.,
document, from which external data will be picked. This document
spreadsheet created in any software. When working with HTML file, Calc displays can
ImportOptio
box before opening the file.
182
nthe target document, open Navigator dialog box as shown
Nagtor
nFig. 7.9.
ColumnA
the bottom of Navigator window, select the document, from
Row. 1
hich external data is to be picked, using drop-down list. Click on +
con at the left of the Range namnes field to view the names, if they 9 # Sheets
Range names
are not visible as shown in Fig. 7.10 HDatabase ranges
P unked areas
Navigator Image
Column: A OLE objects
Comments
Row. 1 C Drawig objects
Sheets
e Range names
am
Fig. 7.10 Navigator with range names selected Fig. 7.9 Navigator window
Next select Insert as Link option as shown in Fig. 7.11 from the Drag Mode menu as shown in Fig. 7.12.
Navigator X
Column: A
Row: 1
Inset as Hyperdink
Insert as Link
Insert as Copy
test
Drag Mode Database ranges
Fig. 7.12 Drag mode Fig. 7.11 'insert as link in Navigator
Select the desired Range names /Database ranges entry and drag it from Navigator into the Target
document, to the cellfrom where top left cellof the data range should be inserted.
Reselect the target document in the drop-down menu. This time click on +icon next to Linked areas
to see the inserted entries.
of data sourte
Regstering DataSource
LibreOfice about - type and location
inntom
soure mezns to
e Dee
Rerire
ngnceunedabaet
G o B r C s 2 l r e N e e w Dtabasec
eeWriteiew Dutabase
Beoty Conce
2. Pren Mew button to open Create Database Link dialog box as shown in Fig. 7.14.
Browse..
Conce
.odbformat
not in format databa baed on the origjnal datatae 'in dBSE) rir
ster
dta
creste a "odb
will
steps
Menu bar to open Database Wizard as shon in Fig 7.15
-> Database on the
New
>
File
to
Ctatat
Ernid
V EXERCISES