What is Computer

Module: M3-R5: Python Programming

Chapter: Ch1 Computer Intro

Introduction

LibreOffice Calc provides What-If Analysis Tools to help users analyze and forecast different outcomes based on varying input values. The three main tools for this are:

  • Scenario Manager – Compare multiple business cases.
  • Goal Seek – Find the input value required to achieve a desired result.
  • Solver – Optimize results by changing multiple variables within constraints.
1️⃣ Scenario Manager

The Scenario Manager allows comparing various data sets (called scenarios) to see how changes in certain values affect the outcome.

Example Scenario

Let’s analyze profit for three different sales plans:

ItemQuantityUnit PriceTotal Revenue
Plan A100500=B2*C2 → 50,000
Plan B150480=B3*C3 → 72,000
Plan C200450=B4*C4 → 90,000
Steps to Create Scenarios
  1. Select the input cells (e.g., Quantity and Unit Price).
  2. Go to Tools → Scenarios.
  3. Enter the Scenario Name (like Plan A, Plan B, Plan C).
  4. Set different values for each scenario and click OK.
  5. Switch between scenarios from Tools → Scenarios → Show.

Result: You can instantly view different totals based on the selected scenario.

2️⃣ Goal Seek

The Goal Seek tool finds the input value needed to achieve a specific result in a formula cell.

Example:

You want to achieve a target total revenue of ₹1,00,000 by adjusting the number of items sold.

ParameterCellValue
Unit PriceC2500
QuantityB2?
Total Revenue=B2*C2100000
Steps to Use Goal Seek
  1. Select the formula cell (Total Revenue).
  2. Go to Tools → Goal Seek.
  3. In “Target Value”, enter 100000.
  4. In “Variable Cell”, select the cell for Quantity (B2).
  5. Click OK.

Result: Calc automatically calculates the Quantity needed to reach ₹1,00,000 revenue (→ 200 units).

3️⃣ Solver

The Solver is an advanced optimization tool that adjusts multiple variables to reach an objective (like maximizing profit or minimizing cost) while following constraints.

Example: Maximizing Profit
ItemUnitsProfit/UnitTotal Profit
Product A50200=B2*C2 → 10,000
Product B80150=B3*C3 → 12,000
Total Profit=SUM(D2:D3) → 22,000
Conditions
  • Total units ≤ 200
  • Product A ≥ 40 units
  • Product B ≥ 50 units
Steps to Use Solver
  1. Install Solver (if not already active): Tools → Add-Ins → Solver.
  2. Go to Tools → Solver.
  3. In Target Cell, select total profit cell (D5).
  4. Choose “Maximize”.
  5. In Variable Cells, select B2:B3.
  6. Click Add to set constraints (as shown above).
  7. Click Solve.
Result:

Solver will find the best combination of units for Product A and B to achieve the maximum total profit under given constraints.

4️⃣ Comparison Table
Tool Purpose Variables Example Use
Scenario Manager Compare different “what-if” datasets Multiple Sales projections for 3 plans
Goal Seek Find one unknown value for a target result Single Required quantity to reach ₹1,00,000 revenue
Solver Optimize a formula by changing multiple variables under constraints Multiple Maximize profit with limited resources
Conclusion

What-If tools in LibreOffice Calc empower users to experiment and forecast outcomes without manually adjusting data. They’re essential for business analysis, decision-making, budgeting, and optimization.

Quick Links