Comment utiliser la formule MOYENNEIFS de Google Sheets ?

Les MOYENNEIFS Google Sheets formula is similar to that of the MOYENNEIF 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 Automatiser les transferts de données au-delà d'Importrange Découvrez comment

 

Syntaxe

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

  • fourchette_moyenne – 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.
  • critères_gamme1 – this is the range of cells against which the formula checks for the critère1.
  • critère1 – is the condition or test that is used to qualify cells within the critères_gamme1 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 vous souhaitez en savoir plus sur les différentes formules de Google Sheets, nous vous invitons à consulter notre article de blog sur les formules de Google Sheets. DAVERAGE formula in Google Sheets.

Vous pouvez également consulter les articles de blog qui s'y rapportent ci-dessous !

39

Automatiser les transferts de données entre les feuilles de calcul

Découvrez comment

Vous pouvez aussi aimer...

Fonctionnalités et formules de google sheets

Comment calculer le taux d'intérêt nominal à l'aide de Google Sheets ?

Sarah est une jeune professionnelle qui doit prendre des décisions financières importantes. Des cartes de crédit aux hypothèques, en passant par les prêts étudiants et les...
Fonctionnalités et formules de google sheets

Extraire les données de Google Calendar dans Google Sheets à l'aide d'Apps Script

Cet article a été publié à l'origine dans notre forum communautaire. Objectif : Ce guide montre comment utiliser Google Apps Script pour extraire des données...
Fonctionnalités et formules de google sheets

Utilisation de la fonction PROPER pour mettre en majuscule la première lettre de chaque mot dans Google Sheets

Note : Cet article a été publié à l'origine dans notre forum communautaire. Vous avez déjà eu besoin de nettoyer une liste de noms, de titres ou d'autres...