AGENT SKILL

excel-statistics-formulas

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

使用场景电子表格
License 许可
MIT
最近更新
2026-10-02
Stars
★ 93
Forks
8

01 前言 Front Matter

name
excel-statistics-formulas
description
Excel statistical functions (MIN, MAX, MEDIAN, AVERAGE, PERCENTILE, SUMPRODUCT) with ROUND.

03 SKILL.md 正文

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

04 同仓库更多 Skills