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. IF function

IF and ISBLANK practice: flag missing Tax IDs in 120 vendor rows

  • Intermedio
  • ~5 min
  • IF function

Enunciado en inglés

Accounts payable received the supplier master list from procurement: 120 vendors with category, contact email, Tax ID and payment terms. The system refuses to pay a supplier without a Tax ID, and the list has gaps in that column. Add a check column that reads Missing where the Tax ID is blank and OK everywhere else, so the team can filter the vendors to chase before the payment run.

Qué tienes que hacer

  1. 1Click G2. The Tax ID for this vendor is in E2 — here it happens to be empty.
  2. 2Enter an IF formula whose test asks whether E2 is blank: ISBLANK(E2) returns TRUE for an empty cell, and so does E2="". Show "Missing" when the test is true and "OK" otherwise.
  3. 3Press Enter and fill G2 down to G121 (double-click the fill handle, or select G2:G121 and press Ctrl+D / ⌘D).
  4. 4Type a Tax ID into E2 and the flag must flip to OK; undo it (Ctrl+Z / ⌘Z) and 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 G2, write an IF formula that shows "Missing" when the Tax ID in E2 is blank and "OK" otherwise — ISBLANK(E2) or E2="" both work — then fill it down to G121.

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 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

  • G2=IF(ISBLANK(E2),"Missing","OK")

ISBLANK(E2) returns TRUE when the cell has nothing in it — no value, no formula — and FALSE for anything else, including a single space. Wrapped in IF, that TRUE/FALSE becomes the Missing / OK label. The test E2="" reaches the same result on this data because every gap here is a genuinely empty cell; filling the formula down checks all 120 vendors in one go.

Pitfall 1: ISBLANK and ="" disagree on two kinds of cells — a formula that returns "" (ISBLANK says FALSE, ="" says TRUE) and a cell containing only spaces (both say FALSE). Exports from ERP systems often pad empty fields with a space; =IF(TRIM(E2)="",…) or =IF(LEN(TRIM(E2))=0,…) catches those too. Pitfall 2: writing =IF(E2=" ",…) or =IF(E2=0,…) — a blank cell compares equal to 0 in Excel, but so does a Tax ID of 0, and the space-version only matches cells with exactly one space. Pitfall 3: ISBLANK(E2:E121) in a single cell does not count blanks; use COUNTBLANK(E2:E121) for the total, which is the next natural question after this flag column. Alternatives: COUNTBLANK(E2)=1 as the test; IF(E2<>"","OK","Missing") written from the non-blank side. Downstream: the flag column is what you filter on (Ctrl+Shift+L / ⌘+Shift+F) and what COUNTIF(G2:G121,"Missing") summarises for the status report.

Otras formas válidas

  • =IF(E2="","Missing","OK") — equality test instead of ISBLANK; also treats an empty-string result as blank
  • =IF(LEN(TRIM(E2))=0,"Missing","OK") — survives cells that contain only spaces
  • =IF(COUNTBLANK(E2)=1,"Missing","OK") — COUNTBLANK on a single cell returns 1 for a blank

Errores frecuentes

Testing E2=" " (a space between the quotes) or E2=0: the first never matches an empty cell, the second also matches real values, so the flags are wrong on some rows. Use ISBLANK(E2) or E2="" with nothing between the quotes.

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 for Administrative AssistantsDía 8
  • Excel for Accounting and BookkeepingDía 3
  • Learn Excel From ScratchDía 10

Ejercicios relacionados

  • Pass or Fail with IFPrincipiante, ~4 min
  • Margin % without #DIV/0!Intermedio, ~6 min
  • Orders per status with COUNTIFPrincipiante, ~5 min

Referencia de la función

Documentación oficial

Siguiente ejercicio

Margin % without #DIV/0!