LibreOffice Calc: Explore Data and Decisions

CBSE Class 10 · Information Technology 402 · 2026–27

A spreadsheet becomes useful when it helps you answer a question. Build a fair-stall budget, compare possible plans, find a target quantity and trace where a number came from. Then check your reasoning with short questions and practical tasks.

9 short topics27 quick checks9 applied tasks
By the end, you can…
  • Choose a suitable summary or what-if tool and check its output.
  • Record a simple macro and distinguish a function from a cell-changing procedure.
  • Link sheets, documents and data sources without losing their meaning.
  • Review changes and explain a correct final spreadsheet.
About 6 minutes
TOPIC 01

Turn many rows into a useful summary

A school fair has two collection sheets. Monday records 12 notebooks and 8 folders; Tuesday records 15 notebooks and 5 folders. The useful answer is a summary: 27 notebooks and 13 folders. Consolidate combines ranges; Subtotals summarises groups within a list.

Practice data: fictional fair stock
ItemMondayTuesdaySum
Notebook121527
Folder8513
  1. Create Monday and Tuesday sheets with the same column labels.
  2. Choose Data → Consolidate. Set Function to Sum, select the first source range and click Add; add the second range too.
  3. Set a clear destination on a Summary sheet. Where labels are included, use the appropriate row/column-label options to match them. Labels must agree.
  4. Choose Link to source data when the summary should respond to later source changes. Without links, a copied result is not a live connection.

For subtotals, imagine one list containing Blue house amounts 40 and 60, and Green house amounts 30 and 50. Keep each complete record together, sort by House, select the list with headers and choose Data → Subtotals. Group by House, calculate Amount and use Sum. The house totals are 100 and 80; the grand total is 180. Outline controls can collapse detail rows while leaving summaries visible.

Choose the function that answers the question. Average of 12 and 15 is 13.5; Sum is 27. Do not average already-computed averages when their groups have different sizes. First decide whether the question needs total, count or mean, then verify one result by hand.

Calc Subtotals dialog with grouping field, subtotal columns and function list.
Calc Subtotals dialog with grouping field, subtotal columns and function list.
Calc Consolidate dialog showing Average function and source and destination ranges.
Calc Consolidate dialog showing Average function and source and destination ranges.

Pause. Think. Try.

Choose your answer, then check the explanation.

1. Monday has 12 notebooks and Tuesday 15. Which consolidation function returns 27?
Show a hint

Decide whether you need a total or a typical value.

Answer and explanation
C. Sum

Sum adds 12 + 15 = 27. Average would return 13.5.

2. A list contains House and Amount. To total each house, what should Group by be?
Answer and explanation
B. House

House defines the groups; Amount is the numeric field to summarise.

3. Which consolidation option keeps the summary connected to changes in its source ranges?
Answer and explanation
A. Link to source data

The link option creates references so changed source values can update the consolidated result.

Apply it. Explain it.

short answer · 2 marks
1. Blue house collections are ₹40 and ₹60; Green collections are ₹30 and ₹50. State the Group by field, calculation field, function and both subtotals.
Compare with a worked answer

Group by House; calculate Amount using Sum. Blue totals ₹100 and Green ₹80.

What earns credit
  • Correct group/calculation/function (1)
  • Both correct subtotals (1)
About 6 minutes
TOPIC 02

Ask “What if?” without losing your starting values

A fair stall wants to compare three plans before buying materials. Put selling price in B2, cost per item in B3, quantity in B4 and a fixed stall cost in B5. In B6 enter =(B2-B3)*B4-B5. This calculates profit after both variable and fixed costs.

Three fictional plans for the same stall
PlanPriceItem costQuantityFixed costProfit
Starter50201006002400
Busy day50201406003600
Lower price45201406002900

A scenario is a named set of input-cell values. It preserves an assumption set so you can switch between plans and compare the calculated outputs.

  1. Enter the Starter values. Select the input cells B2:B5, leaving the profit formula outside the selection.
  2. Choose Tools → Scenarios, name it Starter and confirm.
  3. Create another scenario named Busy day for that same range. Change its quantity to 140 and keep its other inputs. Create Lower price with 45, 20, 140 and 600.
  4. Select each scenario by its name and inspect B6. Confirm that each named plan restores its intended inputs; this catches accidental edits to the wrong active scenario.

