Consolidating Data
Consolidating Data
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.
• 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.
Data > Consolidate option that will open Consolidate dialog box.
The Subtotal tool in Calc creates the group automatically and applies common functions like sum,
average on the grouped data. One can use any type of summary function for each column as
per the requirement of data analysis. It can group subtotals by using category and sorts them in
ascending or descending order so that one need not to use filters.
Click on Data menu and choose Subtotals (Data>Subtotals) option.
Goal seek determines what values needs to be input in a cell to achieve the described result in a
formula cell as it allows varying the value for one cell.
Place the cursor in the formula cell, choose Tools > Goal Seek.
Electronic spreadsheet (advanced) using libre office calc 93 Observe that outline to the left of the row
numbers which is inserted after performing the subtotal tool. This outline shows the hierarchical
structure which can be used to show or hide different levels by clicking on the group indicators ‘+’ sign
to expand and ‘–’ sign to collapse the data. You can hide the low-level details and just look at the final
totals and grand totals.
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. Notes Create a sheet as shown in Fig. 4.16 and
then calculate the average of marks subject wise on the basis of class and stream. Also, try out another
function Count to calculate the number of students in each subject.
What-if Scenarios
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.
Tools>Scenarios will open scenario dialog window.
Macro
A macro is a single instruction that executes a set of instructions. These set of instructions can be a
sequence of commands or keystrokes that can be used for any number of times later. A sequence of
actions such as keystrokes and clicks can be recorded and then run as per the requirement.
It is important to know that by default the macro recording feature is turned off when LibreOffice is
installed on your computer. Hence, to record a Macro ensure that the macro recording is enabled.
Macro recording can be enabled using the Tools option on the main menu bar by selecting Tools >
Options > LibreOffice > Advanced. Observe the Optional Features. There are two options which are not
check marked. Put the checkmark on the option “Enable macro recording”.
To Run A Macro open the Macro selector dialog box by clicking Tools-> Macros-> Run Macro.
Macro as a Function
Consider a situation wherein you need to perform calculations that are repetitive in nature. Assume that
the same formula needs to be applied to different data in different sheets and there is no predefined
function for it. In such a situation will it not be convenient if we could create a macro that performs the
calculations? It will save us the effort of remembering and typing the formulas. It is possible to do so if
we use Macro as a function. Instead of writing instructions in between Sub and End Sub, we
can write instructions in between Function and End Function. A function is capable of accepting
arguments or values. It can perform operations on the arguments, perform calculations and return the
result.
A relative hyperlink stores the location with respect to the current location. For example:
Admin\Downloads\ try.ods is a relative hyperlink as it is dependent on the current location and thus the
folder admin is searched where the active spreadsheet is being stored. 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 active spreadsheet is stored.
Creating Hyperlinks
It is possible to hyperlink a sheet of other spreadsheet document in a spreadsheet. Suppose, you have to
hyperlink a Result sheet of “Result-X-A” spreadsheet document in the “Result-X-B” spreadsheet
document, then follow the following steps:
Step 1. Open the Result-X-B spreadsheet document.
Step 2. From the main menu, select and click on Insert > Hyperlink.
Step 3. To insert the spreadsheet document, click on the Document on the left pan of dialog box,
then to select the spreadsheet document, click on the button located after the Path. Select the
required document. In our case we select the spreadsheet document “Result-X-A”.
Step 4. Then click on the Target button to choose the sheet which is to be hyperlinked. Target in
Document helps to specifically choose a target in the document such as sheet, tables, frames,
images, headings and so on. Here in our case we will select the sheet Result as shown in
Step 5. Click on Apply and Close button to exit the Target Document window. Step 6. Enter the text in
the Text box to assign the hyperlink to that text. In our case we have entered the text as “Result-X-A” So
the hyperlink will be assigned to the text “Result-X-A”.
Sharing Spreadsheet
Sharing a spreadsheet is just like a teamwork to work in collaboration with
other users. The following are the steps to share the spreadsheet.
Step 1. Open a new spreadsheet and save it with some name.
Step 2. Select and click on Tools > Share Spreadsheet from main menu bar. This will open the Share
Document dialog window which can be used to enable or disable sharing option.
Step 3. Click on the checkbox “Share this spreadsheet with other users” to share the spreadsheet and
click on OK button. This will open the confirmation dialog window to save the spreadsheet to activate
the shared mode.
Step 4. Click on Yes to continue.
Step 5. Once the spreadsheet is saved, the name of the spreadsheet in the title bar will display (shared)
along with the name of the spreadsheet.
Opening a Spreadsheet
To open a shared spreadsheet, follow the following steps.
Step 1. While opening a spreadsheet which is a shared spreadsheet, a message will appear
that the spreadsheet is in shared mode and some of the features are not available to use in this
spreadsheet.
Step 2. Click on OK button to open the spreadsheet in shared mode.
Step 3. If you don’t want this warning option to be displayed again, then check the mark in the
checkbox ‘Do not show warning again’.
Step 4. Once the spreadsheet is saved in shared mode, some of the features will become unavailable
for used.
Step 5. Observe the Edit menu on the main menu bar that shows Undo, Redo, Repeat, Paste, Links to
External files, ImageMap, Object are not available for use.
Recording Changes
This feature of LibreOffice Calc provides different ways to record the changes made by one or other
users in the spreadsheet. While recording the changes, the spreadsheet will turn off its shared feature.
Follow the following steps for recording changes:
Step 1. To enable the Record changes, first disable the shared mode of spreadsheet.
Step 2. To disable the shared mode, open the spreadsheet “Test.ods”.
Step 3. Select and click on Tools > Share Spreadsheet from main menu bar. This will open the
Share Document dialog window. Remove the check-mark on the check box, “Share this spreadsheet
with other users”, and click on OK button. It will display the Confirmation dialog window to disable the
sharing mode. It will give warning to disable the shared mode of a spreadsheet .
Click Yes to continue.
Step 4. Observe that (shared) word from the name of the spreadsheet has disappeared from the title bar
of the spreadsheet.
Step 5. The feature of Track Changes > Record under Edit menu is turned ON which was
disabled and not working in the shared spreadsheet.
Step 6. Now to record track changes, click on Edit > Track Changes > Record as.
Step 7. Now change name Sia to Sita in cell B5.Observe that the border colour of the cell in which
data has been changed turns to red. Also, the changed cell will display thedescription if the cursor
moves to the changed cell. Recording Track changes under Edit menu enabled
Displaying the information of changes recorded under track changes
Confirmation dialog window to disable sharing mode of spreadsheet
Step 8. Thus, by looking at the spreadsheet, other users can easily know the changes made in the
cell and the changes made by whom.
Comparing Documents
Instead of merging two spreadsheets, one can compare the two spreadsheets by comparing the
documents. Follow the following steps to compare the documents. Let us compare the two earlier
created spreadsheets Test.ods and Test1.ods
Step 1. Open the spreadsheet file Test.ods. Click on Edit > Track Changes > Compare Document .
Step 2. This will open the Compare to dialog window, which will allow to open the spreadsheet to be
compared. Select the spreadsheet file Test1.ods and click on Open button.
Step 3. This will open the Manage Changes dialog window to accept/reject the changes. Click on Accept.
Step 4. Finally click on Close button to close the Manage Changes dialog window.