← Back to Home

LibreOffice Calc Practicals

Master spreadsheet skills with these comprehensive practical exercises

Practical 1: Data Consolidation

Objective: Combine data from two sheets into one summary sheet by items.

Step 1: Prepare the Data

  1. Create a new sheet named Jan:
    • Click the + icon at the bottom sheet tab
    • Right-click the new sheet and rename to "Jan"
Creating new sheet
  1. Enter sales data with columns: Items, Quantity, Amount
Jan sheet data
  1. Create another sheet named Feb with similar data
Feb sheet data

Step 2: Create a Consolidated Sheet

  1. Insert a new sheet and rename it Consolidated
  2. Click in cell A1 (where combined data will appear)
Consolidated sheet

Step 3: Open the Consolidate Dialog

  1. Go to menu: Data → Consolidate...
  2. The Consolidate dialog box will open
Consolidate dialog

Step 4: Add Source Ranges

  1. Click inside the Source data range box
Source data range box
  1. Go to the Jan sheet → select the data range (e.g., B8:D11)
Select Jan range
  1. Click Add button
Add Jan range
  1. Go to the Feb sheet → select data range (e.g., B5:D8)
  2. Click Add again
Add Feb range

Step 5: Configure Settings

  1. Under Function, select Sum
Select Sum function
  1. Verify "Copy results to" points to Consolidated sheet
Output location
  1. Click OK
Calc will automatically combine data from both sheets, match items by name, and sum quantities/amounts!
Final consolidated result

Practical 2: Macro Function

Objective: Record and run a simple macro that performs formatting automatically.

Step 1: Open and Save Spreadsheet

  1. Open LibreOffice Calc
Open Calc
  1. Save as Macro_Function.ods
Save file
  1. Enter sample data in the sheet
Sample data

Step 2: Enable Macro Recording

  1. Go to Tools → Options → LibreOffice → Advanced
  2. Check "Enable macro recording (limited)"
  3. Click OK and restart LibreOffice Calc
Enable macro recording
This step is crucial! Macro recording must be enabled first.

Step 3: Record the Macro

  1. Select Tools → Macros → Record Macro
Record macro menu
  1. A small floating recorder window will appear
Recorder window
  1. Perform formatting actions:
    • Select cells A1:B1
    • Make them Bold
    • Apply background color
    • Center align the text
  2. Click Stop Recording

Step 4: Save the Macro

  1. In the dialog, choose settings and click Save
Save macro dialog

Step 5: Run the Macro

  1. Go to Tools → Macros → Run Macro
  2. Navigate to your macro and click Run
Run macro
Your header formatting is applied automatically!

Practical 3: Multiple Operations (Student Grading)

Objective: Create a complete student grading system with marks, totals, percentages, grades, and ranks.

Grading Scale

  • ≥75% → A1
  • 60-74.99% → A2
  • 45-59.99% → B1
  • 33-44.99% → B2
  • <33% → Fail

Formula 1: Total Marks (Column G)

In cell G2:

=SUM(B2:F2)
Total formula

Drag down through G11:

Total filled down

Formula 2: Percentage (Column H)

In cell H2:

=ROUND(G2/500*100,2)
Percentage formula

Formula 3: Grade (Column I)

In cell I2 (nested IF):

=IF(H2>=75,"A1",IF(H2>=60,"A2",IF(H2>=45,"B1",IF(H2>=33,"B2","Fail"))))
Grade formula

Formula 4: Rank (Column J)

In cell J2:

=RANK(G2,$G$2:$G$11,0)
For LibreOffice use RANK; for Excel use RANK.EQ
Rank formula

Formula 5: Remark (Column K)

In cell K2 (to flag if any subject < 33):

=IF(OR(B2<33,C2<33,D2<33,E2<33,F2<33),"Needs Attention","OK")
Remark formula
Complete grading system with automatic calculations!

Practical 4: Create Subtotals

Objective: Sort sales data by category and use Subtotal feature for category-wise totals.

Step 1: Enter Sales Data

Sales data

Step 2: Sort the Data

  1. Select your data range
Select data
  1. Go to Data → Sort
Sort menu
  1. Choose Category as Sort Key and click OK
Sort dialog
Sorting by grouping column is REQUIRED before applying subtotals
Sorted data

Step 3: Apply Subtotals

  1. Select the data range again
Select for subtotals
  1. Go to Data → Subtotals
Subtotals menu
  1. Configure: Group by Category
Group by category
  1. Calculate subtotals for Sales, function Sum
Subtotal settings
  1. Click OK
Apply subtotals
Calc inserts subtotal rows for each category plus Grand Total!
Final subtotals result

Practical 5: Scenario Analysis

Objective: Use Scenarios to compare Total Profit under different price assumptions.

Problem Setup

Compare three scenarios for product profit:

  • Normal Case: Current CP and SP
  • Best Case: SP +10%, CP -5%
  • Worst Case: SP -10%, CP +5%

Step 1: Setup Data and Formulas

Create table with Product, CP, SP, Quantity, Profit

Initial data

Profit formula in E2:

=(C2-B2)*D2

Fill down to E4:

Profit formula

Total Profit in E5:

=SUM(E2:E4)
Total profit formula Calculated profit

Step 2: Create Normal Case Scenario

  1. Select range B2:C4 (CP and SP cells that will change)
Select scenario range
  1. Go to Tools → Scenarios...
  2. Click Add
  3. Name: Normal Case
  4. Description: Base data
  5. Click OK to save current values
Normal case scenario

Step 3: Create Best Case Scenario

  1. Click Add again in the Scenarios dialog
  2. Name: Best Case
  3. Enter the Best Case values:
    • Pen: CP = 4.75 (5 × 0.95), SP = 11 (10 × 1.10)
    • Notebook: CP = 28.5 (30 × 0.95), SP = 55 (50 × 1.10)
    • Eraser: CP = 1.9 (2 × 0.95), SP = 4.4 (4 × 1.10)
  4. Click OK
Best case scenario

Step 4: Create Worst Case Scenario

  1. Click Add once more
  2. Name: Worst Case
  3. Enter the Worst Case values:
    • Pen: CP = 5.25 (5 × 1.05), SP = 9 (10 × 0.90)
    • Notebook: CP = 31.5 (30 × 1.05), SP = 45 (50 × 0.90)
    • Eraser: CP = 2.1 (2 × 1.05), SP = 3.6 (4 × 0.90)
  4. Click OK
Worst case scenario All scenarios created

Step 5: Switch Between Scenarios

  1. To apply a scenario, simply double-click its name in the Scenarios dialog
  2. Watch how the Total Profit in cell E5 changes:
    • Normal Case: Original profit values
    • Best Case: Higher profit (lower costs, higher prices)
    • Worst Case: Lower profit (higher costs, lower prices)
You can easily compare different business scenarios by switching between them with a double-click!
Successfully created scenario analysis to compare profit outcomes under different pricing assumptions!

📥 Download Complete Practical Manual

Get the full document with all screenshots and detailed instructions

Download DOCX File