The formula stays the same; the assumptions change. A higher quantity does not automatically mean higher profit than every other plan: price and cost matter too. These are modelled possibilities, not guaranteed sales.

Spot the mistake: replacing B6 with a typed answer destroys the calculation. Keep B6 as a formula and edit only the assumptions. A scenario compares specified inputs; it does not search for the input that produces an exact target.

Calc Create Scenario dialog with a name, comment and settings.
Calc Create Scenario dialog with a name, comment and settings.

Try the idea

Compare the fair-stall scenarios: Starter (50/20/100/600) gives ₹2,400 profit; Busy day (50/20/140/600) gives ₹3,600; Lower price (45/20/140/600) gives ₹2,900. Each scenario stores selling price, unit cost, quantity and fixed cost together.

Pause. Think. Try.

Choose your answer, then check the explanation.

1. A plan uses price ₹50, cost ₹20, quantity 100 and fixed cost ₹600. What does =(50-20)*100-600 return?
Answer and explanation
B. ₹2,400

Contribution is ₹30 × 100 = ₹3,000; subtract ₹600 fixed cost to get ₹2,400.

2. Which cells belong in a scenario when B2:B5 are inputs and B6 holds the profit formula?
Answer and explanation
C. B2:B5

Store the changing input values; preserve the formula that calculates the result.

3. Which question is best answered by comparing scenarios?
Answer and explanation
A. What profit results from three known price-and-quantity plans?

Scenarios compare known assumption sets. Goal Seek searches for one input needed for a target.

Apply it. Explain it.

short answer · 2 marks
1. Using profit = (price − cost) × quantity − fixed cost, calculate profit when price is ₹45, cost ₹20, quantity 140 and fixed cost ₹600. Explain why Scenario is useful when comparing this with another known plan.
Compare with a worked answer

Profit = (45 − 20) × 140 − 600 = ₹2,900. Scenarios save named input sets so each plan can be restored and its result compared without retyping all assumptions.

What earns credit
  • Correct ₹2,900 calculation (1)
  • Named assumption sets and comparison explained (1)
About 6 minutes
TOPIC 03

Work backwards from a target with Goal Seek

The stall now has a precise question: how many items must we sell to earn ₹3,000? Price is ₹50, cost per item ₹20 and fixed cost ₹600. Quantity is the only value allowed to change.

Set up this model in Calc
CellMeaningEntry
B2Price50
B3Cost per item20
B4Quantity100
B5Fixed cost600
B6Profit=(B2-B3)*B4-B5

Select Tools → Goal Seek. Set Formula cell to B6, Target value to 3000 and Variable cell to B4. Calc searches for a new B4 that makes the formula reach the target. Inspect the result before accepting it.

Check by hand: 30×quantity−600=3000, so quantity=3600÷30=120. Substituting 120 gives ₹3,000 exactly. The starting 100 items produced ₹2,400; 20 additional items are needed.

The three dialog fields have different jobs: one points to the formula, one contains the desired output, and one points to the changeable input. A target value is not a cell address. The variable cell must affect the formula, directly or through other formulas.

Goal Seek changes one variable. It does not automatically apply limits such as whole-number quantities or a maximum capacity. If it returns 120.5 items, you must interpret that result: for an “at least” target, round appropriately and check the formula again. For constrained optimisation, use Solver. A failed search can also mean the model has no suitable solution; it is not evidence that the formula should be replaced with the target number.

Calc Goal Seek dialog with Formula cell, Target value and Variable cell inputs.
Goal Seek works with one formula cell, one target value and one changing input cell.

Try the idea

For a selling price of ₹50, unit cost of ₹20, 100 items and fixed cost of ₹600, profit = (50−20) × 100−600 = ₹2,400. To reach ₹3,000 profit while holding the prices and fixed cost constant, sell 120 items.

Pause. Think. Try.

