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. diff --git a/sheets/references/build.md b/sheets/references/build.md index 01172f6..0f888b8 100644 --- a/sheets/references/build.md +++ b/sheets/references/build.md @@ -133,6 +133,30 @@ 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. 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 + 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 +254,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!`.