Bird
Raised Fist0
Excelspreadsheet~8 mins

AVERAGEIF and AVERAGEIFS in Excel - Dashboard Guide

Choose your learning style10 modes available
Dashboard Mode - AVERAGEIF and AVERAGEIFS
Dashboard Goal

Find the average sales amounts based on specific conditions like region or product category to understand which areas or products perform best.

Sample Data
Order IDRegionProduct CategorySales Amount
1001EastElectronics250
1002WestFurniture450
1003EastFurniture300
1004NorthElectronics200
1005SouthElectronics150
1006WestElectronics400
1007SouthFurniture350
Dashboard Components
  • KPI Card 1: Average Sales in East Region
    Formula: =AVERAGEIF(B2:B8, "East", D2:D8)
    Result: 275
  • KPI Card 2: Average Sales for Electronics Category
    Formula: =AVERAGEIF(C2:C8, "Electronics", D2:D8)
    Result: 250
  • KPI Card 3: Average Sales in West Region for Furniture
    Formula: =AVERAGEIFS(D2:D8, B2:B8, "West", C2:C8, "Furniture")
    Result: 450
  • Table: Average Sales by Region and Product Category
    Formulas:
    - East Electronics: =AVERAGEIFS(D2:D8, B2:B8, "East", C2:C8, "Electronics") -> 250
    - East Furniture: =AVERAGEIFS(D2:D8, B2:B8, "East", C2:C8, "Furniture") -> 300
    - West Electronics: =AVERAGEIFS(D2:D8, B2:B8, "West", C2:C8, "Electronics") -> 400
    - West Furniture: =AVERAGEIFS(D2:D8, B2:B8, "West", C2:C8, "Furniture") -> 450
    - South Electronics: =AVERAGEIFS(D2:D8, B2:B8, "South", C2:C8, "Electronics") -> 150
    - South Furniture: =AVERAGEIFS(D2:D8, B2:B8, "South", C2:C8, "Furniture") -> 350
    - North Electronics: =AVERAGEIFS(D2:D8, B2:B8, "North", C2:C8, "Electronics") -> 200
    - North Furniture: =AVERAGEIFS(D2:D8, B2:B8, "North", C2:C8, "Furniture") -> #DIV/0! (no data)
Dashboard Layout
+---------------------------+---------------------------+
| Average Sales in East     | Average Sales Electronics |
| Region: 275               | Category: 250             |
+---------------------------+---------------------------+
| Average Sales West Region for Furniture: 450             |
+---------------------------------------------------------+
| Average Sales by Region and Product Category Table       |
| +---------+------------+------------+                    |
| | Region  | Electronics| Furniture  |                    |
| +---------+------------+------------+                    |
| | East    | 250        | 300        |                    |
| | West    | 400        | 450        |                    |
| | South   | 150        | 350        |                    |
| | North   | 200        | #DIV/0!    |                    |
| +---------+------------+------------+                    |
+---------------------------------------------------------+
Interactivity

Add a filter dropdown for Region and another for Product Category. When you select a region or category, all KPI cards and the table update to show averages only for the selected filters.

For example, selecting East region updates KPI cards and table to show averages only for East. Selecting Furniture category filters to furniture sales only.

Self Check

If you add a filter for Region = South, which components update and what are their new average sales values?

  • KPI Card 1 (Average Sales in East Region): No, because filter is South.
  • KPI Card 2 (Average Sales for Electronics): Updates to average sales for Electronics in South = 150.
  • KPI Card 3 (Average Sales in West Region for Furniture): No, because filter is South.
  • Table: Updates to show only South region averages:
    - Electronics: 150
    - Furniture: 350
Key Result
Dashboard shows average sales by region and product category using AVERAGEIF and AVERAGEIFS formulas.

Practice

(1/5)
1. What does the AVERAGEIF function do in Excel?
easy
A. Finds the maximum value in a range.
B. Calculates the sum of all cells in a range.
C. Counts the number of cells that meet multiple conditions.
D. Calculates the average of cells that meet one specific condition.

Solution

  1. Step 1: Understand the purpose of AVERAGEIF

    AVERAGEIF calculates the average of cells that satisfy a single condition.
  2. Step 2: Compare with other functions

    Unlike SUM or COUNT, it focuses on averaging with one condition.
  3. Final Answer:

    Calculates the average of cells that meet one specific condition. -> Option D
  4. Quick Check:

    AVERAGEIF = average with one condition [OK]
