Ravindra BagaleCourses & study guides Track your progress
Easy challenge

Easy: Wrong absolute references

Commission column multiplies each sale by a rate cell — but the formula was filled down without locking $E$5. SUM also stops too early, and the manager typed a hard-coded grand total.

About this data: Made-up practice sales for Priya Sharma (Pune kirana) and Omar Hassan (Dubai branch). Amounts in INR (₹). Not real people or sales.

Why → What → How

Why: One unlocked rate cell silently gives 0, #VALUE!, or huge nonsense commissions when copied down. Managers then “fix” totals by typing numbers — worse.

What: Three bugs in Commission sheet: relative rate reference, SUM range D8:D14 missing Emma/Ravi rows, hard-coded 90000 instead of a formula.

How:

  1. Download the broken file and open sheet Commission.
  2. Look at E8 — it uses E5. Fill-down made E9 use E6 (empty), E10 use E7 (label text), and so on.
  3. Change the rate part to $E$5 (or E$5 if you only lock the row) and fill down.
  4. Widen Total sales from =SUM(D8:D14) to include all sale rows (through D16).
  5. Replace the typed 90000 with a formula that equals the real total.
  6. Confirm commissions are all 5% and both totals match.

Ravindra Bagale’s Tip

Press F4 (or Cmd+T on Mac in some builds) while the cursor is on E5 inside the formula to cycle $ locks.

Bugs explained (with mini examples)

Bug 1 — Relative rate reference

Broken idea: =D8*E5 copied to next row becomes =D9*E6. E6 is empty → 0 commission.

E5 = 5% E8: =D8*E5 → OK for row 1 only E9: =D9*E6 → 0 (E6 blank) Fix: =D8*$E$5 then fill down

Bug 2 — SUM misses new rows

Data grew to row 16 but the total still sums D8:D14. Emma and Ravi are invisible to the total.

Broken: =SUM(D8:D14) → 94000 Fixed: =SUM(D8:D16) → 122900

Bug 3 — Hard-coded total

Someone typed 90000. It never updates when sales change. Use a formula (same SUM, or =D18 if that cell already holds the SUM).

Broken: 90000 (typed) Fixed: =SUM(D8:D16) or link to the Total sales cell

Practice tasks (12)

  1. Task 1. In E8, write a commission formula that always reads the 5% in E5.
    Hint: Use $E$5.
  2. Task 2. Fill the fixed formula down through Ravi’s row.
    Hint: Double-click the fill handle after locking $E$5.
  3. Task 3. Explain why Omar’s broken commission showed 0.
    Hint: E9 pointed at empty E6.
  4. Task 4. Explain one #VALUE! commission in the broken file.
    Hint: A shifted ref hit the text label near the rate.
  5. Task 5. Fix Total sales so Emma (15600) and Ravi (13300) are included.
    Hint: Extend to D16.
  6. Task 6. Replace the hard-coded grand total with a formula.
    Hint: Do not type 122900 by hand.
  7. Task 7. What is Priya’s commission on 12000 at 5%?
    Hint: 600.
  8. Task 8. If the rate in E5 changes to 6%, should every commission update?
    Hint: Yes — only if you used $E$5.
  9. Task 9. Write one sentence you would tell a junior about hard-coded totals.
    Hint: Typed totals lie when data changes.
  10. Task 10. In LibreOffice or Excel, sort by City after fixing — do commissions stay correct?
    Hint: Yes if rate is absolute.
  11. Task 11. Add a new sale row 17 for Neha, 10000 ₹ — update SUM.
    Hint: Include D17 or convert the range to a Table.
  12. Task 12. Bonus: format Commission column as ₹ currency.
    Hint: Home → Number → Currency / Accounting.

In-browser formula check

Type the fixed formula you would put in the named cell (Excel or LibreOffice style). We only check the formula text — open the workbook for full recalculation.

Step-by-step solution (try first)
  1. E8: =D8*$E$5 → fill to E16.
  2. Total sales cell: =SUM(D8:D16).
  3. Grand total: same SUM or = the Total sales cell.
  4. Expected total sales: 122900. Sample commissions: 600, 925, 475, 710, 550, 1005, 435, 780, 665.

Verified in LibreOffice Calc: broken showed 0 / #VALUE! / huge commissions and SUM 94000; fixed commissions and 122900.

Quick quiz

Q1. Copying =D8*E5 down one row without locks makes the rate cell become:
Q2. A hard-coded total is risky because:
Q3. Best fix for a shared rate cell is:
Q4. SUM(D8:D14) when data ends at D16 will:
Q5. Absolute reference for column and row looks like: