Xlsx index match stats

From XuShuwenn/RedAct · View interactive version

Xlsx index match stats is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Populate Excel/LibreOffice grids via two‑way INDEX–MATCH lookups and compute group means, standard deviations, and fold change with robust, cross‑engine formulas.

How to use this skill

Skill file

Two‑Way Lookup and Group Stats in Spreadsheets

Reusable workflow for filling a 2D block in a spreadsheet using two keys (row ID and column header), then computing per‑group means, standard deviations, and fold change (log2 FC and FC). Designed for Excel and LibreOffice compatibility.

When to Use

Activate this skill when you need to:

Core Workflow

  1. Inspect and map the layout
  1. Fill the expression block with two‑way lookups
  1. Compute group statistics on contiguous column ranges
  1. Calculate fold change metrics
  1. Recalculate and verify

Verification

Common Pitfalls and How to Avoid Them

Success Criteria

Optional Script Usage

You can use the helper to generate and/or apply robust formulas programmatically. It is parameterized and generic, avoiding any task‑specific constants.

Example (dry‑run to print formulas):

--workbook your.xlsx --task-sheet Task --data-sheet Data \

--expr-top-left C11 --expr-bottom-right L20 \

--id-col A --header-row 10 --data-id-col A --data-header-row 1 --data-last-col BZ \

--control-cols C:G --treated-cols H:L \

--stats-start-col B --stats-end-col K \

--stats-row-mean-control 24 --stats-row-stdev-control 25 \

--stats-row-mean-treated 26 --stats-row-stdev-treated 27 \

--fc-start-row 32 --fc-end-row 41

Remove --print-only to write formulas into the workbook.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.