Hint: AVERAGEIF averages cells matching one condition only [OK]
Common Mistakes:
  • Confusing AVERAGEIF with SUM or COUNT functions
  • Thinking it handles multiple conditions
  • Assuming it finds max or min values
2. Which of the following is the correct syntax for the AVERAGEIFS function?
easy
A. AVERAGEIFS(criteria_range, average_range, criteria1, criteria2)
B. AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
C. AVERAGEIFS(average_range, criteria1, criteria_range1, criteria2)
D. AVERAGEIFS(average_range, criteria_range1, criteria1)

Solution

  1. Step 1: Recall AVERAGEIFS syntax

    The correct syntax starts with the range to average, then pairs of criteria ranges and criteria.
  2. Step 2: Check option formats

    AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) matches the correct order: average_range, criteria_range1, criteria1, etc.
  3. Final Answer:

    AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...) -> Option B
  4. Quick Check:

    AVERAGEIFS syntax = average_range first [OK]
Hint: AVERAGEIFS starts with average range, then criteria pairs [OK]
Common Mistakes:
  • Swapping average_range and criteria_range
  • Omitting criteria pairs
  • Using AVERAGEIF syntax for AVERAGEIFS
3. Given the data:
A1:A5 = {10, 20, 30, 40, 50}
B1:B5 = {"Yes", "No", "Yes", "No", "Yes"}
What is the result of =AVERAGEIF(B1:B5, "Yes", A1:A5)?
medium
A. 30
B. 20
C. 40
D. 50

Solution

  1. Step 1: Identify cells matching criteria

    Cells in B1:B5 with "Yes" are B1, B3, B5 corresponding to A1=10, A3=30, A5=50.
  2. Step 2: Calculate average of matching A cells

    Average = (10 + 30 + 50) / 3 = 90 / 3 = 30.
  3. Final Answer:

    30 -> Option A
  4. Quick Check:

    Average of 10,30,50 = 30 [OK]
Hint: Average only values where criteria matches [OK]
Common Mistakes:
  • Averaging all values ignoring criteria
  • Using wrong criteria text
  • Calculating sum instead of average
4. You wrote the formula =AVERAGEIFS(A1:A5, B1:B5, ">20", C1:C5, "Yes") but it returns #DIV/0!. What is the likely cause?
medium
A. No cells meet both criteria, so division by zero occurs.
B. Syntax error in the formula due to missing commas.
C. AVERAGEIFS cannot handle numeric criteria with ">".
D. The average range and criteria ranges have different sizes.

Solution

  1. Step 1: Understand #DIV/0! error in AVERAGEIFS

    This error happens when no cells meet all criteria, so average divides by zero.
  2. Step 2: Check formula logic

    If no values in B1:B5 are >20 and C1:C5 equal "Yes" simultaneously, no data to average.
  3. Final Answer:

    No cells meet both criteria, so division by zero occurs. -> Option A
  4. Quick Check:

    #DIV/0! means no matching data [OK]
Hint: Check if any data meets all criteria before averaging [OK]
Common Mistakes:
  • Assuming syntax error causes #DIV/0!
  • Thinking AVERAGEIFS can't use > or <
  • Ignoring range size mismatch possibility
5. You have sales data in A2:A10, regions in B2:B10, and sales reps in C2:C10. How do you calculate the average sales for region "East" and sales rep "John"?
hard
A. =AVERAGEIF(A2:A10, "East", B2:B10, "John")
B. =AVERAGEIFS(B2:B10, A2:A10, "East", C2:C10, "John")
C. =AVERAGEIFS(A2:A10, B2:B10, "East", C2:C10, "John")
D. =AVERAGEIF(B2:B10, "East") + AVERAGEIF(C2:C10, "John")

Solution

  1. Step 1: Identify correct function for multiple conditions

    Use AVERAGEIFS to average with more than one condition.
  2. Step 2: Match ranges and criteria correctly

    Average range is sales (A2:A10), criteria ranges are region (B2:B10) and rep (C2:C10) with criteria "East" and "John".
  3. Step 3: Verify formula syntax

    =AVERAGEIFS(A2:A10, B2:B10, "East", C2:C10, "John") matches correct syntax and logic.
  4. Final Answer:

    =AVERAGEIFS(A2:A10, B2:B10, "East", C2:C10, "John") -> Option C
  5. Quick Check:

    AVERAGEIFS with correct ranges and criteria [OK]
Hint: Use AVERAGEIFS for multiple conditions with matching ranges [OK]
Common Mistakes:
  • Using AVERAGEIF for multiple conditions
  • Swapping average and criteria ranges
  • Adding averages instead of filtering both conditions
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard