Bird
Raised Fist0
Google Sheetsspreadsheet~10 mins

Creating a PivotTable in Google Sheets - Formula Evaluation Walkthrough

Choose your learning style10 modes available
Sample Data

Sales data showing products, regions, and sales amounts.

CellValue
A1Product
B1Region
C1Sales
A2Apples
B2North
C2100
A3Apples
B3South
C3150
A4Oranges
B4North
C4200
A5Oranges
B5South
C5120
Formula Trace
QUERY(A1:C5, "select A, sum(C) group by A", 1)
Step 1: QUERY(A1:C5, "select A, sum(C) group by A", 1)
Cell Reference Map
    A       B       C
1 |Product| Region | Sales |
2 |Apples | North  | 100   |
3 |Apples | South  | 150   |
4 |Oranges| North  | 200   |
5 |Oranges| South  | 120   |
The formula references the range A1:C5 which contains product names, regions, and sales values.
Result
    E       F
1 |Product| sum   |
2 |Apples | 250   |
3 |Oranges| 320   |
The pivot-like result shows total sales summed by product.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the QUERY function do in this formula?
AFilters sales data by region
BGroups sales by product and sums sales amounts
CSorts products alphabetically
DCalculates average sales per region
Key Result
QUERY(range, "select column, sum(column) group by column", header_rows) groups data and sums values by a category column.

Practice

(1/5)
1. What is the main purpose of a PivotTable in Google Sheets?
easy
A. To enter data manually into cells
B. To create charts and graphs automatically
C. To sort data alphabetically only
D. To quickly summarize and analyze large sets of data

Solution

  1. Step 1: Understand what a PivotTable does

    A PivotTable helps organize and summarize data quickly without changing the original data.
  2. Step 2: Compare options to the purpose

    Only To quickly summarize and analyze large sets of data describes summarizing and analyzing data, which is the main use of PivotTables.
  3. Final Answer:

    To quickly summarize and analyze large sets of data -> Option D
  4. Quick Check:

    PivotTable = Data summary [OK]
Hint: PivotTables summarize data fast, not just sort or enter [OK]
Common Mistakes:
  • Confusing PivotTables with charts
  • Thinking PivotTables only sort data
  • Believing PivotTables are for manual data entry
2. Which menu path correctly starts the creation of a PivotTable in Google Sheets?
easy
A. Data > Pivot table
B. Insert > Chart
C. Format > Conditional formatting
D. Tools > Script editor

Solution

  1. Step 1: Recall the menu for PivotTables

    PivotTables are created from the Data menu, under 'Pivot table'.
  2. Step 2: Eliminate unrelated menu options

    The other options relate to scripts, charts, and conditional formatting, not PivotTables.
  3. Final Answer:

    Data > Pivot table -> Option A
  4. Quick Check:

    PivotTable menu = Data > Pivot table [OK]
Hint: PivotTables start under Data menu, not Insert or Format [OK]
Common Mistakes:
  • Choosing Insert > Chart instead of Data > Pivot table
  • Looking under Format or Tools menus
  • Confusing PivotTable creation with chart creation
3. Given this data in A1:B5:
Product | Sales
Apple   | 10
Banana  | 15
Apple   | 5
Banana  | 10
Cherry  | 20

What will be the total sales for 'Apple' in a PivotTable with 'Product' as rows and 'Sales' summed as values?
medium
A. 20
B. 10
C. 15
D. 25

Solution

  1. Step 1: Identify sales for 'Apple'

    Apple has two sales entries: 10 and 5.
  2. Step 2: Sum the sales values

    10 + 5 = 15 total sales for Apple.
  3. Final Answer:

    15 -> Option C
  4. Quick Check:

    Sum(10,5) = 15 [OK]
Hint: Sum all sales for the product in PivotTable values [OK]
Common Mistakes:
  • Choosing only the first sales number
  • Adding wrong product sales
  • Confusing count with sum
4. You created a PivotTable but it shows no data. Which fix will most likely solve this?
medium
A. Check if the data range selected includes all your data
B. Change the sheet's background color
C. Delete the PivotTable and start over without selecting data
D. Add more columns to the original data

Solution

  1. Step 1: Verify the data range used in the PivotTable

    If the range is too small or wrong, the PivotTable will show no data.
  2. Step 2: Adjust the data range to include all relevant rows and columns

    Expanding the range fixes missing data issues.
  3. Final Answer:

    Check if the data range selected includes all your data -> Option A
  4. Quick Check:

    Data range correct = Data visible [OK]
Hint: Always confirm your data range covers all data [OK]
Common Mistakes:
  • Ignoring data range selection
  • Changing unrelated sheet formatting
  • Deleting PivotTable without fixing range
5. You want to analyze monthly sales by product and region using a PivotTable. Which layout should you choose to see products as rows, regions as columns, and total sales as values?
hard
A. Rows: Sales, Columns: Product, Values: Sum of Region
B. Rows: Product, Columns: Region, Values: Sum of Sales
C. Rows: Region, Columns: Product, Values: Count of Sales
D. Rows: Product, Columns: Sales, Values: Region

Solution

  1. Step 1: Assign 'Product' to rows to list each product vertically

    This organizes products down the side.
  2. Step 2: Assign 'Region' to columns to separate data by region horizontally

    This creates columns for each region.
  3. Step 3: Set 'Values' to sum sales to get total sales per product and region

    Summing sales shows total amounts.
  4. Final Answer:

    Rows: Product, Columns: Region, Values: Sum of Sales -> Option B
  5. Quick Check:

    Correct layout = Product rows + Region columns + Sales sum [OK]
Hint: Rows = products, Columns = regions, Values = sum sales [OK]
Common Mistakes:
  • Swapping rows and columns incorrectly
  • Using count instead of sum for sales
  • Placing sales or region in wrong areas
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