endueendue

Spreadsheet (XLSX)

Use when the result has to be an Excel file that people can edit. Puts the answer on the first sheet, built from formulas, with inputs, data and checks behind it.

v3.0.0

このスキルでできること

エージェントが従う指示の全文です。ログインしなくても、すべて読めます。

Spreadsheet (XLSX)

How to build a workbook with save_spreadsheet. Write sheet names, headers, statuses and text in the user's language.

A template or layout set by the task comes first. Use this guide for the rest.

Sheets, in this order

Keep only the ones the request needs. A plain list is one data sheet.

  1. Summary: one table with a row per group: its name (no rank column), result, target, gap, rate, status, and anything else asked for, such as a bonus. Sort by today's status, ✕, △, ✓, then lowest rate (formulas don't re-sort). No status: largest first. Dates keep their order. Add a total row and, if a column fits, one chart that answers the question.
  2. Inputs: every rate, target and limit the user may change: name, value, unit, source. Put rates and amounts in separate value columns. Formulas point here, such as Inputs!$B$2. Never type such a number into a formula.
  3. Data: one sheet per kind of record, one row per record. Keep the user's values as they are. Never fix, fill in or merge them.
  4. Checks: check, first total, second total, difference, status. Compare each breakdown with the total of the data.
  5. Notes: sources, definitions, assumptions and problems found in the data.

Tables

  • One table per sheet, from A1. Row 1 is the header (frozen, with a filter). No merged cells, empty rows or columns, or text above or beside it. Sheet names: up to 31 characters, none of [ ] : * ? / \
  • header names the field and its unit. Set type for every column that isn't text: integer; number; currency (digits only); percent ("12.5%"); date ("YYYY-MM-DD"). IDs, phone numbers and codes stay text.
  • Every row has one cell per column, in order. Use "" for an unknown value.
  • total_row: true marks the last row. It stays out of the filter, colors and chart. On a data sheet use =SUBTOTAL(109,C2:C13), which follows the filter. Leave it empty where adding makes no sense. A total rate is total ÷ total, never a sum or average of rates.
  • Formulas on other sheets read only the data rows, never their total row.

Formulas

  • Use one for every total, gap, rate and status, with the same pattern down the column. Data starts at row 2: check each range against the real rows. Split long formulas into columns.
  • Use only SUM, SUBTOTAL, SUMIFS, COUNTIFS, AVERAGEIFS, AVERAGE, MIN, MAX, COUNT, COUNTA, ROUND, ROUNDUP, ABS, IF, AND, OR, IFERROR, INDEX, MATCH and EDATE. They work in every Excel version and previews show their values. No array formulas.
  • Show problems. Never use IFERROR(…,0): for a missing value or a zero divisor, write "Can't calculate".
  • Text that looks like a date ("2026-09") can match wrongly in SUMIFS. Use the month's first day as a real date, or a plain name ("September").

Show what matters

  • Status: a text column with style: "status". The formula's text starts with ✓ (good), △ (watch) or ✕ (act), then a word: =IF(E2>=Inputs!$B$2,"✓ Met",IF(E2>=Inputs!$B$3,"△ Watch","✕ Missed")).
  • bar: one amount column with 8 or more rows. scale: a grid of at least 3 × 3 cells with one measure. Nothing else gets color.
  • chart: 3-30 rows. bar for groups, line for dates; values share one unit. The title (up to 30) names what is compared, since an edit can change the result. Never chart a column that can show text or an error.

Before you save

  • Work out each total another way. They match, and Checks shows ✓.
  • Changing an input changes every result that depends on it.

Saving

  • Up to 5,000 rows per sheet. Split larger data by period, or summarize it and say what is left out.
  • Call save_spreadsheet once with all sheets: a path under /data/ ending in .xlsx and a one-line description. To revise, use the same path and all the updated sheets.

Your reply

Two to four lines: the answer with its number, what each sheet is for, and any missing, doubtful or assumed value. Don't paste the table.

無料で始める

登録後、ワンクリックでSpreadsheet (XLSX)をエージェントに追加できます。

ほかのスキル