Sobre este ejercicio
Un conjunto de datos de 180 filas en una hoja, 2 celdas de respuesta, unos 8 minutos. Se corrige en tu navegador: el valor y la fórmula que lo produce, con comentarios que te dicen qué arreglar.
Cómo resolverlo
- I2
=AVERAGEIFS($F$2:$F$181,$B$2:$B$181,H2,$E$2:$E$181,"Won") - J2
=MAXIFS($F$2:$F$181,$B$2:$B$181,H2,$E$2:$E$181,"Won")
AVERAGEIFS and MAXIFS belong to the same family as SUMIFS: the range to summarise comes first, followed by pairs of range and criterion that every counted row must satisfy. Here the pairs are "rep equals the name in column H" and "stage equals Won", so lost and open deals are excluded from both the average and the maximum. With the data ranges locked and the rep reference left relative, one formula per column filled down covers all five reps.
Pitfall 1: AVERAGEIFS returns #DIV/0! when no row matches (a rep with no won deals yet); wrap it in IFERROR(…,0) or IFERROR(…,"–") on live dashboards. MAXIFS returns 0 in the same situation, which can look like a real value. Pitfall 2: averaging the whole pipeline (AVERAGEIF on the rep only) mixes open and lost deals into "average deal size" — the stage condition is what makes the metric meaningful. Pitfall 3: MAXIFS and MINIFS need Excel 2019 or 365; in Excel 2016 the equivalent is the array formula MAX(IF((B2:B181=H2)*(E2:E181="Won"),F2:F181)) entered with Ctrl+Shift+Enter, or AGGREGATE(14,6,F2:F181/((B2:B181=H2)*(E2:E181="Won")),1). Alternatives: SUMIFS(...)/COUNTIFS(...) reproduces the average and makes the deal count visible; LARGE(IF(...),1) is the general form for the second- or third-largest deal. Reading the result: the gap between average and largest deal shows how dependent a rep is on one big win — add COUNTIFS for the number of won deals to complete the review.
Otras formas válidas
- =SUMIFS($F$2:$F$181,$B$2:$B$181,H2,$E$2:$E$181,"Won")/COUNTIFS($B$2:$B$181,H2,$E$2:$E$181,"Won") — average as sum ÷ count
- =AGGREGATE(14,6,$F$2:$F$181/(($B$2:$B$181=H2)*($E$2:$E$181="Won")),1) — largest value without MAXIFS (Excel 2010+)
- =MAX(IF(($B$2:$B$181=H2)*($E$2:$E$181="Won"),$F$2:$F$181)) — array formula; Ctrl+Shift+Enter before Excel 365
Errores frecuentes
Leaving out the stage condition (AVERAGEIFS($F$2:$F$181,$B$2:$B$181,H2)): the figures include lost and open deals, so every average is off and the grader names the first rep whose numbers differ.
Cómo corregimos
Se acepta cualquier fórmula que produzca el resultado correcto, salvo que la tarea nombre una función: entonces otra función obtiene media puntuación. Comparamos los valores con una pequeña tolerancia y, en el texto, ignoramos mayúsculas y espacios. Un número correcto escrito a mano en lugar de una fórmula obtiene media puntuación. Las tareas de varias celdas obtienen la puntuación completa con el 100% de las celdas correctas y media puntuación desde el 50%. Cuando importa, también cambiamos una celda de entrada en una copia de tu hoja y comprobamos que tu fórmula se adapta.
Respuestas calculadas con las reglas de Excel 365 y comprobadas en nuestro corrector el 16 de noviembre de 2026. Autor: GridBelt team.