agentsclimarketplace

Excel advanced formulas

Skill cxcscmu/SkillLearnBench/skills/b4-skill-creator-gemini-3.1-pro-preview/weighted-gdp-calculation/excel-advanced-formulas

How to write advanced Excel formulas (INDEX/MATCH, XLOOKUP, VLOOKUP, SUMPRODUCT, Percentiles, and other statistical functions). Use this skill whenever you need to populate Excel cells with advanced lookup or statistical formulas, or when calculating weighted averages in Excel.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill excel-advanced-formulas

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.9 KB, 427 tokens by cl100k_base, as published. Nobody here has run it

Excel Advanced Formulas Guide

This skill provides correct syntax and usage for common advanced Excel formulas, specifically for two-way lookups, statistical functions, and weighted means.

Lookups with Two Criteria

When you need to look up a value based on two criteria (e.g., matching a row and a column), use INDEX/MATCH, VLOOKUP/MATCH, or HLOOKUP/MATCH.

VLOOKUP with MATCH (2D Lookup)

=VLOOKUP(row_lookup_value, table_array, MATCH(col_lookup_value, header_range, 0), FALSE) Where header_range starts from the same column as table_array and spans across.

INDEX / MATCH (2D Lookup)

=INDEX(data_range, MATCH(row_lookup_value, row_labels_range, 0), MATCH(col_lookup_value, col_labels_range, 0))

XLOOKUP (Nested for 2D Lookup)

=XLOOKUP(row_lookup_value, row_labels_range, XLOOKUP(col_lookup_value, col_labels_range, data_range))

Statistical Functions

Use these formulas for basic descriptive statistics over a range:

  • Min: =MIN(range)
  • Max: =MAX(range)
  • Median: =MEDIAN(range)
  • Simple Mean: =AVERAGE(range)
  • 25th Percentile: =PERCENTILE.INC(range, 0.25)
  • 75th Percentile: =PERCENTILE.INC(range, 0.75)

Weighted Mean using SUMPRODUCT

To calculate a weighted mean (e.g., a metric weighted by GDP): =SUMPRODUCT(values_range, weights_range) / SUM(weights_range)

Note on Percentages: If requirements state percentages should be rounded to one decimal place as whole numbers (e.g., 12.3 instead of 0.123), multiply the final calculation by 100: =(SUMPRODUCT(values, weights) / SUM(weights)) * 100 Or for regular formulas: = (value / total) * 100

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.