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

SUMIF practice: total sales by region from 150 invoices

  • Principiante
  • ~5 min
  • SUMIF and SUMIFS

Enunciado en inglés

Finance exported the 150 invoices of Q3 2026: one row per invoice with the region (North, South, East, West), the rep and the amount. The regional directors want their quarter's total on a small summary block, and the block must survive the next export without being rebuilt. The four region names are already typed in G2:G5; put each region's total sales next to it.

Qué tienes que hacer

  1. 1Click H2. The region for this summary row is in G2 (North); the invoice regions are in C2:C151 and the amounts in E2:E151.
  2. 2Write SUMIF with three arguments: the range to test (C2:C151), the criterion (the cell G2) and the range to add (E2:E151). Lock both ranges with $ (select each and press F4 on Windows, ⌘T on Mac).
  3. 3Press Enter and fill H2 down to H5 (drag the fill handle, or select H2:H5 and press Ctrl+D / ⌘D).
  4. 4The four totals must add up to the sum of column E (select E2:E151 and read the status bar). Then click Check (Ctrl+Enter / ⌘+Return).

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 comprobarIn H2:H5, use SUMIF to total the amounts in E2:E151 for the region named in column G of the same row — one formula in H2, filled down.

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 150 filas en una hoja, una celda de respuesta, unos 5 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=SUMIF($C$2:$C$151,G2,$E$2:$E$151)

SUMIF(range, criterion, sum_range) looks down the first range, and wherever a cell matches the criterion it adds the cell in the same row of the sum range. Here the region column is tested against the label in G2 and the amounts in E2:E151 are added, so one formula filled down gives all four regional totals. The $ signs keep both ranges fixed while the criterion cell moves from G2 to G5.

Pitfall 1: filling =SUMIF(C2:C151,G2,E2:E151) down without $ shifts both ranges by a row per copy; the totals look plausible but no longer add up to the grand total — always reconcile the block against SUM(E2:E151). Pitfall 2: a sum range of a different size or offset from the test range (C2:C151 against E3:E152) silently adds the wrong rows; keep both ranges aligned row for row. Pitfall 3: "North " with a trailing space or "north-east" in the export will not match "North"; SUMIF matching is case-insensitive but otherwise exact unless you use wildcards ("North*"). Alternatives: SUMIFS($E$2:$E$151,$C$2:$C$151,G2) puts the sum range first and scales to more conditions (region and product, two exercises on); SUMPRODUCT(($C$2:$C$151=G2)*$E$2:$E$151) is the array form; a pivot table gives the same four numbers but needs a manual refresh after each export. Reporting tip: add =H2/SUM($H$2:$H$5) next to the block for each region's share — the percentage exercise in the Basics track.

Otras formas válidas

  • =SUMIFS($E$2:$E$151,$C$2:$C$151,G2) — SUMIFS with one condition; note the sum range comes first (not accepted here, because this task asks for SUMIF)
  • =SUMPRODUCT(($C$2:$C$151=G2)*$E$2:$E$151) — array form
  • =SUMIF(C:C,G2,E:E) — whole-column references; acceptable while the columns hold nothing else

Errores frecuentes

Filling =SUMIF(C2:C151,G2,E2:E151) down without locking the ranges: H3 tests C3:C152 and adds E3:E152, so the second to fourth totals drift and the block no longer reconciles with the grand total.

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 1Día 4
  • Excel for Administrative AssistantsDía 4
  • Excel for Sales and MarketingDía 1

Ejercicios relacionados

  • Total of orders above $500Principiante, ~4 min
  • Sales by region and product with SUMIFSIntermedio, ~7 min
  • Orders per status with COUNTIFPrincipiante, ~5 min

Referencia de la función

Documentación oficial

Siguiente ejercicio

Total of orders above $500