Choose your answer, then check the explanation.

1. For profit in B6 and changeable quantity in B4, which Goal Seek settings are correct?
Answer and explanation
B. Formula B6; target 3000; variable B4

The formula cell contains profit; 3000 is the target number; B4 is the input being changed.

2. With profit = 30 × quantity − 600, what quantity gives profit 3000?
Answer and explanation
C. 120

30 × 120 − 600 = 3000.

3. In the pictured Goal Seek dialog, which cell will the search change?
Goal Seek dialog with Formula cell $D$4, Target value 2000000, and Variable cell $C$2.
Show a hint

Read the field labels, not just the numbers.

Answer and explanation
B. $C$2

The Variable cell field shows $C$2. The Formula cell $D$4 will be recalculated rather than replaced.

Apply it. Explain it.

case study · 4 marks
1. A school stall uses B6=(B2-B3)*B4-B5. B2=50, B3=20 and B5=600. The target profit is ₹3,000. State all three Goal Seek settings and the expected quantity.
Compare with a worked answer

Formula cell B6; target value 3000; variable cell B4. The expected quantity is 120, since (50 − 20) × 120 − 600 = 3000.

What earns credit
  • Correct formula cell (1)
  • Correct target (1)
  • Correct variable cell (1)
  • 120 with a valid check (1)
About 6 minutes
TOPIC 04

Practical studio: find the best feasible plan

Suppose a team makes cards and folders. A card needs 1 unit of material and earns ₹3; a folder needs 2 units and earns ₹5. There are 10 material units, and at most 4 cards can be made. How can the team earn the most while following those limits?

Solver changes one or more decision cells while respecting constraints. The objective can be a maximum, minimum or stated value. Here the objective is maximum earnings; the changing cells are quantities.

A small Solver model
CellMeaningEntry or formula
B2Cards0
C2Folders0
D2Material used=B2+2*C2
E2Earnings=3*B2+5*C2
  1. Choose Tools → Solver. Set the target/objective cell to E2 and choose Maximum.
  2. Set the changing cells to B2:C2.
  3. Add constraints: D2 ≤ 10; B2 ≤ 4; B2 ≥ 0; C2 ≥ 0; both quantities are integers.
  4. Use an available linear solver for this linear model. Solve, inspect the values and verify every condition before keeping the result.

The best plan is 4 cards and 3 folders: material 4 + 2 × 3 = 10; earnings 3 × 4 + 5 × 3 = ₹27. Compare 5 folders with no cards: ₹25. Compare 2 cards and 4 folders: ₹26. Any claim of a better result must satisfy all constraints, not merely give a large earnings number.

The integer conditions matter because halves of these products are not allowed. Removing non-negative constraints would describe an impossible production plan. Unlike a scenario, Solver searches possible inputs; unlike this course’s one-variable Goal Seek exercise, it can handle several variables and explicit limits. This is a practical modelling skill: begin by stating what may change, what must remain true and what success means.

Calc Solver dialog showing target, changing cells and limiting conditions.
Calc Solver dialog showing target, changing cells and limiting conditions.

Pause. Think. Try.

Choose your answer, then check the explanation.

1. Which cell should Solver maximise in the card/folder model?
Answer and explanation
D. E2, the earnings formula

E2 contains what we want to maximise. B2:C2 are the changing cells.

2. Which plan obeys all limits and earns ₹27? Each card uses 1 unit/earns ₹3; each folder uses 2 units/earns ₹5; capacity is 10 units; at most 4 cards are allowed.
Answer and explanation
A. 4 cards, 3 folders

4 cards and 3 folders use 10 units and earn 12 + 15 = ₹27. The other plans break a capacity or card limit.

3. Why add integer constraints for card and folder quantities?
Answer and explanation
C. To exclude fractional product quantities

The products are counted whole items. Integer constraints make the model match that condition.

Apply it. Explain it.

practical · 4 marks
1. Use cards x and folders y with x + 2y ≤ 10, 0 ≤ x ≤ 4, y ≥ 0 and whole-number quantities. Maximise 3x + 5y. State a value for x and y, check material use and earnings, and name which cells are decision variables.
Compare with a worked answer

