ExcelFormulas logoExcelFormulas.
Chiedi all'IA
LogicheVerificato da QA

SE (IF).

Verifica se una condizione è soddisfatta e restituisce un valore se VERO e un altro se FALSO.

Logiche
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Come funziona nel dettaglio.

SE è una funzione fondamentale di Excel. Verifica se una condizione è soddisfatta e restituisce un valore se VERO e un altro se FALSO. Consente di velocizzare la gestione dei fogli di calcolo, ridurre gli errori e creare report automatizzati professionali.

💡 In parole semplici.

Checks whether a condition is true or false. If true, it outputs one value; if false, it outputs another.

Analogia di tutti i giorni

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

Sintassi.

Notazione Ufficiale Excel
=SE(test; [se_vero]; [se_falso])
Consiglio: Gli argomenti tra parentesi quadre [come_questo] sono facoltativi; tutti gli altri sono obbligatori.

Argomenti.

Di seguito l'elenco dettagliato di tutti i parametri accettati da questa funzione.

logical_testObbligatorio

A condition that can be evaluated to TRUE or FALSE.

Valore d'esempio: C2>=70
value_if_trueObbligatorio

The value to return if logical_test evaluates to TRUE.

Valore d'esempio: "Pass"
value_if_falseFacoltativo

The value to return if logical_test evaluates to FALSE.

Valore predefinito: "Fail"

Esempio pratico.

Scenario di utilizzo

Pass/Fail Grade Check

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

StudentSubjectScoreStatusPass Threshold
SophiaMath85—70
JacksonMath62——
LucasMath74——
Formula applicata
=IF(C2>=70, "Pass", "Fail")
Risultato atteso::Pass

Evaluates IF over the sample table cells, placing the verified output in cell D2:D6.

Generatore di formula.

Apri Procedura Guidata Completa

Compila i campi qui sotto per creare una formula personalizzata pronta da incollare nel tuo foglio di calcolo.

Generated FormulaPronta da copiare

Caratteristiche del risultato.

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

Esempio di output::Pass
Tipo di dato restituito::Text

Migliori Pratiche

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

Errori Più Frequenti

  • Avoid nesting more than 3-4 IF functions, as they become extremely hard to debug and maintain. Consider using IFS or VLOOKUP/XLOOKUP tables.
Matrice di Compatibilità

Compatibilità per programma e versione.

Verifica tecnica eseguita sui motori di calcolo ufficiali di Microsoft Excel e Google Fogli.

Excel✓
Supportato
Excel 365✓
Supportato
Excel 2021✓
Supportato
Excel 2019✓
Supportato
Google Sheets✓
Supportato
Disponibilità e versioni di 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.

Note su Google Fogli

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

Domande frequenti.

Domande Tecniche
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").