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 wildcard practice: count .edu addresses in 120 contacts

  • Principiante
  • ~4 min
  • COUNTIF and COUNTIFS

Enunciado en inglés

120 people signed up for a data-literacy conference. The organiser offers an academic rate to anyone registering with a university address, and finance wants to know how many sign-ups qualify before the invoices go out. A qualifying address ends in .edu — the list also contains .edu.au addresses from Australian institutions and company domains with "edu" inside the name, which do not qualify. Count the .edu addresses with one formula in H2.

Qué tienes que hacer

  1. 1Click H2. The email addresses are in D2:D121.
  2. 2Write COUNTIF with the range first and the criterion second. The criterion is text in quotes: an asterisk stands for any number of characters, so "*.edu" means "anything, then .edu at the very end".
  3. 3Press Enter. The count is case-insensitive, so addresses written in upper case (…@LAKESIDE.EDU) are included automatically.
  4. 4Sanity-check against the list: the 4 addresses ending in .edu.au must not be counted. 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, use COUNTIF with a wildcard to count how many email addresses in D2:D121 end in ".edu".

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 120 filas en una hoja, una celda de respuesta, unos 4 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(D2:D121,"*.edu")

COUNTIF accepts wildcards in text criteria: * stands for any sequence of characters (including none) and ? for exactly one character. "*.edu" therefore matches every address that ends in .edu, whatever comes before, and the comparison ignores case — 38 rows here. Because nothing may follow the pattern, an address ending in .edu.au is not matched, which is exactly the distinction finance needs.

Pitfall 1: "*edu*" matches "edu" anywhere — it returns 45 on this list by also counting .edu.au addresses and domains such as educonsult.com and medu.org. Pitfall 2: "*.edu" also matches a bare value ".edu" or "x.edu" with no @; if the data can contain junk, "*@*.edu" is the stricter pattern. Pitfall 3: to match a literal asterisk or question mark, escape it with a tilde ("~*"); and wildcards only work on text — a numeric column needs its own criteria (">500"). Alternatives: SUMPRODUCT(--(RIGHT(D2:D121,4)=".edu")) tests the last four characters without wildcards; COUNTIFS(D2:D121,"*.edu") is the same count with room for a second condition (role, country). In Excel 365, =ROWS(FILTER(D2:D121,RIGHT(D2:D121,4)=".edu")) lists and counts in one go; COUNTIF remains the fastest and most portable version.

Otras formas válidas

  • =COUNTIF(D2:D121,"*@*.edu") — stricter: requires an @ before the domain
  • =COUNTIFS(D2:D121,"*.edu") — the same count written with COUNTIFS (not accepted here, because this task asks for COUNTIF)
  • =SUMPRODUCT(--(RIGHT(D2:D121,4)=".edu")) — compares the last four characters instead of using a wildcard

Errores frecuentes

Writing the criterion as "*edu*" or "edu": the first over-counts (45 instead of 38) because it also matches .edu.au and company names containing "edu"; the second counts nothing, because COUNTIF without wildcards needs the whole cell to equal the text.

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.

Ejercicios relacionados

  • Orders per status with COUNTIFPrincipiante, ~5 min
  • Orders between two datesIntermedio, ~6 min
  • Flag rows with missing dataIntermedio, ~5 min

Referencia de la función

Documentación oficial

Siguiente ejercicio

Orders per region and month with COUNTIFS