x=4, y=3 uses 4 + 6 = 10 material units and earns 12 + 15 = ₹27. The decision variables are the cells containing x and y; earnings is calculated by the objective formula.

What earns credit
  • Correct x=4, y=3 (1)
  • Material check 10 (1)
  • Earnings check 27 (1)
  • Decision variables identified (1)
About 6 minutes
TOPIC 05

Record a repeatable action—and test what it repeats

You prepare a similar expense sheet each week. A macro can repeat a sequence of commands, such as formatting the header, instead of making you perform each command again. The macro recorder saves supported actions as program instructions; it does not understand your intention.

  1. Start with a practice copy. Type Item and Amount in A1:B1. Use the Name Box or keyboard to select A1:B1 so the selection is explicit.
  2. Choose Tools → Macros → Record Macro. If that command is absent, the recording feature can be enabled under LibreOffice’s Advanced options. This is separate from permission to run a downloaded macro.
  3. Select A1:B1 using the keyboard/Name Box, apply bold and a background colour, then choose Stop Recording.
  4. Choose the current document, a library such as Standard and a module. Give the macro a clear name, such as FormatHeader, and save it.
  5. Remove the formatting in your practice copy and run FormatHeader through Tools → Macros → Run Macro. Check exactly which cells change.

Keeping a macro inside the document travels with that file; My Macros belongs to the local LibreOffice profile. Libraries contain modules; modules contain routines. Use the macro organiser to locate a routine and open it for editing.

A recorded selection may contain fixed cell addresses. It might always format A1:B1 even when another cell is active. Test that behaviour instead of assuming it follows the current selection. The recorder also cannot capture every action; window switching and some mouse actions are examples of limitations.

Only run code whose source and purpose you trust, and keep a recovery copy before a macro changes data. Do not lower general security settings to run an unknown file. A good automation is predictable: you can explain its input, action and expected result before clicking Run.

LibreOffice Advanced options showing Enable macro recording.
LibreOffice Advanced options showing Enable macro recording.
LibreOffice Basic Macros dialog with libraries and macro names.
LibreOffice Basic Macros dialog with libraries and macro names.

Pause. Think. Try.

Choose your answer, then check the explanation.

1. Where should a macro be saved if it must travel with its practice spreadsheet?
Answer and explanation
B. In the current document’s macro library

A document-contained macro is stored with that document; My Macros is local to the LibreOffice profile.

2. A recorded macro selects A1:B1 explicitly. What should you expect when your active cell is D5 and you replay it?
Answer and explanation
C. It may still format A1:B1

Recorded fixed addresses can repeat the original selection. Test the routine on a copy.

3. What should you do when an unfamiliar downloaded spreadsheet asks you to enable macros?
Answer and explanation
D. Check the source and purpose and keep untrusted code disabled

Macros can modify data and execute code. Trust and understanding come before execution.

Apply it. Explain it.

short answer · 2 marks
1. Explain two checks you should perform before relying on a recorded header-formatting macro.
Compare with a worked answer

Run it on a practice copy and verify the intended cells and formatting. Inspect whether it uses fixed addresses, and confirm it does not alter data or unexpected ranges.

What earns credit
  • Test on a copy with correct target/output (1)
  • Check addresses and unwanted side effects (1)
About 6 minutes
TOPIC 06

Give a macro inputs and read its output

A function macro calculates a result from arguments. The following original LibreOffice Basic function multiplies a quantity by a rate:

Function TripCost(units As Double, rate As Double) As Double
  TripCost = units * rate
End Function

Create a module in the document’s Standard library, place this function there and save. With 30 in A2 and 40 in B2, =TRIPCOST(A2;B2) returns 1200. The arguments 30 and 40 are supplied to the parameters units and rate; assigning to TripCost returns the answer. If your Calc uses a different argument separator, use the separator shown by its Function Wizard.

A Sub performs an action; a Function returns a value. In the practical below, a separate Sub writes a number into a cell on the existing Budget sheet:

