Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende IFS Function | Logical Functions
Google Spreadsheets
course content

Contenido del Curso

Google Spreadsheets

Google Spreadsheets

1. Introduction to Google Sheets
2. Formatting of Cells and Ranges
3. Advanced Formatting of Cells
4. Sorting, Filtering and Cleaning Data
5. Creating Charts
6. Basic Functions
7. Logical Functions
8. Collaboration and Security

book
IFS Function

In this chapter we will explore the topic of the IFS Function. This function allows you to test multiple conditions and return the corresponding result for the first condition that evaluates to true. Unlike Nested IF, IFS avoids nesting, making it easier to work with multiple logical conditions and resulting in a more readable formula.

Syntax and Examples:

IFS(condition1, value1, condition2,value2,…condition2, value2, …)

  • condition1 - The first condition to evaluate. This can be a boolean value, a number, an array, or a reference to any of these;
  • value1 - The value returned if condition1 is TRUE;
  • condition2, value2, … - Additional conditions and values if the first is evaluated as false.
Value (A)FormulaResult
3,250.00A2 - (A2 * IFS(A2 <= 10000, 0.005, A2 <= 25000, 0.01, A2 > 25000, 0.02))3,233.75
12,500.00A3 - (A3 * IFS(A3 <= 10000, 0.005, A3 <= 25000, 0.01, A3 > 25000, 0.02))12,375.00
30,000.00A4 - (A4 * IFS(A4 <= 10000, 0.005, A4 <= 25000, 0.01, A4 > 25000, 0.02))29,400.00
Value (F)Value (G)Formula 1Customer 1Formula 2Customer 2
Hybrid Bike650IFS(ISBLANK($F2), "", AND($J$1="Customer 1", OR(AND($F2="Hybrid Bike", $G2<700), $F2="Mountain Bike")), "fits", TRUE, "does not fit")fitsIFS(ISBLANK($F2), "", AND($L$1="Customer 2", OR($F2="Road Bike", AND($F2="Mountain Bike", $G2<600))), "fits", TRUE, "does not fit")does not fit
Mountain Bike550fitsfits
Road Bike800does not fitfits
Hybrid Bike700does not fitdoes not fit
Road Bike850does not fitfits
750
Mountain Bike600fitsdoes not fit

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 7. Capítulo 3
We're sorry to hear that something went wrong. What happened?
some-alt