# Excel Statistics Formulas

> Excel statistical functions (MIN, MAX, MEDIAN, AVERAGE, PERCENTILE, SUMPRODUCT) with ROUND.

- Skill: `cxcscmu/excel-statistics-formulas` (Agent Skill)
- Install (CLI): `npx get-skill add cxcscmu/excel-statistics-formulas`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cxcscmu/excel-statistics-formulas/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: cxcscmu (https://skillmd.com/u/cxcscmu)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/cxcscmu/excel-statistics-formulas

---


# Excel Statistical Formulas

## Common Statistical Functions
```
=MIN(range)
=MAX(range)
=MEDIAN(range)
=AVERAGE(range)
=PERCENTILE(range, k)    -- k is 0 to 1 (e.g., 0.25 for 25th percentile)
```

## ROUND Function
```
=ROUND(value, num_digits)   -- e.g., ROUND(12.345, 1) = 12.3
```

## SUMPRODUCT for Weighted Mean
GDP-weighted mean of net exports as % of GDP:
```
=ROUND(SUMPRODUCT(Exports - Imports) / SUM(GDP) * 100, 1)
```

This works because:
- weighted_mean = Σ(gdp_i × (exp_i - imp_i)/gdp_i) / Σ(gdp_i) × 100
- Simplifies to: Σ(exp_i - imp_i) / Σ(gdp_i) × 100
- SUMPRODUCT handles the element-wise subtraction and summation

