ExcelFormulas logoExcelFormulas.
Preguntar a IA
LógicasVerificado por QA

SI (IF).

Comprueba si se cumple una condición y devuelve un valor si es VERDADERO y otro si es FALSO.

Lógicas
ExcelExcel 365Excel 2021Excel 2019Google Sheets

Cómo funciona.

SI es una función fundamental de Excel. Comprueba si se cumple una condición y devuelve un valor si es VERDADERO y otro si es FALSO. Permite automatizar hojas de cálculo, simplificar fórmulas complejas y analizar datos con total precisión en Microsoft Excel y Google Sheets.

💡 En palabras sencillas.

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

Analogía Cotidiana

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

Sintaxis.

Notación Estándar de Excel
=SI(prueba_lógica; [valor_si_verdadero]; [valor_si_falso])
Consejo: Los argumentos entre corchetes [como_este] son opcionales; todos los demás son obligatorios.

Argumentos.

A continuación se detallan todos los parámetros aceptados por esta función.

logical_testObligatorio

A condition that can be evaluated to TRUE or FALSE.

Ejemplo: C2>=70
value_if_trueObligatorio

The value to return if logical_test evaluates to TRUE.

Ejemplo: "Pass"
value_if_falseOpcional

The value to return if logical_test evaluates to FALSE.

Valor por defecto: "Fail"

Ejemplo práctico.

Caso de Uso Paso a Paso

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.

Generador de fórmula.

Abrir Asistente Completo

Personaliza los campos de argumento a continuación para generar una fórmula lista para copiar y pegar en tu hoja de cálculo.

Generated FormulaLista para copiar

Comportamiento del resultado.

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

Resultado de Muestra::Pass
Tipo de Salida::Text

Buenas Prácticas

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

Errores Frecuentes

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

Compatibilidad de plataforma y versiones.

Matriz verificada con base en los motores de cálculo oficiales de Microsoft Excel y Google Sheets.

Excel✓
Compatible
Excel 365✓
Compatible
Excel 2021✓
Compatible
Excel 2019✓
Compatible
Google Sheets✓
Compatible
Disponibilidad y Versiones de Microsoft 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 Compatibilidad con Google Sheets

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

Preguntas frecuentes.

Dudas 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").