Saltar al contenido
GridBelt
  • Prueba de Excel
  • Práctica
  • Programas
  • Precios
Iniciar sesión
Empezar la prueba gratuita
  • Prueba de Excel
  • Práctica
  • Programas
  • Precios
Iniciar sesiónCrear cuenta
Empezar la prueba gratuita
GridBelt

Practica Excel en tu navegador.

Prueba de Excel

  • Nivel 1: Principiante
  • Nivel 2: Intermedio
  • Nivel 3: Experto
  • Prueba de Excel en 7 días
  • Clasificación
  • Prueba de Excel para entrevistas
  • Evaluación de Excel de Indeed

Práctica

  • Todos los ejercicios
  • Programas
  • Para principiantes

Guías

  • Fórmulas de Excel
  • Atajos de Excel

Empresa

  • Acerca de
  • Precios
  • Cómo corregimos

© GridBelt. Todos los derechos reservados.

  • Política de privacidad
  • Términos de uso
  • Política de reembolso

Excel es una marca comercial de Microsoft Corporation. Indeed, TestGorilla, SHL y otras marcas son propiedad de sus respectivos titulares. GridBelt es un sitio de práctica independiente y no está afiliado a Microsoft, TestGorilla, SHL ni Indeed, ni respaldado ni patrocinado por ellos.

  1. Práctica
  2. /
  3. SUMIF and SUMIFS

SUMIFS practice: sales by region and product from 300 order lines

  • Intermedio
  • ~7 min
  • SUMIF and SUMIFS

Enunciado en inglés

The Q3 2026 order export has 300 order lines, each with a region (North, South, East, West), one of three products and the line amount. The sales director wants a region-by-product revenue table — the classic "pivot without a pivot" — built from formulas so it updates when the export is replaced. The grid is laid out in G1:J5: regions down column G, products across row 1. Fill it with a single formula.

Qué tienes que hacer

  1. 1Click H2. This cell must add the amounts of the lines whose region is the label in G2 (North) and whose product is the label in H1 (Standing desk).
  2. 2Write SUMIFS with the sum range first — E2:E301 — followed by pairs of range, criterion: the Region column C2:C301 against G2, then the Product column D2:D301 against H1.
  3. 3Lock the references for copying: the three data ranges fully ($E$2:$E$301, $C$2:$C$301, $D$2:$D$301), the region label by column only ($G2) and the product label by row only (H$1). F4 / ⌘T cycles through the $ variants.
  4. 4Press Enter, then fill H2 right to J2 with the fill handle, then select H2:J5 and press Ctrl+D / ⌘D to fill the row down to row 5. The twelve cells must add up to the total of column E. Then click Check.

Celdas de respuesta

Corrección

Escribe tu fórmula en la cuadrícula, presiona Enter y luego haz clic en Comprobar. Evaluamos el valor de cada celda de respuesta y la fórmula que lo produce.

Tareas

  1. Sin comprobarFill H2:J5 with the total amount (E2:E301) per region (labels in G2:G5) and product (labels in H1:J1) using SUMIFS — one formula with mixed references, copied across the whole grid (SUMPRODUCT is accepted too).

Para las tareas de hoja de cálculo se recomienda una pantalla grande. La hoja se desplaza dentro de este recuadro.

StartInsertFormulasDataView
A1fxPreparando tu libro…
A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sheet1

Escribe tu fórmula en la hoja y luego comprueba.

Sobre este ejercicio

Un conjunto de datos de 300 filas en una hoja, una celda de respuesta, unos 7 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

  • H2=SUMIFS($E$2:$E$301,$C$2:$C$301,$G2,$D$2:$D$301,H$1)

SUMIFS adds the cells of the sum range whose row satisfies every range/criterion pair — here region equals the row label and product equals the column label. Unlike SUMIF, the sum range comes first, which is what lets you add as many conditions as you need afterwards. Mixed references make one formula fit all twelve cells: $G2 follows the row, H$1 follows the column, and the three fully locked data ranges never move, so the grid reconciles to the total of column E.

Pitfall 1: SUMIFS is not SUMIF with more arguments — the argument order differs (sum range first), and mixing them up returns 0 or #VALUE!. Pitfall 2: locking the wrong half of a label reference (G$2 or $H1) produces a grid whose first row or first column is right and the rest wrong; check the bottom-right formula after filling. Pitfall 3: criteria ranges must be the same size as the sum range; $C$2:$C$301 against $E$2:$E$300 returns #VALUE!. Alternatives: SUMPRODUCT(($C$2:$C$301=$G2)*($D$2:$D$301=H$1)*$E$2:$E$301) is the array form and works in every version; a pivot table builds the same grid interactively but needs a refresh after each paste; in Excel 365, =SUMIFS($E$2:$E$301,$C$2:$C$301,G2:G5,$D$2:$D$301,H1:J1) spills the whole 4 × 3 grid from one cell. Performance: SUMIFS stops at the referenced range and is fast even on a hundred thousand lines; avoid whole-column references inside SUMPRODUCT, which would evaluate a million rows per cell.

Otras formas válidas

  • =SUMPRODUCT(($C$2:$C$301=$G2)*($D$2:$D$301=H$1)*$E$2:$E$301) — array form, same mixed references
  • =SUMIFS($E$2:$E$301,$D$2:$D$301,H$1,$C$2:$C$301,$G2) — the pairs in the other order
  • =SUMIFS($E$2:$E$301,$C$2:$C$301,G2:G5,$D$2:$D$301,H1:J1) in H2 — Excel 365 only; one spilling formula for the grid

Errores frecuentes

Filling =SUMIFS($E$2:$E$301,$C$2:$C$301,G2,$D$2:$D$301,H1) across without the mixed $: in I2 the labels slide to H2 (an answer cell) and I1, so the second column onwards adds the wrong lines or returns 0.

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.

En estos programas

  • Excel test in 7 days, Plan del nivel 2Día 4
  • Excel for Data AnalystsDía 2
  • Excel for Sales and MarketingDía 3

Ejercicios relacionados

  • Sales by region with SUMIFPrincipiante, ~5 min
  • Orders per region and month with COUNTIFSIntermedio, ~7 min
  • Average and largest deal per rep (AVERAGEIFS, MAXIFS)Intermedio, ~8 min

Referencia de la función

Documentación oficial

Siguiente ejercicio

Average and largest deal per rep (AVERAGEIFS, MAXIFS)