Bird
Raised Fist0
Excelspreadsheet~20 mins

SUMIF and SUMIFS in Excel - Practice Problems & Coding Challenges

Choose your learning style10 modes available
Challenge - 5 Problems
🎖️
SUMIF and SUMIFS Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
SUMIF with a single condition
Given a list of sales amounts in column B and their corresponding product categories in column A, what is the result of the formula =SUMIF(A2:A6, "Fruit", B2:B6) if the data is:

Data:
A2:A6 = {"Fruit", "Vegetable", "Fruit", "Dairy", "Fruit"}
B2:B6 = {10, 20, 15, 5, 25}

What is the sum of sales for the category "Fruit"?
A50
B40
C25
D30
Attempts:
2 left
💡 Hint
Add only the amounts where the category is exactly "Fruit".
📊 Formula Result
intermediate
2:00remaining
SUMIFS with multiple conditions
You have a table with sales data:

Column A: Product Type
Column B: Region
Column C: Sales Amount

Data:
A2:A6 = {"Fruit", "Fruit", "Vegetable", "Fruit", "Vegetable"}
B2:B6 = {"North", "South", "North", "North", "South"}
C2:C6 = {100, 150, 200, 50, 300}

What is the result of the formula =SUMIFS(C2:C6, A2:A6, "Fruit", B2:B6, "North")?
A100
B250
C50
D150
Attempts:
2 left
💡 Hint
Sum sales where product is "Fruit" and region is "North".
❓ Function Choice
advanced
2:00remaining
Choosing the correct formula for conditional sum
You want to sum values in column C where column A equals "Fruit" and column B is not "South". Which formula correctly calculates this?
A=SUMIF(A2:A10, "Fruit", C2:C10) - SUMIF(B2:B10, "South", C2:C10)
B=SUMIFS(C2:C10, A2:A10, "Fruit", B2:B10, "<>South")
C=SUMIFS(C2:C10, A2:A10, "Fruit", B2:B10, "South")
D=SUMIF(B2:B10, "<>South", C2:C10)
Attempts:
2 left
💡 Hint
Use SUMIFS with a condition that excludes "South".
📊 Formula Result
advanced
2:00remaining
SUMIF with wildcard characters
Given the data in column A:
A2:A6 = {"Apple", "Pineapple", "Banana", "Grape", "Apple Pie"}
and sales in column B:
B2:B6 = {10, 20, 15, 5, 25}

What is the result of =SUMIF(A2:A6, "*Apple*", B2:B6)?
A35
B30
C55
D25
Attempts:
2 left
💡 Hint
The asterisks (*) match any text before or after "Apple".
🎯 Scenario
expert
3:00remaining
Complex conditional sum with date and text criteria
You have a sales table:

Column A: Product
Column B: Sale Date (dates)
Column C: Region
Column D: Sales Amount

Data example:
A2:A6 = {"Fruit", "Vegetable", "Fruit", "Fruit", "Vegetable"}
B2:B6 = {"2024-01-01", "2024-01-05", "2024-02-01", "2024-01-15", "2024-02-10"}
C2:C6 = {"North", "South", "North", "South", "North"}
D2:D6 = {100, 200, 150, 50, 300}

Which formula sums sales for "Fruit" products sold in "North" region during January 2024?
A=SUMIFS(D2:D6, A2:A6, "Fruit", C2:C6, "North", B2:B6, ">=2024-01-01", B2:B6, "<=2024-01-31")
B=SUMIFS(D2:D6, A2:A6, "Fruit", C2:C6, "North", B2:B6, ">=2024/01/01", B2:B6, "<=2024/01/31")
C=SUMIFS(D2:D6, A2:A6, "Fruit", C2:C6, "North", B2:B6, ">=01/01/2024", B2:B6, "<=01/31/2024")
D=SUMIFS(D2:D6, A2:A6, "Fruit", C2:C6, "North", B2:B6, ">=1-Jan-2024", B2:B6, "<=31-Jan-2024")
Attempts:
2 left
💡 Hint
Use ISO date format (YYYY-MM-DD) in criteria strings for dates.

Practice

(1/5)
1. What does the SUMIF function do in Excel?
easy
A. Adds numbers in a range that meet one condition
B. Adds numbers in multiple ranges without conditions
C. Counts how many cells meet a condition
D. Finds the average of numbers in a range

Solution

  1. Step 1: Understand the purpose of SUMIF

    SUMIF adds values only if they meet a single specified condition.
  2. Step 2: Compare with other options

    Counting cells or averaging are different functions; SUMIF sums conditionally.
  3. Final Answer:

    Adds numbers in a range that meet one condition -> Option A
  4. Quick Check:

    SUMIF = sum with one condition [OK]
