Pular para o conteúdo
GridBelt
  • Teste de Excel
  • Prática
  • Programas
  • Preços
Entrar
Começar o teste gratuito
  • Teste de Excel
  • Prática
  • Programas
  • Preços
EntrarCriar conta
Começar o teste gratuito
GridBelt

Pratique Excel no seu navegador.

Teste de Excel

  • Nível 1: Iniciante
  • Nível 2: Intermediário
  • Nível 3: Avançado
  • Teste de Excel em 7 dias
  • Ranking
  • Teste de Excel para entrevista
  • Avaliação de Excel da Indeed

Prática

  • Todos os exercícios
  • Programas
  • Para iniciantes

Guias

  • Fórmulas do Excel
  • Atalhos do Excel

Empresa

  • Sobre nós
  • Preços
  • Como corrigimos

© GridBelt. Todos os direitos reservados.

  • Política de Privacidade
  • Termos de Uso
  • Política de Reembolso

Excel é uma marca comercial da Microsoft Corporation. Indeed, TestGorilla, SHL e outras marcas pertencem aos seus respectivos proprietários. O GridBelt é um site de prática independente e não tem afiliação com Microsoft, TestGorilla, SHL ou Indeed, nem é endossado ou patrocinado por eles.

  1. Prática
  2. /
  3. IF function

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

  • Intermediário
  • ~5 min
  • IF function

Enunciado em 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.

O que você precisa fazer

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

Células de resposta

Correção

Digite sua fórmula na grade, pressione Enter e depois clique em Verificar. Avaliamos o valor de cada célula de resposta e a fórmula por trás dele.

Tarefas

  1. Não verificadoIn 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.

Recomendamos um computador para as tarefas de planilha. A planilha rola dentro desta caixa.

StartInsertFormulasDataView
A1fxPreparando sua pasta de trabalho…
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

Digite sua fórmula na planilha e depois verifique.

Sobre este exercício

Um conjunto de dados de 120 linhas em uma planilha, uma célula de resposta, cerca de 5 minutos. Corrigido no seu navegador: o valor e a fórmula por trás dele, com feedback que mostra o que corrigir.

Como resolver

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

Outras formas que funcionam

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

Erros comuns

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.

Como corrigimos

Qualquer fórmula que produza o resultado certo é aceita, a menos que a tarefa cite uma função: nesse caso, outra função vale metade da pontuação. Comparamos os valores com uma pequena tolerância e ignoramos maiúsculas e espaços no texto. Um número certo digitado à mão em vez de uma fórmula vale metade da pontuação. Tarefas com várias células valem a pontuação integral com 100% das células certas e metade a partir de 50%. Quando faz diferença, também mudamos uma célula de entrada em uma cópia da sua planilha e verificamos se sua fórmula acompanha.

Respostas calculadas com as regras do Excel 365 e verificadas no nosso corretor em 16 de novembro de 2026. Autor: GridBelt team.

Nestes programas

  • Excel for Administrative AssistantsDia 8
  • Excel for Accounting and BookkeepingDia 3
  • Learn Excel From ScratchDia 10

Exercícios relacionados

  • Pass or Fail with IFIniciante, ~4 min
  • Margin % without #DIV/0!Intermediário, ~6 min
  • Orders per status with COUNTIFIniciante, ~5 min

Referência da função

Documentação oficial

Próximo exercício

Margin % without #DIV/0!