Informazioni sull’esercizio
Un set di dati di 80 righe su un foglio, 3 celle di risposta, circa 4 minuti. Correzione nel tuo browser: il valore e la formula che lo produce, con indicazioni su cosa sistemare.
Come risolverlo
- I2
=COUNT(E2:E81) - I3
=COUNTA(C2:C81) - I4
=COUNTBLANK(C2:C81)
The three functions differ only in what they count. COUNT looks at E2:E81 and counts the 75 cells that contain numbers, skipping the 5 cells with the text "n/a". COUNTA counts every cell in C2:C81 that is not empty (71), and COUNTBLANK counts the 9 empty ones, which is why I3 and I4 add up to 80.
Pitfall 1: COUNT ignores text that merely looks like a number ("12" stored as text), so a column imported from a CSV can return a smaller count than you expect; use VALUE or Paste Special → Multiply by 1 to convert first. Pitfall 2: a cell containing a formula that returns "" is counted by COUNTA and also by COUNTBLANK, so the two can add up to more than the row count after you add helper formulas. Alternatives: COUNTIF(E2:E81,"<>n/a") counts the numeric rows when you know the text marker; SUMPRODUCT(--ISNUMBER(E2:E81)) is the array-style equivalent of COUNT and survives being nested in bigger formulas. Performance: all three are O(n) and fine on hundreds of thousands of rows; never wrap them in volatile functions like INDIRECT when the ranges can be whole columns instead.
Altri metodi validi
- =COUNTIF(E2:E81,"<>n/a") — same result as COUNT here because the only non-numbers are the "n/a" cells
- =SUMPRODUCT(--ISNUMBER(E2:E81)) — array-style equivalent of COUNT
- =ROWS(C2:C81)-COUNTA(C2:C81) — same as COUNTBLANK
Errori comuni
Writing =COUNT(C2:C81) for the contact names. Names are text, so COUNT returns 0 — the function for "how many cells are filled" is COUNTA.
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 15 novembre 2026. Autore: GridBelt team.