Hint: SUMIF sums with one condition, SUMIFS with many [OK]
Common Mistakes:
  • Confusing SUMIF with COUNTIF
  • Thinking SUMIF works with multiple conditions
  • Using SUMIF to average values
2. Which of these is the correct syntax for the SUMIFS function?
easy
A. SUMIFS(criteria_range1, criteria1, sum_range)
B. SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2)
C. SUMIFS(sum_range, criteria1, criteria_range1)
D. SUMIFS(sum_range, criteria_range1, criteria1)

Solution

  1. Step 1: Recall SUMIFS syntax

    SUMIFS requires sum_range first, then pairs of criteria_range and criteria.
  2. Step 2: Check each option

    Only SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2) follows the correct order: sum_range, criteria_range1, criteria1, etc.
  3. Final Answer:

    SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2) -> Option B
  4. Quick Check:

    SUMIFS syntax = sum_range + criteria pairs [OK]
Hint: SUMIFS starts with sum_range, then criteria pairs [OK]
Common Mistakes:
  • Swapping sum_range and criteria_range
  • Missing criteria pairs
  • Using SUMIF syntax for SUMIFS
3. Given this data:

A1:A5 = {10, 20, 30, 40, 50}
B1:B5 = {"Yes", "No", "Yes", "No", "Yes"}

What is the result of =SUMIF(B1:B5, "Yes", A1:A5)?
medium
A. 150
B. 100
C. 120
D. 90

Solution

  1. Step 1: Identify matching cells in B1:B5

    Cells with "Yes" are B1, B3, B5 corresponding to A1=10, A3=30, A5=50.
  2. Step 2: Sum corresponding values in A1:A5

    Sum = 10 + 30 + 50 = 90.
  3. Final Answer:

    90 -> Option D
  4. Quick Check:

    Sum of A where B = "Yes" is 90 [OK]
Hint: Sum values where criteria matches in criteria_range [OK]
Common Mistakes:
  • Summing all values ignoring criteria
  • Confusing Yes and No cells
  • Using SUM instead of SUMIF
4. You wrote this formula: =SUMIFS(A1:A5, B1:B5, "Yes", C1:C5, ">10") but it returns #VALUE!. What is the likely problem?
medium
A. Sum range and criteria ranges are different sizes
B. SUMIFS cannot handle multiple criteria
C. Criteria ">10" should be in quotes
D. You must use SUMIF, not SUMIFS

Solution

  1. Step 1: Check criteria syntax

    Criteria ">10" is correctly in quotes, so no error there.
  2. Step 2: Verify range sizes

    SUMIFS requires sum_range and all criteria_ranges to be the same size; mismatch causes #VALUE! error.
  3. Final Answer:

    Sum range and criteria ranges are different sizes -> Option A
  4. Quick Check:

    Range size mismatch causes SUMIFS to return #VALUE! [OK]
Hint: Ensure all ranges in SUMIFS have same size [OK]
Common Mistakes:
  • Forgetting to quote criteria with operators
  • Using SUMIF syntax for multiple criteria
  • Assuming SUMIFS sums without matching sizes
5. You have sales data:

Product: A2:A7 = {"Pen", "Pen", "Book", "Pen", "Book", "Book"}
Region: B2:B7 = {"East", "West", "East", "East", "West", "East"}
Sales: C2:C7 = {100, 200, 150, 120, 180, 130}

Which formula sums sales of "Pen" in the "East" region?
hard
A. =SUMIFS(A2:A7, C2:C7, "Pen", B2:B7, "East")
B. =SUMIF(A2:A7, "Pen", C2:C7) + SUMIF(B2:B7, "East", C2:C7)
C. =SUMIFS(C2:C7, A2:A7, "Pen", B2:B7, "East")
D. =SUMIF(C2:C7, "Pen", B2:B7)

Solution

  1. Step 1: Identify correct function for multiple conditions

    SUMIFS sums with multiple criteria; SUMIF only handles one.
  2. Step 2: Check formula arguments

    =SUMIFS(C2:C7, A2:A7, "Pen", B2:B7, "East") correctly uses sum_range C2:C7, criteria ranges A2:A7 and B2:B7 with criteria "Pen" and "East".
  3. Final Answer:

    =SUMIFS(C2:C7, A2:A7, "Pen", B2:B7, "East") -> Option C
  4. Quick Check:

    SUMIFS with product and region criteria sums sales [OK]
Hint: Use SUMIFS for multiple conditions, not SUMIF [OK]
Common Mistakes:
  • Adding two SUMIF results instead of using SUMIFS
  • Mixing sum_range and criteria_range order
  • Using SUMIF with multiple criteria
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