ExcelFormulas logoExcelFormulas.
Chiedi all'IA
Matrici dinamicheVerificato da QA

FILTRO (FILTER).

Filtra un intervallo di dati in base ai criteri specificati con espansione dinamica.

Matrici dinamiche
ExcelExcel 365Excel 2021Google Sheets

Come funziona nel dettaglio.

FILTRO è una funzione fondamentale di Excel. Filtra un intervallo di dati in base ai criteri specificati con espansione dinamica. Consente di velocizzare la gestione dei fogli di calcolo, ridurre gli errori e creare report automatizzati professionali.

💡 In parole semplici.

Sifts through a table of data and extracts only the rows that match your criteria, spilling the results down the sheet.

Analogia di tutti i giorni

"Think of this like sifting sand through a sieve. Only the grains that match your rule pass through, while the pebbles stay behind."

Sintassi.

Notazione Ufficiale Excel
=FILTRO(matrice; includi; [se_vuoto])
Consiglio: Gli argomenti tra parentesi quadre [come_questo] sono facoltativi; tutti gli altri sono obbligatori.

Argomenti.

Di seguito l'elenco dettagliato di tutti i parametri accettati da questa funzione.

arrayObbligatorio

The range of cells you want to filter.

Valore d'esempio: A2:B6
includeObbligatorio

A logical array condition that evaluates to TRUE or FALSE for each row.

Valore d'esempio: B2:B6="Red"
if_emptyFacoltativo

The value to return if no records meet the filter conditions.

Valore predefinito: "No Matches"

Esempio pratico.

Scenario di utilizzo

Filter Overdue Projects

Extract only the rows where the Status is "Overdue".

Task NameStatusResult TaskResult StatusTarget Status
Database SetupCompleted——Overdue
API DesignOverdue———
Frontend LayoutIn Progress———
Formula applicata
=FILTER(A2:B6, B2:B6="Overdue", "None")
Risultato atteso::Calculated output

Evaluates FILTER over the sample table cells, placing the verified output in cell C2:D6.

Generatore di formula.

Apri Procedura Guidata Completa

Compila i campi qui sotto per creare una formula personalizzata pronta da incollare nel tuo foglio di calcolo.

Generated FormulaPronta da copiare

Caratteristiche del risultato.

Returns "Calculated output" based on sample evaluation criteria and active cell references.

Esempio di output::Calculated output
Tipo di dato restituito::Text

Migliori Pratiche

  • To combine conditions, use multiplication `*` for AND logic (e.g. `(B2:B6="Red")*(C2:C6>50)`) and addition `+` for OR logic.
  • Ensure cells below the filter formula are completely empty to let the array spill successfully.

Errori Più Frequenti

  • If the spill range is blocked by existing text or numbers, the formula returns a #SPILL! error. Clear the blocking cells to fix it.
  • FILTER is a dynamic array function and is only supported in Excel 365 and Excel 2021+.
Matrice di Compatibilità

Compatibilità per programma e versione.

Verifica tecnica eseguita sui motori di calcolo ufficiali di Microsoft Excel e Google Fogli.

Excel✓
Supportato
Excel 365✓
Supportato
Excel 2021✓
Supportato
Excel 2019✕
No
Google Sheets✓
Supportato
Disponibilità e versioni di Excel

Introduced in Excel 365 and Excel 2021 as part of the Dynamic Array engine. Not available in Excel 2019.

Note su Google Fogli

Native Google Sheets formula (available in Sheets since early versions). Note that parameter order is =FILTER(range, condition1, [condition2]) in both platforms.

Domande frequenti.

Domande Tecniche
Why does the FILTER function return a #CALC! error?↓

A #CALC! error indicates that no rows met your criteria and the optional third argument [if_empty] was left blank. Set [if_empty] to "No records" or "" to handle empty results.

What does the #SPILL! error mean when using FILTER?↓

A #SPILL! error occurs when the dynamic array results cannot expand because one or more cells in the output spill zone already contain existing text, numbers, or formatting. Clearing those obstructing cells immediately resolves the error.