unit-2 IT
unit-2 IT
Data analysis involves extrac ng useful informa on from data to make informed decisions.
LibreOffice Calc is a powerful tool for data analysis, allowing users to retrieve, correlate, explore, and
visualize data to iden fy trends and rela onships. It includes various func ons such as Consolida on,
Grouping, Scenarios, Goal Seek, and What-If Analysis to perform advanced data manipula ons.
2. Consolida ng Data
Consolida ng data is the process of combining informa on from mul ple sheets to summarize it in
one place.
The first column should be the primary column for consolida on.
4. Select the Func on: Default is "Sum". Choose the desired func on.
5. Select Data Range: Choose the source data range from the sheets to be consolidated.
8. Op ons: Choose how to consolidate by row/column labels and whether to link the source
data.
9. Click OK to complete.
Example: Consolida ng Sales Data from two branches (ABC_Branch and XYZ_Branch).
Grouping Data:
Data > Group and Outline: Groups rows or columns for be er data organiza on.
Subtotals:
Subtotals are used to apply summary func ons (e.g., Sum, Average) to grouped data.
Example: Grouping and calcula ng the average marks for students of different classes.
4. What-If Scenarios
What-If Scenarios allow you to explore different alterna ves based on changing condi ons.
1. Select the cells that contain the values you want to change (e.g., Loan Amount, Number of
Years).
4. Repeat for other scenarios (e.g., LAmt_2, LAmt_3) with different values.
Example: Predic ng loan EMI, total amount paid, and interest for different loan amounts and
dura ons.
5. Goal Seek
Goal Seek helps you find an input value that results in a specific output (reverse calcula on).
3. In the Formula Cell box, specify the formula cell (e.g., B7 for average marks).
4. In the Variable Cell box, select the input cell (e.g., B6 for marks in the 5th subject).
The What-If Analysis Tool allows you to test different input values and see the results, using a drop-
down list for output.
1. Create an input data range and a formula that calculates the result.
Example: Calcula ng profit based on varying the number of units sold and selling price.
By mastering these features, you can perform powerful data analysis and make informed decisions in
LibreOffice Calc.
Effec ve Notes on Using Macros in LibreOffice Calc
Macros in LibreOffice Calc help automate repe ve tasks such as entering the same data, applying
consistent forma ng, or performing calcula ons. This eliminates manual errors and ensures
standardiza on across documents. Macros can save me and increase produc vity by automa ng
ac ons such as applying the same formula, forma ng, or typing specific content like addresses,
headings, etc.
2. What is a Macro?
A macro is a set of instruc ons that automates tasks in LibreOffice Calc. It records keystrokes, mouse
clicks, and other ac ons to be executed later on demand. This is useful for tasks performed
repeatedly in the same manner.
3. A er enabling, the Record Macro op on will appear under Tools > Macros.
4. Recording a Macro
2. Perform Ac ons: Execute the ac ons you want to record (e.g., applying forma ng, entering
text, etc.).
3. Stop Recording: Once the ac ons are completed, click Stop Recording.
4. The Basic Macros dialog appears, allowing you to save the macro.
o Size: 14
o Color: Blue
5. Saving a Macro
Save Macro: A er recording, choose the library where the macro will be stored (e.g.,
Standard Library).
Name the Macro: By default, the macro name is Main. You can rename it (e.g.,
FormatHeading).
Note: If you use the same name for mul ple macros, the new one will overwrite the previous one.
6. Running a Macro
7. Edi ng a Macro
The recorded macro can be edited in BASIC programming language. To view and edit the code:
2. The IDE (Integrated Development Environment) will open, showing the code for your macro.
3. You can modify the code, but only if you are familiar with BASIC programming.
You can organize your macros into libraries and modules for be er management.
1. Go to: Tools > Macros > Organize Macros > LibreOffice Basic.
4. Sub Main
5. MsgBox "Hello"
6. End Sub
Macros can also be wri en as func ons, which accept arguments, perform calcula ons, and return
results.
1. Data Input: Enter the room's length and width and the le's length and width in a sheet.
o End Func on
3. Use the Func on: In the sheet, you can now use the func on =CalcTiles(length, width,
leLength, leWidth) to calculate the number of les needed.
Libraries, Modules, and Macros: A library is a collec on of modules, and a module contains
one or more macros.
Code in Macros: A macro's code begins with Sub and ends with End Sub. For func ons, it
begins with Func on and ends with End Func on.
Create a New Library/Module: Tools > Macros > Organize Macros > LibreOffice Basic
By using macros, you can streamline repe ve tasks, improve accuracy, and enhance efficiency when
working with spreadsheets in LibreOffice Calc.
. Se ng Up Mul ple Sheets
o Via Context Menu: Right-click a sheet tab > Select Insert Sheet.
Rename a Sheet:
o Mouse Method: Click the target cell in another sheet while typing the formula.
Drag to Fill:
o Fill Handle: A er typing the formula for one student, drag the fill handle (bo om-
right corner of the cell) to copy the formula down for other students.
o Use the following format to refer to a cell from a different spreadsheet file:
'file:///C:/Path/To/File/SpreadsheetName.ods'#$SheetName.CellAddress
Example: 'file:///C:/Documents/Result-X-A.ods'#$Result.C4
o Steps:
Create a Hyperlink:
o Steps:
Edit Hyperlink:
Remove Hyperlink:
Open Hyperlink:
o Ctrl + Click on the hyperlinked text to open the linked document or sheet.
o Steps:
o Dialog Box: Select the data range (e.g., HTML table) from the webpage.
o Menu Op on: Tools > Op ons > LibreOffice Base > Databases
o Steps:
1. Click New to create a database link.
Commands Recap:
1. Insert Sheet:
2. Referencing Cells:
3. Formulas:
4. Insert Hyperlink:
These commands and steps help automate tasks, improve accuracy, and ensure that your data
remains up-to-date across mul ple sheets or files. By referencing and linking, you reduce manual
entry errors and save me when processing large datasets.
1. Sharing a Spreadsheet
Sharing enables collabora on with mul ple users edi ng the same spreadsheet simultaneously.
2. Enable Sharing:
o Click OK.
3. Confirm Sharing:
OK (to confirm)
1. When opening, a message will inform you that the spreadsheet is in shared mode.
2. Click OK to proceed.
3. Op onally, check "Do not show warning again" to disable the warning in the future.
1. A er edi ng, save the file. If other users have made changes simultaneously, a message
appears.
2. If there’s a conflict, the Resolve Conflict dialog will appear, and users must resolve it before
saving.
o Go to Tools > Share Spreadsheet and uncheck "Share this spreadsheet with other
users". Confirm with Yes.
o A er disabling sharing, go to Edit > Track Changes > Record to turn on change
tracking.
3. Making Changes:
o Edited cells will show a red border and a descrip on of changes when hovered over.
Edit > Track Changes > Record (to start tracking changes)
Adding Comments:
Inser ng Notes:
1. Right-click the cell where you want to insert a comment, then select Insert > Comment.
Forma ng Comments:
2. Use the forma ng op ons (e.g., font, background, borders) to adjust the appearance of the
comment box.
Once all users have edited the spreadsheet, the final review involves accep ng or rejec ng changes.
1. Show Changes:
o Go to Edit > Track Changes > Show to view all changes made by users.
2. Manage Changes:
o To accept or reject changes, select Edit > Track Changes > Manage.
o In the Manage Changes window, click on a line to accept or reject it. You can also use
Accept All or Reject All bu ons.
2. Merge Document:
3. Accept Changes:
o In the Manage Changes window, click Accept All to merge changes from both
spreadsheets.
Edit > Track Changes > Merge Document (to start merging)
2. Compare Document:
3. Manage Changes:
o Accept or reject the changes using the Manage Changes dialog window.
Edit > Track Changes > Compare Document (to start comparison)
Edit > Track Changes > Show – Show all tracked changes.
Edit > Track Changes > Merge Document – Merge two documents.
Edit > Track Changes > Compare Document – Compare two documents.
These commands help manage the collabora ve process, from sharing and tracking changes to
finalizing and merging documents.