Bird
Raised Fist0
Google Sheetsspreadsheet~15 mins

SUM function in Google Sheets - Real Business Scenario

Choose your learning style10 modes available
Scenario Mode
👤 Your Role: You are a sales assistant at a small retail store.
📋 Request: Your manager wants to know the total sales for each product category to understand which category sells the most.
📊 Data: You have a list of sales transactions with product categories and sales amounts.
🎯 Deliverable: Create a summary table that shows the total sales amount for each product category.
Progress0 / 5 steps
Sample Data
Transaction IDProduct CategorySales Amount
1Electronics120
2Clothing80
3Electronics150
4Home200
5Clothing60
6Home100
7Electronics90
8Clothing70
1
Step 1: List each unique product category in a new column to prepare for total sales calculation.
Manually type the categories: Electronics, Clothing, Home in cells E2, E3, and E4.
Expected Result
Cells E2:E4 contain Electronics, Clothing, Home respectively.
2
Step 2: Calculate total sales for Electronics category using SUMIF function.
=SUMIF(B2:B9, "Electronics", C2:C9)
Expected Result
360 (sum of 120 + 150 + 90)
3
Step 3: Calculate total sales for Clothing category using SUMIF function.
=SUMIF(B2:B9, "Clothing", C2:C9)
Expected Result
210 (sum of 80 + 60 + 70)
4
Step 4: Calculate total sales for Home category using SUMIF function.
=SUMIF(B2:B9, "Home", C2:C9)
Expected Result
300 (sum of 200 + 100)
5
Step 5: Place the formulas next to each category in cells F2, F3, and F4 respectively to create the summary table.
In F2: =SUMIF(B2:B9, E2, C2:C9) In F3: =SUMIF(B2:B9, E3, C2:C9) In F4: =SUMIF(B2:B9, E4, C2:C9)
Expected Result
F2=360, F3=210, F4=300
Final Result
Product Category | Total Sales
-----------------|------------
Electronics      | 360
Clothing         | 210
Home             | 300
✓Electronics is the top-selling category with total sales of 360.
✓Home category follows with total sales of 300.
✓Clothing has the lowest total sales of 210.
Bonus Challenge

Create a total sales amount for all categories combined using the SUM function.

Show Hint
Use =SUM(F2:F4) to add all total sales values together.

Practice

(1/5)
1. What does the SUM function do in Google Sheets?
easy
A. Adds all numbers in the given cells or ranges.
B. Counts how many numbers are in the cells.
C. Finds the average of the numbers in the cells.
D. Multiplies all numbers in the given cells.

Solution

  1. Step 1: Understand the purpose of SUM

    The SUM function is designed to add numbers together from cells or ranges.
  2. Step 2: Compare with other functions

    Counting, averaging, or multiplying are done by other functions like COUNT, AVERAGE, or PRODUCT.
  3. Final Answer:

    Adds all numbers in the given cells or ranges. -> Option A
  4. Quick Check:

    SUM adds numbers = Adds all numbers [OK]
Hint: SUM always adds numbers, not counts or averages [OK]
Common Mistakes:
  • Thinking SUM counts cells instead of adding
  • Confusing SUM with AVERAGE
  • Assuming SUM multiplies numbers
2. Which of these is the correct way to write a SUM formula to add cells A1 to A5?
easy
A. =SUM(A1:A5)
B. =SUM(A1-A5)
C. =SUM(A1,A5)
D. =SUM(A1+A5)

Solution

  1. Step 1: Identify correct range syntax

    In Google Sheets, a range is written with a colon, like A1:A5, to include all cells from A1 to A5.
  2. Step 2: Check each option

    =SUM(A1:A5) uses colon correctly. =SUM(A1-A5) uses a minus sign which is invalid for ranges. =SUM(A1,A5) sums only two cells, not the range. =SUM(A1+A5) adds two cells directly, not a range.
  3. Final Answer:

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

    Range uses colon = =SUM(A1:A5) [OK]
Hint: Use colon (:) to specify ranges in SUM [OK]
Common Mistakes:
  • Using minus (-) instead of colon (:) for ranges
  • Listing cells with comma when range is needed
  • Adding cells with plus (+) inside SUM
3. Given the following values in cells:
A1=3, A2=5, A3=empty, A4=7, A5="text"
What is the result of =SUM(A1:A5)?
medium
A. 0
B. 15
C. text
D. Error

Solution

  1. Step 1: Identify numeric values in range

    Cells A1=3, A2=5, A4=7 are numbers. A3 is empty and A5 contains text.
  2. Step 2: Understand SUM behavior with empty and text

    SUM ignores empty cells and text, so only 3 + 5 + 7 = 15 is added.
  3. Final Answer:

    15 -> Option B
  4. Quick Check:

    SUM ignores text and empty = 15 [OK]
Hint: SUM skips empty cells and text automatically [OK]
Common Mistakes:
  • Including text as zero or error
  • Counting empty cells as zero explicitly
  • Expecting error due to text in range
4. You wrote the formula =SUM(A1;A2;A3) but it shows an error. What is the problem?
medium
A. The formula needs an equal sign (=) at the end.
B. SUM cannot take more than two arguments.
C. Cells A1, A2, A3 must be numbers for SUM to work.
D. Semicolons (;) are not valid separators in Google Sheets formulas.

Solution

  1. Step 1: Check argument separators in formulas

    Google Sheets uses commas (,) to separate arguments, not semicolons (;).
  2. Step 2: Validate formula syntax

    Using semicolons causes a syntax error. The correct formula is =SUM(A1,A2,A3).
  3. Final Answer:

    Semicolons (;) are not valid separators in Google Sheets formulas. -> Option D
  4. Quick Check:

    Use commas, not semicolons, in formulas [OK]
Hint: Use commas (,) to separate arguments in SUM [OK]
Common Mistakes:
  • Using semicolons instead of commas
  • Thinking SUM limits number of arguments
  • Forgetting equal sign at start
5. You have sales data in cells B2:B10 and expenses in C2:C10. You want to find the net total (sales minus expenses). Which formula correctly uses SUM to do this?
hard
A. =SUM(B2:B10, -C2:C10)
B. =SUM(B2:B10 - C2:C10)
C. =SUM(B2:B10) - SUM(C2:C10)
D. =SUM(B2:B10 + C2:C10)

Solution

  1. Step 1: Understand separate sums for sales and expenses

    We must sum sales and expenses separately to get total sales and total expenses.
  2. Step 2: Subtract total expenses from total sales

    Subtract the sum of expenses from the sum of sales: =SUM(B2:B10) - SUM(C2:C10).
  3. Step 3: Check incorrect options

    =SUM(B2:B10 - C2:C10) tries to subtract ranges inside SUM, which is invalid. =SUM(B2:B10, -C2:C10) uses a negative range inside SUM, which is invalid. =SUM(B2:B10 + C2:C10) adds sales and expenses, not subtracts.
  4. Final Answer:

    =SUM(B2:B10) - SUM(C2:C10) -> Option C
  5. Quick Check:

    Sum separately then subtract = correct net total [OK]
Hint: Sum ranges separately, then subtract for net total [OK]
Common Mistakes:
  • Trying to subtract ranges inside one SUM
  • Using plus instead of minus for net
  • Passing negative ranges inside SUM
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