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. COUNTIF and COUNTIFS

COUNTIF practice: orders per status on a 200-row export

  • Principiante
  • ~5 min
  • COUNTIF and COUNTIFS

Enunciado en inglés

The web shop's order export for September–October lists 200 orders with a Status column: Delivered, Shipped, Processing or Cancelled. Customer service wants a small status board — how many orders are in each state — that keeps updating as the export is refreshed. The four status names are already typed in G2:G5; put the counts next to them.

Qué tienes que hacer

  1. 1Click H2. The status for this summary row is in G2 ("Delivered"); the statuses of all orders are in D2:D201.
  2. 2Write COUNTIF with the range first and the criterion second: the range is D2:D201, the criterion is the cell G2 — not the typed word. Lock the range with $ (select it and press F4 on Windows, ⌘T on Mac) so it stays put when you fill down.
  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 counts must add up to 200. 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 COUNTIF to count how many orders in D2:D201 have the status 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 200 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=COUNTIF($D$2:$D$201,G2)

COUNTIF(range, criterion) counts the cells in the range that match the criterion. With the range locked as $D$2:$D$201 and the criterion pointing at the label in column G, one formula filled down produces all four counts, and the board updates when the export is refreshed. Text criteria are matched case-insensitively, so "delivered" would count the same rows as "Delivered".

Pitfall 1: filling =COUNTIF(D2:D201,G2) down without $ shifts the range to D3:D202, D4:D203 … — the counts drift by a row each time and the totals no longer add up to 200. Pitfall 2: typing the status into the formula (=COUNTIF($D$2:$D$201,"Delivered")) works but must be edited in four places and breaks the fill-down; referencing G2 keeps the board data-driven. Pitfall 3: exports with trailing spaces or "Canceled" vs "Cancelled" create silent misses — a quick SUM of the counts against the row count catches them. Alternatives: COUNTIFS($D$2:$D$201,G2) is COUNTIF with room for more conditions (status and month, next exercise); SUMPRODUCT(($D$2:$D$201=G2)*1) is the array form; in Excel 365, =COUNTIF($D$2:$D$201,G2:G5) spills all four counts from one cell. Whole-column references (D:D) are acceptable here because column D holds only statuses and a header; avoid them inside SUMPRODUCT, which would evaluate a million rows.

Otras formas válidas

  • =COUNTIFS($D$2:$D$201,G2) — same count with the multi-criteria function
  • =SUMPRODUCT(($D$2:$D$201=G2)*1) — array-style count without COUNTIF (not accepted here, because this task asks for COUNTIF)
  • =COUNTIF(D:D,G2) — whole-column reference; fine while column D holds nothing but statuses

Errores frecuentes

Filling =COUNTIF(D2:D201,G2) down without locking the range: H3 counts D3:D202, H4 counts D4:D203, and the four counts no longer add up to 200.

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

Ejercicios relacionados

  • Count .edu emails with a wildcardPrincipiante, ~4 min
  • Orders per region and month with COUNTIFSIntermedio, ~7 min
  • Sales by region with SUMIFPrincipiante, ~5 min

Referencia de la función

Documentación oficial

Siguiente ejercicio

Count .edu emails with a wildcard