Sub WriteBudgetTotal
  Dim sheet As Object
  sheet = ThisComponent.Sheets.getByName("Budget")
  sheet.getCellRangeByName("B4").Value = _
    sheet.getCellRangeByName("B2").Value * _
    sheet.getCellRangeByName("B3").Value
End Sub

Create Budget first and put 30 in B2 and 40 in B3. Running the Sub writes 1200 to B4. It writes a value, not a continuing formula: changing B2 afterwards does not update B4 until you run the Sub again. In contrast, a cell formula =B2*B3 recalculates. Worksheet functions should return their result rather than secretly editing unrelated cells.

Practical extension—sort a complete list: create headers Name and Score with rows Asha/6, Dev/9, Noor/7. Record a macro that explicitly selects the entire two-column table, chooses Data → Sort, recognises the header and sorts Score descending. Reset the data and test. The result must be Dev/9, Noor/7, Asha/6. Sorting only scores would detach them from names. Direct cell access, arguments and sorting are practical ways to understand what automation actually changes.

LibreOffice Basic Macros dialog with libraries and macro names.
LibreOffice Basic Macros dialog with libraries and macro names.

Pause. Think. Try.

Choose your answer, then check the explanation.

1. A LibreOffice Basic function is defined as Function TripCost(units As Double, rate As Double) As Double: TripCost = units * rate: End Function. What does =TRIPCOST(30;40) return?
Answer and explanation
B. 1200

The function multiplies its arguments: 30 × 40 = 1200.

2. WriteBudgetTotal writes 1200 into B4 using .Value. You then change B2 without re-running it. What happens?
Answer and explanation
C. B4 remains the written value 1200

The Sub assigned a number, not a live formula. Run again or replace the value with a suitable formula.

3. To sort scores descending while keeping students matched to their scores, select…
Answer and explanation
D. The complete record range including both columns

All fields of a record must move together; otherwise names and scores can be incorrectly paired.

Apply it. Explain it.

short answer · 2 marks
1. A function returns units × rate. State the result for units=12 and rate=25. Then explain one difference between this function used in a cell and a separate Sub that writes a numeric value to another cell.
Compare with a worked answer

The result is 300. A worksheet function returns its result to the calling cell; a separate Sub can perform an action such as writing a value elsewhere. A value written by a Sub does not automatically recalculate when inputs change.

What earns credit
  • Correct 300 (1)
  • Accurate function/action or formula/value distinction (1)
About 6 minutes
TOPIC 07

Connect sheets without copying numbers by hand

A workbook can hold related sheets: April, May and Summary. Add a sheet using the sheet-tab controls, give it a meaningful name and keep a consistent layout. If April.B2 contains 125 and May.B2 contains 175, Summary can use =April.B2+May.B2 to obtain 300.

Calc’s sheet reference uses a dot between the sheet name and cell address. Names containing spaces are quoted: ='Term 1'.B2. An easy way to build a reference is to type = in the destination, click the source sheet and cell, then press Enter. Read the resulting formula so you can explain it as well as create it.

Relative cell references adjust when a formula is copied. With =April.B2 in Summary.B2, copying one column to the right gives =April.C2. Dollar signs lock particular parts. A reference such as =$April.$B$2 fixes the sheet, column and row.

A reference to another document also needs its file location. Save both files, start the destination formula, switch to the source document, select its cell and confirm. Calc creates the external reference with the file path, sheet name and cell address. That formula imports a cell value; a hyperlink simply opens or navigates to a destination.

Keep related files in an organised folder, preserve their locations and reopen the summary to test the link. If the source is moved, renamed or unavailable, investigate the link instead of typing a replacement total over the formula. When the application asks whether to update external links, update only sources you expect and trust.

Try changing April.B2 from 125 to 150. The linked total should be 325 after appropriate updating. A manually pasted 300 has no connection to the source and will stay stale.

Pause. Think. Try.

Choose your answer, then check the explanation.

1. April.B2 = 125 and May.B2 = 175. Which formula calculates their combined value in Summary?
Answer and explanation
A. =April.B2+May.B2

