All Challenges

Spreadsheet Mini-Grid (Editable Cells + SUM Formula)

TypeScriptHardGoogleNotionAirtable
45:00

Problem Brief

Build a 3x3 spreadsheet supporting cell editing and live evaluation of `=SUM(A1:A2)` / `=SUM(B1:B2)` formulas.

Requirements

  • Each cell `[data-cell="A1"]`, `[data-cell="A2"]`, `[data-cell="A3"]` accepts numeric values or `=SUM(A1:A2)`.
  • Updating A1 or A2 automatically recomputes formula output shown in `[data-display="A3"]`.
Progressive Hints (1)
  • Parse `=SUM(COLROW:COLROW)` into coordinate range and sum numeric evaluated values.
Reference Solution

Stuck? Load the verified reference code into your editor.

Automated Test Suite

2 Test Cases Ready
  • Evaluates initial =SUM(A1:A2) formulaDisplays 35 for 10 + 25
  • Recomputes formula live when referenced cell changesUpdating A1 to 40 turns A3 display into 65
solution.html
Live Sandboxed Previewiframe sandbox
Starter template loaded — add your <script> logic in the editor (or open Reference Solution) to make the widget interactive.