ExcelFormulas logoExcelFormulas.
Perguntar à IA
Matrizes DinâmicasTestado por QA

FILTRO (FILTER).

Filtra um intervalo de dados com base nos critérios definidos, expandindo-se dinamicamente.

Matrizes Dinâmicas
ExcelExcel 365Excel 2021Google Sheets

Como funciona na prática.

FILTRO é uma função essencial no Excel. Filtra um intervalo de dados com base nos critérios definidos, expandindo-se dinamicamente. Facilita a automação de relatórios, otimiza consultas de dados e garante máxima produtividade no seu fluxo de trabalho.

💡 Em termos simples.

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

Analogia do Dia a Dia

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

Sintaxe.

Notação Oficial do Excel
=FILTRO(matriz; incluir; [se_vazio])
Dica: Argumentos entre colchetes [como_este] são opcionais; todos os outros são obrigatórios.

Argumentos.

Confira abaixo o detalhamento de cada parâmetro aceito por esta função.

arrayObrigatório

The range of cells you want to filter.

Exemplo: A2:B6
includeObrigatório

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

Exemplo: B2:B6="Red"
if_emptyOpcional

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

Padrão: "No Matches"

Exemplo passo a passo.

Cenário de Aplicação

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———
Fórmula Aplicada
=FILTER(A2:B6, B2:B6="Overdue", "None")
Resultado Esperado::Calculated output

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

Gerador de fórmula.

Abrir Assistente Completo

Preencha os campos abaixo para gerar uma fórmula pronta para copiar e colar na sua planilha.

Generated FormulaPronta para copiar

Comportamento do resultado.

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

Amostra de Saída::Calculated output
Tipo de Dado::Text

Boas Práticas

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

Erros Mais Comuns

  • 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+.
Matriz de Compatibilidade

Compatibilidade de software e versão.

Validação técnica fundamentada nas especificações oficiais da Microsoft e do Google.

Excel✓
Compatível
Excel 365✓
Compatível
Excel 2021✓
Compatível
Excel 2019✕
Não
Google Sheets✓
Compatível
Histórico e Versões do Excel

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

Notas sobre o Google Planilhas

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

Perguntas frequentes.

Dúvidas Técnicas
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.