This skill handles workbook-specific financial/statistical formula construction.
Knowledge internalized:
- The lookup blocks H12:L17, H19:L24, and H26:L31 must contain formulas, not pasted values.
- For this workbook, stable lookup formulas are built with
INDEXon the exact Data row for each series andMATCHon the year header inData!I4:M4against the Task year cells in row 9. - Net exports percent of GDP is
(exports - imports) / GDPwith blank/zero guard. - Summary rows are MIN row 43, MAX row 44, MEDIAN row 45, AVERAGE row 46, 25th percentile row 47, 75th percentile row 48.
- Percentiles must use
PERCENTILE.INC, not legacyPERCENTILE. - GCC weighted mean is on row 50 and uses
SUMPRODUCT(ratios, GDPs)/SUM(GDPs). - Formula strings must be English and comma-separated.
Functions:
map_task_ranges()build_two_key_lookup_formula(task_row, year_col)build_lookup_formula_map()build_net_exports_pct_formula(ratio_row, year_col)build_summary_stat_formulas(year_col)build_weighted_mean_formula(year_col)build_formula_map()