ExcelFormulas logoExcelFormulas.
Chiedi all'IA
LogicheVerificato da QA

SE.ERRORE (IFERROR).

Restituisce un valore specificato se una formula genera un errore; altrimenti restituisce il risultato normale.

Logiche
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Come funziona nel dettaglio.

SE.ERRORE è una funzione fondamentale di Excel. Restituisce un valore specificato se una formula genera un errore; altrimenti restituisce il risultato normale. Consente di velocizzare la gestione dei fogli di calcolo, ridurre gli errori e creare report automatizzati professionali.

💡 In parole semplici.

Runs a formula, but if the formula fails (like a division by zero error), it gives a clean default value instead of Excel's ugly errors.

Analogia di tutti i giorni

"Think of this like a protective shield. If your math equation tries to divide by zero and would explode with a weird error, the shield turns it into a friendly 0."

Sintassi.

Notazione Ufficiale Excel
=SE.ERRORE(valore; se_errore)
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.

valueObbligatorio

The formula, expression, or cell reference to check for an error.

Valore d'esempio: B2/C2
value_if_errorObbligatorio

The value to return if the formula evaluates to an error.

Valore d'esempio: 0

Esempio pratico.

Scenario di utilizzo

Calculate Division Average

Calculate average sale value (Sales / Orders). Handle cases where orders are 0 to prevent #DIV/0! errors.

CategoryTotal RevenueTotal OrdersAverage Order ValueError Shield
Electronics45000150—On
Apparel1200040——
Home Decor00——
Formula applicata
=IFERROR(B2/C2, 0)
Risultato atteso::Calculated output

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

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

Migliori Pratiche

  • Use an empty string "" as the value_if_error to make error rows look completely clean and blank.
  • Wrap lookups (like VLOOKUP) in IFERROR to handle items that are not in your reference tables.

Errori Più Frequenti

  • IFERROR catches *all* errors, including spelling mistakes in your formula names. Be careful as it can hide bugs you actually want to fix.
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
Can I use IFERROR 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: =IFERROR(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 IFERROR?↓

IFERROR catches *all* errors, including spelling mistakes in your formula names. Be careful as it can hide bugs you actually want to fix.

Does IFERROR work identically in Google Sheets?↓

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