IT Spreadsheet
IT Spreadsheet
Consolidate is a function used to combine information from multiple sheets of the spreadsheet
into one place to summarize the information. It is used to view and compare variety of data in a
single spreadsheet for identifying trends and relationships.
You need to check the following before consolidating data.
• Open each sheet in the spreadsheet and check that the data types must match which you want
to consolidate.
• Match the labels from all the sheets which are used for consolidating.
• Enter the first column as the primary column on the basis of which the data is to be
consolidated.
Link to source data is checked to make the modification automatically in the consolidated
(target) sheet while making any changes in the source data.
Groups and Subtotals Group and Outline in Calc is used to create an outline of the selected
data and can group rows and columns together so that one can collapse (-) to hide it or expand
(+) it using a single click on it. Select the data to be grouped, click on Data>Group and Outline.
Then choose Rows to group the data on the basis of rows or columns to group it on the basis of
columns.
The Subtotal tool in Calc creates the group automatically and applies common functions like
sum, average on the grouped data.
If you want to remove the outline feature from the sheet at any point of time then it is possible
by just clicking on Data > Group and Outline > Remove Outline.
What-if scenario is a set of values that can be used within the calculations in the spreadsheet.
A name is given to the scenario and several scenarios can be created on the same sheet. It is
used to explore and compare various alternatives depending on changing conditions. It can be
used in the beginning of any project to optimise the output. This tool is used to predict the
output while changing the inputs which reflects the output and thus one can choose the best
plan of action based on it.
Goal Seek It general we fill in the values in the cells and then create formula on these values to
get the required result. To predict the output, we keep on changing all the input values to obtain
the desired output
(a) Consolidating data (b) Goal Seek (c) Subtotal (d) Page layout
2. Which of the following office tool is known for data analysis?
(a) Writer (b) Calc (c) Impress (d) Draw
3. Which of the following operations cannot be performed using LibreOffice Calc?
(a) Store and manipulate data (b) Create graphical representation of data (c) Analysis of data (d)
Mail merge
4. What is the extension of spreadsheet file in Calc?
pg. 1
(a) .odb (b) .odt (c) .odg (d) .ods
5. The default function while using Consolidate is ____________.
(a) Average (b) Sum (c) Max (d) Count
6. Group by is used in _____________ tool to apply summary functions on columns. (a)
Consolidate function (b) Group and Outline (c) What-if scenario (d) Subtotal tool
7. Which tool is used to predict the output while changing the input?
(a) Consolidate function (b) What-if scenario (c) Goal seek (d) Fine and Replace
8. Which of the following is an example for absolute cell referencing? (a) C5 (b) $C$5 (c) $C
(d) #C
9. _____________ analysis tool works in reverse order, finding input based on the output. (a)
Consolidate function (b) Goal seek (c) What-if analysis (d) Scenario
A macro is a set of commands or keystrokes that are stored for later use. An example of a
simple macro is one that enters your address into an open document. You can use macros to
automate both simple and complex tasks. Macros are very useful when you have to repeat the
same task in the same way.
The simplest way to create a macro is to record a series of actions through LibreOffice’s user
interface. LibreOffice saves recorded macros using the open-source LibreOffice Basic scripting
language, which is an implementation of the well-known BASIC programming language. Such
macros can be edited and enhanced after recording using the built-in LibreOffice Basic
Integrated Development Environment (IDE).
The most powerful macros in LibreOffice are created by writing code using one of the four
supported scripting languages (LibreOffice Basic, BeanShell, JavaScript, and Python). This
chapter provides an overview of LibreOffice’s macro facilities, mostly focused on its default
macro scripting language, LibreOffice Basic.
The Macro records all the keyboard and mouse actions but the following actions are not
recorded.
• Opening of windows
• Actions carried out in another window than where the recording was started.
• Window switching
• Actions that are not related to the spreadsheet contents. For example, changes made in the
Options dialog, macro-organizer, customizing. Fig. 5.2: Record Macro option after enabling
macro
• Selections are recorded only if they are done by using the keyboard (cursor traveling), but not
when the mouse is used.
• The macro recorder works only in Calc and Writer.
pg. 3
The name of the macro by default is Main and is saved in the Standard Library in Module1.
Standard Library A Library is a collection of modules which in turn is a collection of macros.
If all the macros will be given the same name then they will overwrite the previous Macro
created by that name.
Rules for naming a Macro, Module or a Library: notes While naming a Macro, Module or a
Library the name should :
• Begin with a letter
• Not contain spaces
• Not contain special characters except for _ (underscore)
– The code of a macro begins with Sub followed by the name of the macro and ends with End
Sub .
Macro as a Function
. A function is capable of accepting arguments or values. It can perform operations on the
arguments, perform calculations and return the result.
Syntax : simple function
Function functionname()
Functionname()=”value”
End function
1. Macro Recordings can be enabled from the ________ option in the menu bar.
(a) Sheet (b) Data (c) Tools (d) Window.
2. Which of the following is an valid Macro Name?
(a) 1formatword (b) format word (c) format*word (d) Format_word.
3. Which of the following Libraries contains modules with prerecorded macros and should not
be changed?
(a) My Macros (b) LibreOfficeMacros (c) Untitled1 (d) Test.
4. Identify which of the following is a programming Language?
(a) Calc (b) BASIC (c) Writer (d) Macro.
5. The Module can be executed from the IDE by pressing _________________.
(a) F3 (b) F4 (c) F5 (d) F6
5. Which of the following is the default name of the Macro _______________.
(a) Default (b) Main (c) Macro1 (d) Main_Macro Step
6. Use fill handle to drag the function for other cells.
1. What is a Macro? List any two real life situations where they can be used.
A macro is a sequence of instructions or commands that automate repetitive tasks in
software applications. In other words we can say that a macro is a single instruction that
executes a set of instruction.
Here are two real -life situations where macros can be used
1.Data entry
2.Document Formatting
5. List the rules that should be kept in mind while naming a macro.
Rules for naming a Macro, Module or a Library: notes While naming a Macro, Module
or a Library the name should :
• Begin with a letter
• Not contain spaces
• Not contain special characters except for _ (underscore)
Disadvantages of Macros
1. Security risks – Macros can be used to spread malware or execute malicious code,
posing a risk to the security of a device or network.
2. Complexity – Advanced macros may be complex and require specialized knowledge or
programming skills to create and maintain.
3. Compatibility issues – Macros may not be compatible with all devices or applications,
limiting their utility.
4. Dependence – Relying heavily on macros can make users less proficient in performing
tasks manually, potentially hindering their ability to adapt to new situations.
5. Limited functionality – Macros are limited to performing predetermined tasks and may
not be able to handle unexpected or complex situations.
pg. 6
• you can right click anywhere on the sheet tab and select Insert sheet option from the
drop-down list displayed It gives us a choice to put the new sheet, assign the name of the
sheets, delete a sheet and so on.
Note: Insert Sheet dialog box can be invoked from the menu option Sheet > Insert Sheet
Target in Document helps to specifically choose a target in the document such as sheet, tables,
frames, images, headings and so on.
Value Description
Opens the linked document in the same frame as it was clicked (this is
_self
default)
_top Opens the linked document in the full body of the window
To open the hyperlinked sheet, press the Ctrl key and click on the hyperlinked word
Editing a Hyperlink: To edit an existing link, place the cursor anywhere in the link and right
click the hyperlink Click on Edit Hyperlink..., the Hyperlink dialog box will be displayed,
where you can make changes to the hyperlink.
On clicking the Remove Hyperlink option, the link will be removed from the text and thus it
will not point to any other location.
Linking to External Data
pg. 7
The versatility of a spreadsheet allows us to insert tables from HTML documents into Calc. To
insert the tables from a HTML document, we can use the External Data Dialog box. Select
Sheet > Link to External Data. Step 4. The External Data dialog box
Type the URL of the source document or select it from the drop-down list if it is listed and press
enter.
A dialog box is displayed to select the language for import Selecting Automatic shows data in
the same language as in the webpage.
Linking to Registered Data Sources
The data source needs to be registered with LibreOffice. Registration is a means to inform
LibreOffice about the type of data source and the location of the file.
To register a data source that is in *.odb format, follow the steps given below.
Step 1. Select Tools > Options > LibreOffice Base > Databases. The Options - LibreOffice
Base-Databases dialog box appears.
Step 2. Click the New button to open the Create Database Link dialog box as shown in Fig.
6.21.
Step 3. Enter the location of the database file, or click Browse to open a file browser and select
the database file.
Step 4. Type a name to use as the registered name for the database and click OK. The database
is added to the list of registered databases.
Note – The OK button is enabled only when both fields are filled in.
A. Multiple choice questions
1. Insert Sheet dialog can be invoked from _______________.
(a) sheet (b) insert (c) tools (d) Windows
2. ______________ refers to cell G5 of sheet named My Sheet.
(a) $My Sheet.’G5’ (b) $My Sheet_’G5’ (c) $ ‘MySheet’.G5 (d) $ ‘MySheet’_G5
3. The path of a file has ____________ forward slashes.
(a) four (b) three (c) two (d) one
4. Which of the following feature is used to jump to a different spreadsheet from the current
spreadsheet in LibreOffice Calc?
(a) Macro (b) Hyperlink (c) connect (d) Copy
pg. 8
2. If ‘sales’ sheet has a reference to ‘cost’ sheet then any changes made to ‘cost’ sheet will be
reflected in the sales sheet as well. True
3. It is not possible to link a sheet as a reference in another sheet. False
4. We can insert data from a table created on a web page into a spreadsheet. True
5. A hyperlink once created on a sheet cannot be deleted. False
A relative hyperlink stores the location with respect to the current location. For eg,
Admin\downloads\try.ods is a relative hyperlink as it is dependent on the current location. If the
complete folder containing the active spreadsheet is moved the relative link will still be
accessible as it is bound to the source folder where the actve spreadsheet is stored.
pg. 9