Calc uses a dot between a sheet name and cell reference; the two inputs add to 300.

2. Copy =April.B2 one column to the right. What does its relative cell reference become?
Answer and explanation
B. =April.C2

The column advances from B to C; the row stays 2.

3. Which item must an external-document cell reference include in addition to sheet and cell?
Answer and explanation
C. The source file location

Calc needs to locate the other document before it can retrieve its referenced cell.

Apply it. Explain it.

short answer · 2 marks
1. A Summary cell contains =April.B2+May.B2. The values are 125 and 175. What result appears? If April.B2 becomes 150, what should the updated result be? Explain why typing 300 into the Summary cell is not an equivalent replacement.
Compare with a worked answer

The initial result is 300; the updated result is 325. Typing 300 stores a constant, removing the formula connection to the source cells.

What earns credit
  • Correct initial and updated values (1)
  • Constant versus linked formula distinction (1)
About 6 minutes
TOPIC 09

Share carefully, review deliberately

Two learners edit a budget. One changes Quantity from 10 to 12; another corrects Rate from ₹20 to ₹25. Before keeping both changes, a reviewer should understand their effect: the total moves from ₹200 to ₹300.

Shared-file editing and recorded review are related but distinct workflows. For shared-file editing, save the spreadsheet in a location all collaborators can access and choose Tools → Share Spreadsheet. Appropriate file permissions are needed. The title shows the shared state; saving may present conflicts to resolve. Shared mode restricts some other tools.

For a controlled review exercise, work in an unshared copy. If necessary, turn sharing off through Share Spreadsheet, save, and confirm the shared label is gone. Set the reviewer’s user information, then use Edit → Track Changes → Record before making changes. Show recorded changes, inspect them and use Edit → Track Changes → Manage to accept or reject each one.

A comment explains a reason or asks a question without replacing the cell value. Insert a comment on the selected cell, edit its text when needed, and use its formatting controls to adjust presentation. “Quantity changed to 12 because of two new orders” is more useful than “Changed”. A comment is not the same as approving an edit.

Compare Document finds differences between a changed version and another version, including when recording was not enabled. Merge Document brings tracked contributions together for review. Keep the original and use review controls to decide which changes to retain; merging is not permission to overwrite conflicting data unquestioningly.

Finally, recalculate and inspect the result, save the reviewed file under a clear name and reopen it. A visible correction history is useful only if the final figures and the decision to accept them are also correct.

Calc Share Document dialog with the sharing checkbox and explanation of shared-mode limitations.
Calc Share Document dialog with the sharing checkbox and explanation of shared-mode limitations.
Calc Edit menu with Track Changes and Record selected.
Calc Edit menu with Track Changes and Record selected.

Pause. Think. Try.

Choose your answer, then check the explanation.

1. Why turn off shared mode before a separate Record Changes review exercise?
Answer and explanation
B. Because certain Track Changes commands are unavailable in shared mode

Shared mode has feature limits. The unshared review workflow allows recording and managing changes.

2. What should a comment usually add?
Answer and explanation
A. An explanation or question about the cell

Comments communicate context; reviewers still decide whether to accept the actual change.

3. A reviewer edited a copy without turning on tracking. Which tool can help identify differences from the original?
Answer and explanation
C. Compare Document

Compare Document identifies differences between versions; it does not reconstruct when each edit was made.

Apply it. Explain it.

case study · 4 marks
1. A budget changes Quantity from 10 to 12 and Rate from ₹20 to ₹25. State the old and new totals. Give one use of a comment and one action the reviewer should take before finalising the changes.
Compare with a worked answer

Old total = 10 × 20 = ₹200; new total = 12 × 25 = ₹300. A comment can explain why the quantity or rate changed. The reviewer should inspect and accept/reject the edits, verify the calculation and save the correct final version.

What earns credit
  • Correct old/new totals (1)
  • Useful comment purpose (1)
  • Review/accept or reject action (1)
  • Check and save the final calculation (1)

Bring the ideas together

Explain one idea without looking, repeat one useful procedure, then revisit a question that made you pause.