ExcelFormulas logoExcelFormulas.
Perguntar à IA
Statistical & AnalysisTestado por QA

CONT.SES (COUNTIFS).

Conta o número de células em vários intervalos que atendem a múltiplos critérios.

Statistical & Analysis
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Como funciona na prática.

CONT.SES é uma função essencial no Excel. Conta o número de células em vários intervalos que atendem a múltiplos critérios. Facilita a automação de relatórios, otimiza consultas de dados e garante máxima produtividade no seu fluxo de trabalho.

💡 Em termos simples.

Counts how many cells in one or more ranges meet specific conditions.

Analogia do Dia a Dia

"Think of this like counting toys. It counts only the toys that match your description (like counting only red blocks, ignoring blue cars and red balls)."

Sintaxe.

Notação Oficial do Excel
=CONT.SES(intervalo_critérios1; critérios1; [intervalo_critérios2; critérios2]; ...)
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.

criteria_range1Obrigatório

The first range to apply the first condition against.

Exemplo: A2:A6
criteria1Obrigatório

The condition to check in criteria_range1.

Exemplo: "Pending"
criteria_range2Opcional

The second range to evaluate.

Exemplo: B2:B6
criteria2Opcional

The condition to check in criteria_range2.

Exemplo: ">100"

Exemplo passo a passo.

Cenário de Aplicação

Filtered Survey Counts

Count how many high-spending customers gave a positive response.

CustomerPurchase SizeFeedback Yes/NoMin PurchaseQualified Count
John120Yes>=100—
Sarah45Yes——
Mike250No——
Fórmula Aplicada
=COUNTIFS(B2:B6, ">=100", C2:C6, "Yes")
Resultado Esperado::Calculated output

Evaluates COUNTIFS over the sample table cells, placing the verified output in cell E2.

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

  • Use wildcards like "?" (matches single char) and "*" (matches any sequence) to count partial text matches.
  • Use COUNTIFS to count blanks using double quotes: "" or non-blanks using "<>".

Erros Mais Comuns

  • Just like SUMIFS, all criteria ranges must be the exact same height and width, or the function fails with a #VALUE! error.
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✓
Compatível
Google Sheets✓
Compatível
Histórico e Versões do Excel

Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.

Notas sobre o Google Planilhas

100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.

Perguntas frequentes.

Dúvidas Técnicas
Can I use COUNTIFS across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =COUNTIFS(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in COUNTIFS?↓

Just like SUMIFS, all criteria ranges must be the exact same height and width, or the function fails with a #VALUE! error.

Does COUNTIFS work identically in Google Sheets?↓

Yes, COUNTIFS is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.