Bird
Raised Fist0
Excelspreadsheet~10 mins

Value fields and aggregation in Excel - Cell-by-Cell Formula Trace

Choose your learning style10 modes available
Sample Data

This table shows sales numbers for two products, Apples and Bananas, recorded twice each.

CellValue
A1Product
B1Sales
A2Apples
B210
A3Bananas
B315
A4Apples
B420
A5Bananas
B55
Formula Trace
=SUMIF(A2:A5, "Apples", B2:B5)
Step 1: Check each cell in A2:A5 if it equals "Apples"
Step 2: Select corresponding values from B2:B5 where condition is TRUE
Step 3: Sum the selected values: 10 + 20
Cell Reference Map
    A       B
1 Product  Sales
2 Apples   10  <-- matches condition
3 Bananas  15
4 Apples   20  <-- matches condition
5 Bananas  5
The formula checks cells A2 to A5 for "Apples" and sums corresponding B2 to B5 values.
Result
    A       B       C
1 Product  Sales   Total Apples
2 Apples   10      30
3 Bananas  15
4 Apples   20
5 Bananas  5
The formula result 30 is shown as total sales for Apples in cell C2.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the formula =SUMIF(A2:A5, "Apples", B2:B5) do?
ACounts how many times Apples appear
BAdds all sales values regardless of product
CAdds sales values where product is Apples
DFinds the highest sales value for Apples
Key Result
SUMIF(range_to_check, condition, range_to_sum) sums values in range_to_sum where corresponding cells in range_to_check meet the condition.

Practice

(1/5)
1. What does the SUM function do in Excel when applied to a range of numbers?
easy
A. Calculates the average of the numbers in the range
B. Counts how many numbers are in the range
C. Finds the largest number in the range
D. Adds all the numbers in the range together

Solution

  1. Step 1: Understand the purpose of SUM

    The SUM function adds all numeric values in the selected range.
  2. Step 2: Compare with other functions

    COUNT counts numbers, MAX finds largest, AVERAGE calculates mean, so SUM is addition.
  3. Final Answer:

    Adds all the numbers in the range together -> Option D
  4. Quick Check:

    SUM = addition [OK]
Hint: SUM always adds numbers, not counts or averages [OK]
Common Mistakes:
  • Confusing SUM with COUNT
  • Thinking SUM finds max or average
  • Using SUM on text values expecting count
2. Which of these formulas correctly counts the number of numeric entries in cells A1 to A5?
easy
A. =COUNT(A1:A5)
B. =MAX(A1:A5)
C. =AVERAGE(A1:A5)
D. =SUM(A1:A5)

Solution

  1. Step 1: Identify function purpose

    COUNT counts numeric entries in a range, ignoring text or blanks.
  2. Step 2: Check other options

    SUM adds numbers, AVERAGE calculates mean, MAX finds largest number, so only COUNT counts numbers.
  3. Final Answer:

    =COUNT(A1:A5) -> Option A
  4. Quick Check:

    COUNT counts numbers [OK]
Hint: COUNT counts numbers, SUM adds them [OK]
Common Mistakes:
  • Using SUM instead of COUNT to count numbers
  • Confusing COUNT with COUNTA (which counts all non-empty)
  • Using MAX or AVERAGE expecting count
3. Given the values in cells B1 to B4 as 10, 20, 30, and 40, what is the result of =AVERAGE(B1:B4)?
medium
A. 25
B. 20
C. 30
D. 100

Solution

  1. Step 1: Sum the values in B1:B4

    10 + 20 + 30 + 40 = 100
  2. Step 2: Divide sum by count of numbers

    There are 4 numbers, so 100 รท 4 = 25
  3. Final Answer:

    25 -> Option A
  4. Quick Check:

    Average = sum/count = 25 [OK]
Hint: Average = total sum divided by count [OK]
Common Mistakes:
  • Adding only some numbers
  • Dividing by wrong count
  • Confusing average with sum or max
4. You want to find the smallest number in range C1:C5, but your formula =MIN(C1:C5 gives an error. What is the fix?
medium
A. Change range to C1-C5
B. Replace MIN with MAX function
C. Add the missing closing parenthesis: =MIN(C1:C5)
D. Use SUM instead of MIN

Solution

  1. Step 1: Identify syntax error

    The formula is missing a closing parenthesis, causing a syntax error.
  2. Step 2: Correct the formula

    Adding the closing parenthesis fixes the syntax: =MIN(C1:C5)
  3. Final Answer:

    Add the missing closing parenthesis: =MIN(C1:C5) -> Option C
  4. Quick Check:

    All functions need matching parentheses [OK]
Hint: Check for missing parentheses in formulas [OK]
Common Mistakes:
  • Using dash (-) instead of colon (:) for range
  • Replacing MIN with unrelated functions
  • Ignoring syntax errors
5. You have sales data in cells D1 to D6: 100, 200, 0, 150, blank, and 300. Which formula correctly calculates the average sales ignoring blank and zero values?
hard
A. =AVERAGE(D1:D6)
B. =SUMIF(D1:D6,">0")/COUNTIF(D1:D6,">0")
C. =SUM(D1:D6)/COUNT(D1:D6)
D. =MAX(D1:D6)

Solution

  1. Step 1: Understand the problem

    We want average ignoring zeros and blanks, so only values > 0 count.
  2. Step 2: Analyze each formula

    A and C include zeros and blanks; D finds max, not average. B sums values > 0 and divides by count of values > 0, correctly ignoring zeros and blanks.
  3. Final Answer:

    =SUMIF(D1:D6,">0")/COUNTIF(D1:D6,">0") -> Option B
  4. Quick Check:

    Use SUMIF and COUNTIF to filter values [OK]
Hint: Use SUMIF and COUNTIF to exclude zeros/blanks [OK]
Common Mistakes:
  • Using AVERAGE which includes zeros
  • Dividing SUM by COUNT including zeros
  • Using MAX instead of average
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