ExcelFormulas logoExcelFormulas.
Perguntar à IA
LógicaTestado por QA

SES (IFS).

Verifica se uma ou mais condições são atendidas e retorna o valor da primeira condição VERDADEIRA.

Lógica
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Como funciona na prática.

SES é uma função essencial no Excel. Verifica se uma ou mais condições são atendidas e retorna o valor da primeira condição VERDADEIRA. Facilita a automação de relatórios, otimiza consultas de dados e garante máxima produtividade no seu fluxo de trabalho.

💡 Em termos simples.

Checks multiple conditions in order and returns the grade/value matching the first true condition.

Analogia do Dia a Dia

"Think of this like a grading machine checking grades in order: IF score is 90+ print A, IF 80+ print B, IF 70+ print C, otherwise print F."

Sintaxe.

Notação Oficial do Excel
=SES(teste_lógico1; valor_se_verdadeiro1; [teste_lógico2; valor_se_verdadeiro2]; ...)
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.

logical_test1Obrigatório

The first condition to test.

Exemplo: C2>=90
value_if_true1Obrigatório

The value returned if the first condition is TRUE.

Exemplo: "A"
logical_test2Opcional

The second condition to test.

Exemplo: C2>=80
value_if_true2Opcional

The value returned if the second condition is TRUE.

Exemplo: "B"
logical_default_testOpcional

Use TRUE to create a catch-all default condition.

Exemplo: TRUE
value_if_defaultOpcional

The default value if no prior conditions are met.

Exemplo: "F"

Exemplo passo a passo.

Cenário de Aplicação

Score Grade Labeler

Assign grades A, B, C, or F based on scores.

NameSubjectScoreGradeScale
BellaScience92—90+ = A
CalebScience81—80+ = B
DylanScience74—70+ = C
Fórmula Aplicada
=IFS(C2>=90, "A", C2>=80, "B", C2>=70, "C", TRUE, "F")
Resultado Esperado::Calculated output

Evaluates IFS over the sample table cells, placing the verified output in cell D2: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

  • Always add a final condition of TRUE as a catch-all default at the end of the argument list (e.g. TRUE, "Other") so the formula doesn't return #N/A if no conditions match.

Erros Mais Comuns

  • IFS evaluates conditions from left to right. Make sure your conditions are in the correct order (e.g. start with >90, then >80, then >70).
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

Introduced in Excel 2019 and Excel 365. Supported in Excel 2019, 2021, and 365.

Notas sobre o Google Planilhas

100% compatible with Google Sheets with identical condition/value syntax pairs.

Perguntas frequentes.

Dúvidas Técnicas
Can I use IFS 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: =IFS(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 IFS?↓

IFS evaluates conditions from left to right. Make sure your conditions are in the correct order (e.g. start with >90, then >80, then >70).

Does IFS work identically in Google Sheets?↓

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