Skip to content

Sheets: working columns go on a Workings tab, and a ranked table has a pattern - #9

Merged
jamescalam merged 3 commits into
mainfrom
sheets-237
Nov 15, 2026
Merged

jamescalam merged 3 commits into
mainfrom
sheets-237

Conversation

@jamescalam

Copy link
Copy Markdown
Contributor

The skill now tells the agent where working columns go: a tab named Workings, last in the list. It also gives a COUNTIFS pattern for ranked tables, because the engine has no SORT, RANK, LARGE or ROW.

Why

A league table built from the ask "track a 5-a-side football team's season: fixtures, scores, who played, and a league-style table of points" showed its working columns beside it. Columns M to W on the Table tab held the six teams again, unsorted, under "Teams (edit names here)", with a "Sort key" (7,506,010.998, 493,002.993 …) and a "Rank". A person sees every figure twice, plus a column of nonsense. Nothing in the skill said where helper columns go, and there was no ranking pattern to follow, so the agent improvised one. It also tried ROW() first, which shows #NAME?.

Can the engine hide a column or a tab?

No. The format has no field for it, the page draws every tab and every column, and the .xlsx writer writes no hidden flag. The words therefore send working columns to a tab of their own, which the .xlsx keeps as well.

The change

references/build.md, new section "Working columns go on a tab of their own":

  • Working columns (ranks, tie-breaks, running counts, the figures a lookup reads) go on a tab named Workings, last in the list. Each column gets a header that says what it is.
  • Lists people edit (teams, players) stay on a tab they fill in, under a plain header. Figures a read tab shows again go on Workings, not beside the list's names.
  • A ranked table: a position per name on Workings, with ties split on the next figure and then by the list's order, so each position appears once. The read tab lists 1, 2, 3 and looks each row up:
    =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)
    =INDEX(Workings!A$2:A$7,MATCH($A2,Workings!$D$2:$D$7,0))
    
  • "Checks before you finish" gains item 5: a tab people read shows each figure once.

references/functions.md: RANK, LARGE, SMALL and ROW join the not-supported list, which points to the pattern.

No engine, page or script change.

Tested

  • The pattern in the engine (sheet.js check), with two and three keys, including a full tie: positions come out 1 to 6 with each appearing once, and the lookups return the right teams.
  • node tests/run.js 82/82. spacesheep skills lint: well-formed, hash d88555811346.
  • The same ask, rerun on staging with this branch, once per model:
Model Tab people read Working columns Names people edit
Before (v2.0.1) table twice, "Sort key", "Rank" beside the table beside the table
Opus 5.5 (claude-opus-5-5, xhigh) League table: one table, plus a next-game panel below Workings, last Fixtures, "League teams (ours first)"
Sonnet 5.5 (claude-sonnet-5-5, medium) Table: one table Workings, last Teams, "Teams in the league"

All runs pass sheet.js check. An earlier Opus run, made before the "figures a read tab shows again" line, kept each team's totals beside the names on its Teams tab. That line is the second commit.

Worth a close look

  • Whether "Workings" as a fixed name reads well in other languages and asks.
  • The third COUNTIFS term's growing range (B$2:B2) is what makes every position unique. It assumes the list has no blank rows inside the ranges.

jamescalam and others added 3 commits November 15, 2026 16:37
…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 <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
… list's names

Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Pointman <noreply@pointman.ai>
Co-authored-by: Claude <noreply@anthropic.com>
@jamescalam
jamescalam merged commit d681d69 into main Nov 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant