Cómo utilizar la fórmula AVERAGEIFS de Google Sheets

En AVERAGEIFS Google Sheets formula is similar to that of the MEDIA SI Google Sheets formula, but with a slight difference. While the AVERAGEIF returns the average of values satisfying a single criteria, the AVERAGEIFS formula gives us the average of values subject to multiple criteria.

 

39 Automatice las transferencias de datos más allá de Importrange Descubra cómo

 

Sintaxis

AVERAGEIFS(average_range, criteria_range1, criterion1, [criteria_range2, criterion2, …])

  • rango_medio – is the address reference to the range of cells that the AVERAGEIFS formula considers for averaging. Unlike the AVERAGEIF formula, this is the first parameter within this formula.
  • rango_de_criterios1 – this is the range of cells against which the formula checks for the criterio1.
  • criterio1 – is the condition or test that is used to qualify cells within the rango_de_criterios1 for averaging. There are six types of comparisons in general, as listed below. While we can compare both numbers and text using the first two operators, we can only compare numbers using the last four operators.
    • Equals (=)
    • Not equal to (<>)
    • Greater than (>)
    • Greater than or equal to (>=)
    • Less than (<)
    • Less than or equal to (<=)
  • criteria_range2, criterion2, … – these are optional and additional ranges and criteria that the AVERAGEIFS formula checks for.

Usage: AVERAGEIFS Google Sheets formula

Below is a sample nutritional information from a select set of foods. Let us try a few examples to establish our understanding of the formula further.

AVERAGEIFS google sheets 1

We have the sample data populated on the cells A1 through to G10. Please notice the first case has a single criterion, the second one has two and third has three.

Please consider the second case in row # 14. Using the parameters we’ve entered, the AVERAGEIFS formula checks for instances of anything not named “Nuts” within the range A2:A10, then checks for occurrences where values in F2:F10 are greater than 0.2, and finally averages the values from the range E2:E10 that are in the rows that qualify the above two conditions.

Now, let us spend a moment on the case in row # 16. Interestingly, the formula returned an error here because it did not find any matching rows for the criteria specified. Zero instance matching implies a divide by zero instance, hence the error.

AVERAGEIFS formula

And there you go! Use the AVERAGEIFS formula in Google Sheets to return the average of values subject to multiple criteria.

Si desea obtener más información sobre las distintas fórmulas de las Hojas de cálculo de Google, eche un vistazo a nuestra entrada del blog sobre las fórmulas de Google. DAVERAGE formula in Google Sheets.

También puede consultar las entradas del blog relacionadas a continuación.

39

Automatice las transferencias de datos entre hojas de cálculo

Descubra cómo

También te puede gustar...

funciones y fórmulas de google sheets

Cómo hallar el tipo de interés nominal con Google Sheets

Sarah es una joven profesional que toma importantes decisiones financieras. Desde tarjetas de crédito a hipotecas, préstamos estudiantiles e inversiones...
funciones y fórmulas de google sheets

Extraer datos de Google Calendar en Google Sheets mediante Apps Script

Este post fue publicado originalmente en nuestro foro de la comunidad. Objetivo : Esta guía muestra cómo utilizar Google Apps Script para extraer datos...
funciones y fórmulas de google sheets

Uso de la función PROPER para escribir en mayúsculas la primera letra de cada palabra en Google Sheets

Nota: Este artículo se publicó originalmente en el foro de nuestra comunidad. Alguna vez te has visto en la necesidad de limpiar una lista de nombres, títulos o cualquier...