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.
"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]; ...)Argumentos.
Confira abaixo o detalhamento de cada parâmetro aceito por esta função.
The first range to apply the first condition against.
Exemplo:A2:A6The condition to check in criteria_range1.
Exemplo:"Pending"The second range to evaluate.
Exemplo:B2:B6The condition to check in criteria_range2.
Exemplo:">100"Exemplo passo a passo.
Cenário de AplicaçãoFiltered Survey Counts
Count how many high-spending customers gave a positive response.
| Customer | Purchase Size | Feedback Yes/No | Min Purchase | Qualified Count |
|---|---|---|---|---|
| John | 120 | Yes | >=100 | — |
| Sarah | 45 | Yes | — | — |
| Mike | 250 | No | — | — |
=COUNTIFS(B2:B6, ">=100", C2:C6, "Yes")Evaluates COUNTIFS over the sample table cells, placing the verified output in cell E2.
Gerador de fórmula.
Abrir Assistente CompletoPreencha os campos abaixo para gerar uma fórmula pronta para copiar e colar na sua planilha.
=CONT.SES()Comportamento do resultado.
Returns "Calculated output" based on sample evaluation criteria and active cell references.
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.
Compatibilidade de software e versão.
Validação técnica fundamentada nas especificações oficiais da Microsoft e do Google.
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.
100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.
Perguntas frequentes.
Dúvidas TécnicasCan 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.