excel-statistical-formulas

excel-statistical-formulas is a skill for Claude Code, Codex from cxcscmu/SkillLearnBench. It costs 24 tokens per session (1,117 once invoked), scanned A, original, MIT.

A guide to Excel formulas for summarizing data, including averages, medians, minimums, maximums, percentiles, and weighted means.

In plain words
What is it for?
Calculate descriptive statistics, percentile values, and weighted results with Excel formulas.
Why use it?
It makes common statistical summaries repeatable in a spreadsheet instead of requiring manual calculations.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cxcscmu/skilllearnbench/excel-statistical-formulas
Any agent
npx skills add cxcscmu/SkillLearnBench --skill excel-statistical-formulas
Clone the repo
git clone --depth 1 https://github.com/cxcscmu/SkillLearnBench

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for excel-statistical-formulas

README.md
[![agentmods](https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/excel-statistical-formulas.svg)](https://agentmods.dev/skills/cxcscmu/skilllearnbench/excel-statistical-formulas)
Your own site
<a href="https://agentmods.dev/skills/cxcscmu/skilllearnbench/excel-statistical-formulas"><img src="https://agentmods.dev/badge/skills/cxcscmu/skilllearnbench/excel-statistical-formulas.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,117 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00024 $0.01117
Opus 5 $0.00012 $0.00558
Sonnet 5 $0.00005 $0.00223
Haiku 4.5 $0.00002 $0.00112

Measured yesterday against content hash 875a7a4fe3c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

excel-statistical-formulas scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/b1-one-shot-claude-haiku-4-5/weighted-gdp-calculation/excel-statistical-formulas/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Excel Statistical Formulas

Overview

Statistical functions in Excel calculate measures like mean, median, percentiles, and enable weighted calculations for economic data analysis.

Core Statistical Functions

Basic Descriptive Statistics

MIN - Returns the smallest value

=MIN(range)
=MIN(H35:L40)

MAX - Returns the largest value

=MAX(range)
=MAX(H35:L40)

MEDIAN - Returns the middle value

=MEDIAN(range)
=MEDIAN(H35:L40)

AVERAGE - Returns the arithmetic mean

=AVERAGE(range)
=AVERAGE(H35:L40)

Percentile Functions

PERCENTILE - Returns the kth percentile of a dataset

=PERCENTILE(range, k)

Where k is a decimal (0.25 for 25th percentile, 0.75 for 75th percentile)

Examples:

25th Percentile:  =PERCENTILE(H35:L40, 0.25)
75th Percentile:  =PERCENTILE(H35:L40, 0.75)

PERCENTILE.INC vs PERCENTILE.EXC:

  • PERCENTILE.INC: Inclusive method (older PERCENTILE function)
  • PERCENTILE.EXC: Exclusive method (newer, statistical best practice)

Weighted Mean Calculation

SUMPRODUCT for Weighted Mean

The SUMPRODUCT function multiplies corresponding elements in arrays and returns the sum of products.

Syntax:

=SUMPRODUCT(array1, array2, ...)

Weighted Mean Formula:

=SUMPRODUCT(values_array, weights_array) / SUM(weights_array)

Example: Weighted Mean of Net Exports by GDP Weight

=SUMPRODUCT(G35:G40, GDP_weights) / SUM(GDP_weights)

How it works:

  1. Multiply each value by its corresponding weight
  2. Sum all products
  3. Divide by sum of weights

Handling Multiple Columns

For data across multiple columns (like multiple years), you may need to:

  1. Flatten the data into single rows/columns, or
  2. Use array formulas with SUMPRODUCT

Example with multiple criteria:

=SUMPRODUCT((range1=criteria1)*(range2=criteria2)*values) / SUMPRODUCT((range1=criteria1)*(range2=criteria2)*weights)

Percentage Calculations

Converting to Percentage Display

Excel stores percentages as decimals (0.123 = 12.3%).

Read the full file on GitHub · 173 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 173 lines · 24 tokens per session scan A 875a7a4fe3c7

Subscribe to this mod's changes

excel-statistical-formulas is a skill published in the GitHub repository cxcscmu/SkillLearnBench (83 stars, last pushed 1mo ago), licensed MIT. It adds 24 tokens to every session and 1,117 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

xlsx-parsing

Read Microsoft Excel (.xlsx) files robustly with openpyxl (or pandas). Covers multi-sheet workbooks, header rows, empty cells, merged cells, comma-separated list cells, and converting a sheet to a list-of-dicts the rest of your code can consume. Use when a task input or reference document is an .xlsx file rather than…

benchflow-ai/skillsbench · 83 tokens

data-formats

Reading, writing, and converting common data formats (CSV, Excel, JSON, YAML) with correct handling of encoding, types, and edge cases.

A-EVO-Lab/a-evolve · 34 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify…

benchflow-ai/benchflow · 96 tokens

xlsx

Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify…

benchflow-ai/skillsbench · 96 tokens

xlsx

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or…

ECNU-ICALK/AutoSkill · 201 tokens

TypeScript 인터페이스 순서 기반 xlsx 엑셀 다운로드 구현

사용자가 정의한 TypeScript 인터페이스의 속성 순서를 기준으로 데이터 배열을 변환하고, xlsx 라이브러리를 사용하여 엑셀 파일로 다운로드하는 함수를 작성합니다.

ECNU-ICALK/AutoSkill · 59 tokens