Vai al contenuto
GridBelt
  • Test Excel
  • Esercizi
  • Programmi
  • Prezzi
Accedi
Inizia il test gratuito
  • Test Excel
  • Esercizi
  • Programmi
  • Prezzi
AccediCrea un account
Inizia il test gratuito
GridBelt

Esercitati con Excel nel tuo browser.

Test Excel

  • Livello 1: Principiante
  • Livello 2: Intermedio
  • Livello 3: Esperto
  • Test Excel in 7 giorni
  • Classifica
  • Test Excel per il colloquio
  • Valutazione Excel di Indeed

Esercizi

  • Tutti gli esercizi
  • Programmi
  • Per principianti

Guide

  • Formule Excel
  • Scorciatoie Excel

Azienda

  • Chi siamo
  • Prezzi
  • Come valutiamo

© GridBelt. Tutti i diritti riservati.

  • Informativa sulla privacy
  • Termini di utilizzo
  • Politica di rimborso

Excel è un marchio di Microsoft Corporation. Indeed, TestGorilla, SHL e gli altri marchi appartengono ai rispettivi proprietari. GridBelt è un sito di esercitazione indipendente e non è affiliato a Microsoft, TestGorilla, SHL o Indeed, né approvato o sponsorizzato da queste società.

  1. Esercizi
  2. /
  3. IF function

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

  • Intermedio
  • ~5 min
  • IF function

Testo dell’esercizio in inglese

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.

Cosa devi fare

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

Celle di risposta

Correzione

Scrivi la formula nella griglia, premi Enter, poi Verifica. Valutiamo il valore in ogni cella di risposta e la formula che lo produce.

Attività

  1. Non verificatoIn 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.

Consigliato il computer per le attività sul foglio di calcolo. Il foglio scorre all’interno di questo riquadro.

StartInsertFormulasDataView
A1fxPreparazione della cartella di lavoro…
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

Inserisci la formula nel foglio, poi verifica.

Informazioni sull’esercizio

Un set di dati di 120 righe su un foglio, una cella di risposta, circa 5 minuti. Correzione nel tuo browser: il valore e la formula che lo produce, con indicazioni su cosa sistemare.

Come risolverlo

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

Altri metodi validi

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

Errori comuni

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.

Come valutiamo

È accettata qualsiasi formula che produce il risultato giusto, a meno che l’attività non indichi una funzione: in quel caso un’altra funzione vale metà dei punti. Confrontiamo i valori con una piccola tolleranza e ignoriamo maiuscole, minuscole e spazi nel testo. Un numero corretto digitato a mano invece di una formula vale metà dei punti. Le attività su più celle valgono il punteggio pieno con il 100% delle celle giuste, metà dei punti dal 50%. Dove serve, cambiamo anche una cella di input su una copia del tuo foglio e controlliamo che la formula si aggiorni.

Risposte calcolate con le regole di Excel 365 e verificate nel nostro correttore in data 16 novembre 2026. Autore: GridBelt team.

In questi programmi

  • Excel for Administrative AssistantsGiorno 8
  • Excel for Accounting and BookkeepingGiorno 3
  • Learn Excel From ScratchGiorno 10

Esercizi correlati

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

Guida alla funzione

Documentazione ufficiale

Esercizio successivo

Margin % without #DIV/0!