From f907ace58f83fc703c80d1b7e2456c3dfeb794cf Mon Sep 17 00:00:00 2001 From: James Briggs <35938317+jamescalam@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:27:32 +0800 Subject: [PATCH 1/3] Sheets: working columns go on a Workings tab, and a ranked table has a pattern A league table built by the skill showed its working columns beside it: the same rows again, unsorted, with a "Sort key" of numbers like 7,506,010.998 and a rank. The engine has no SORT, RANK, LARGE or ROW, so a ranked table needs helper columns, and nothing said where they go. build.md now says: working columns go on a tab named Workings, last in the list, under headers that say what they are; lists people edit stay on a tab they fill in; a ranked table ranks on Workings with COUNTIFS (ties split on the next figure, then by the list's order, so each position appears once) and looks its rows up by position. functions.md names RANK, LARGE, SMALL and ROW as not supported and points to the pattern. The engine can't hide a column or a tab. Co-authored-by: Pointman Co-authored-by: Claude --- sheets/references/build.md | 28 ++++++++++++++++++++++++++-- sheets/references/functions.md | 8 +++++--- 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/sheets/references/build.md b/sheets/references/build.md index 01172f6..c4c7d4a 100644 --- a/sheets/references/build.md +++ b/sheets/references/build.md @@ -133,6 +133,28 @@ glance. A summary full of zeros or a −94% margin reads as a broken sheet. - Never make a formula refer to itself, directly or through other cells. It shows `#CYCLE!`. +### Working columns go on a tab of their own + +A tab people read shows each figure once, in the order they want it. The engine can't hide +a column or a tab, so anything beside a table is read as part of it. + +- **Put working columns on a tab named "Workings", last in the list:** ranks, tie-breaks, + running counts, and the figures a lookup reads. Give each a header that says what it is, + such as "Position (points, then goal difference)". Add the tab to `data.json` when you + first need it. +- **Lists people edit stay where they fill things in.** Teams, players or products go on + a tab of their own or an input tab, under a header that says so. Workings reads them + (`=Teams!A2`). Never keep them only on Workings, or beside a table people read. +- **A ranked table** (a league, a top 5) has no SORT, RANK or LARGE to use. On Workings, + give one row to each name, with its figures and its position. Ties split on the next + figure, then by the list's order, so each position appears once. With points in B and + goal difference in C, for rows 2 to 7: + `=COUNTIFS(B$2:B$7,">"&B2)+COUNTIFS(B$2:B$7,B2,C$2:C$7,">"&C2)+COUNTIFS(B$2:B2,B2,C$2:C2,C2)`. + The ranges cover exactly the names' rows. On the tab people read, column A holds 1, 2, 3 + and so on, and each row looks up its position: + `=INDEX(Workings!A$2:A$7,MATCH($A2,Workings!$D$2:$D$7,0))`. Never rank with a sort key + made by multiplying the figures together: nobody can read it. + ## Change a sheet 1. **Start on its space:** `sheet.js start `, the link alone. A space that holds a @@ -230,9 +252,11 @@ skill. 3. **Drop-downs hold exactly the values the ask gave,** spelled the same. A highlight or COUNTIF that tests a value uses the same spelling. 4. **The examples tell one believable story** (above), and the lede says they're examples. -5. **For a change, only the asked-for cells moved,** and `saved_at`, `edited`, `before` +5. **A tab people read shows each figure once.** Ranks, keys and other working columns + are on Workings, and the lists people edit are on a tab they fill in. +6. **For a change, only the asked-for cells moved,** and `saved_at`, `edited`, `before` and `change_note` are filled in. -6. **You wrote only `data.json` and `cells/`;** `sheet.js` built the page. +7. **You wrote only `data.json` and `cells/`;** `sheet.js` built the page. ## Your reply diff --git a/sheets/references/functions.md b/sheets/references/functions.md index 895e6be..27754c8 100644 --- a/sheets/references/functions.md +++ b/sheets/references/functions.md @@ -58,9 +58,11 @@ the functions below. Any other name shows `#NAME?` in the space. - Nothing spills: a formula gives one value. Array maths work only inside SUMPRODUCT. Elsewhere, a range given to a one-value function uses its first cell. -- Not supported: `TEXT`, `TEXTJOIN`, `FILTER`, `SORT`, `UNIQUE`, `OFFSET`, `INDIRECT`, - `NETWORKDAYS`, `PMT` and the other finance functions, and named ranges. Use a helper - column or a summary tab instead. +- Not supported: `TEXT`, `TEXTJOIN`, `FILTER`, `SORT`, `UNIQUE`, `RANK`, `LARGE`, `SMALL`, + `ROW`, `OFFSET`, `INDIRECT`, `NETWORKDAYS`, `PMT` and the other finance functions, and + named ranges. Use helper columns on a Workings tab, or a summary tab, instead. A ranked + table has its own pattern in `references/build.md`, under "Working columns go on a tab + of their own". - `SUM(A1)` on a single text cell gives `#VALUE!`. Excel gives 0. Sum ranges, not lone text cells. - A formula that refers back to itself shows `#CYCLE!`. From 71a9646a1ab66d5bda5ad5999f7c61d204485dc5 Mon Sep 17 00:00:00 2001 From: James Briggs <35938317+jamescalam@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:38:02 +0800 Subject: [PATCH 2/3] Sheets: figures a read tab shows again go on Workings, not beside the list's names Co-authored-by: Pointman Co-authored-by: Claude --- sheets/references/build.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sheets/references/build.md b/sheets/references/build.md index c4c7d4a..0f888b8 100644 --- a/sheets/references/build.md +++ b/sheets/references/build.md @@ -144,7 +144,9 @@ a column or a tab, so anything beside a table is read as part of it. first need it. - **Lists people edit stay where they fill things in.** Teams, players or products go on a tab of their own or an input tab, under a header that says so. Workings reads them - (`=Teams!A2`). Never keep them only on Workings, or beside a table people read. + (`=Teams!A2`). Never keep them only on Workings, or beside a table people read. Figures + a read tab shows again, like a league table's points, go on Workings too, not beside the + list's names, so each figure shows once. - **A ranked table** (a league, a top 5) has no SORT, RANK or LARGE to use. On Workings, give one row to each name, with its figures and its position. Ties split on the next figure, then by the list's order, so each position appears once. With points in B and From d681d69276ec2bc6e36096b65a2c2f0bdf161773 Mon Sep 17 00:00:00 2001 From: James Briggs <35938317+jamescalam@users.noreply.github.com> Date: Sun, 15 Nov 2026 16:55:51 +0800 Subject: [PATCH 3/3] Changelog: v2.0.3 Co-authored-by: Pointman Co-authored-by: Claude --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 538b570..8fe7ea4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ Each release is a heading with its tag. The release workflow uses the words under it as the release's notes. +## v2.0.3 + +- A sheet's working columns go on a tab of their own, named Workings and listed last, so the tab people read shows each figure once. Before, a league table could show its teams twice, beside a "Sort key" of numbers like 7,506,010.998. A list people edit, like the teams, stays on a tab they fill in. +- A ranked table (a league, a top 5) has a pattern to follow: a position for each name, worked out with COUNTIFS on Workings, with ties split on the next figure. The table then lists 1, 2, 3 and looks each row up. The engine has no SORT, RANK, LARGE or ROW, and `references/functions.md` now says so. +- The folder's hash is `d88555811346`. + ## v2.0.2 - A sheet that's open while it's built ends showing the right status line and cell. Before, when the last push and the save sent the same page, the status line went back to "Loading…" and the cell's address to A1. The same happened after a push that changed only the description, and in a tab that had nothing to compare the page with, the grid, tabs and charts emptied. The page now draws again, where the person is, after every whole page.