ExcelFormulas logoExcelFormulas.
Perguntar à IA
LógicaTestado por QA

SE (IF).

Verifica se uma condição foi atendida e retorna um valor se for VERDADEIRO e outro se for FALSO.

Lógica
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Como funciona na prática.

SE é uma função essencial no Excel. Verifica se uma condição foi atendida e retorna um valor se for VERDADEIRO e outro se for FALSO. 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 whether a condition is true or false. If true, it outputs one value; if false, it outputs another.

Analogia do Dia a Dia

"Think of this like a referee checking a score: IF the score is 70 or higher, they shout "Pass!"; otherwise, they shout "Fail!"."

Sintaxe.

Notação Oficial do Excel
=SE(teste_lógico; [valor_se_verdadeiro]; [valor_se_falso])
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_testObrigatório

A condition that can be evaluated to TRUE or FALSE.

Exemplo: C2>=70
value_if_trueObrigatório

The value to return if logical_test evaluates to TRUE.

Exemplo: "Pass"
value_if_falseOpcional

The value to return if logical_test evaluates to FALSE.

Padrão: "Fail"

Exemplo passo a passo.

Cenário de Aplicação

Pass/Fail Grade Check

Label student results as "Pass" if their score is 70 or above, otherwise "Fail".

StudentSubjectScoreStatusPass Threshold
SophiaMath85—70
JacksonMath62——
LucasMath74——
Fórmula Aplicada
=IF(C2>=70, "Pass", "Fail")
Resultado Esperado::Pass

Evaluates IF 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 "Pass" based on sample evaluation criteria and active cell references.

Amostra de Saída::Pass
Tipo de Dado::Text

Boas Práticas

  • You can nest multiple IF statements inside each other to handle more than two outcomes, although the IFS function is now preferred.
  • To leave a cell blank on FALSE, use empty quotes: "" as the value_if_false.

Erros Mais Comuns

  • Avoid nesting more than 3-4 IF functions, as they become extremely hard to debug and maintain. Consider using IFS or VLOOKUP/XLOOKUP tables.
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
How many IF statements can be nested in modern Excel?↓

Modern Excel allows up to 64 nested IF statements, but using IFS, SWITCH, or XLOOKUP is strongly recommended for readability and performance.

How do I check multiple conditions inside an IF statement?↓

Combine IF with logical functions AND or OR, for example: =IF(AND(A2>50, B2="Approved"), "Qualify", "Disqualify").