Blank cells are not zeros
In the workforce Data sheet, termination_type is empty for the 4,975 active employees and latest_review_score is empty for 781 employees with no review. An empty cell in a Rows field appears as an item named (blank). Count counts only cells that hold a value, and Average skips empty cells, so Average of latest_review_score describes the 5,219 employees who were reviewed, not all 6,000.
Dates group only when they are real dates
Excel can group a date field by month, quarter, and year: right-click a date in the PivotTable and select Group. That works only when the column holds real dates. In the practice workbooks dates are text in the form 2025-07-01, so they do not group. Use the order_month column in the ecommerce sheet, or add a helper column with =DATEVALUE(cell), format it as a date, and refresh.
Distinct count needs the Data Model
Count of order_id on the ecommerce sheet returns 39,922, because it counts order lines. To count orders, select Add this data to the Data Model when you create the PivotTable, then choose Distinct Count in Value Field Settings. The answer is 16,836. Distinct Count is not offered in a PivotTable built without the Data Model. In a version of Excel with the UNIQUE function, =COUNTA(UNIQUE(range)) gives the same number.
A calculated field divides totals, a ratio column does not
A calculated field is a formula you add under PivotTable Analyze > Fields, Items, & Sets > Calculated Field. Excel sums each field first and then applies the formula, which is what a rate needs. On the marketing sheet, the calculated field revenue / spend gives affiliate 6.54. A helper column of revenue / spend on every row, averaged in the PivotTable, gives 8.44, because a day with little spend counts as much as a day with a lot. A PivotTable built on the Data Model does not offer calculated fields, so use a separate PivotTable for them.
Refresh after the data changes
A PivotTable reads a snapshot of the data, called the cache. After you edit the Data sheet or add a helper column, select the PivotTable and choose PivotTable Analyze > Refresh, or right-click it and select Refresh. Format the Data sheet as a table first (Insert > Table) so that new rows and columns are included when you refresh. Some newer versions of Excel can refresh a PivotTable automatically; check before you rely on it.
A Count where you expected a Sum means text
Excel adds a numeric field to Values as Sum and a text field as Count. The practice workbooks store amounts as numbers, so line_total and amount_due sum as expected. The analysis-ready workbooks for the six datasets on this page store decimal columns as text, so a Sum of them is 0 until you convert them, for example with =VALUE(cell) in a helper column.
Where can I get sample data to practice PivotTables in Excel?
Each dataset on this page has a free Excel practice workbook. The Data sheet is one table with a header row, ready for Insert > PivotTable. The six Data sheets run from 6,000 employee rows to 45,237 invoice rows. The tasks on this page name the fields for each area of the PivotTable and give the expected answer.
Do the PivotTable exercises come with answers?
Yes. Every task on this page ends with the expected answer, computed from version 1.0.0 of the workbook, usually a Grand Total and one named item. Each workbook also has its own Tasks sheet with six to eight questions and an Answers sheet, covering formulas such as SUMIFS and AVERAGEIFS as well as PivotTables.
Which dataset is best for a first PivotTable?
Use the workforce attrition workbook. It has 6,000 rows, one per employee, and the first task only counts. Put department_name in Rows, employment_status in Columns, and employee_id in Values. The Grand Total should read 4,975 active, 1,025 terminated, and 6,000 in total. Then show the values as a percentage of the row total to get an attrition rate by department.
Can I use these files to practice pivot charts?
Yes. A PivotChart is a chart drawn from a PivotTable that follows its filters. Good first charts are item revenue by month on the ecommerce sheet, a column chart with six bars, and average rentals by hour on working days on the bike sharing sheet, a line with peaks at hours 8 and 17. In Excel for Windows, select a cell in the PivotTable and choose Insert > PivotChart.
Why does my PivotTable not match the expected answer?
Check four things. The filter: several tasks leave out cancelled orders or void invoices. The aggregation: Count of order_id counts order lines, not orders. The ratio: an average of row-level rates differs from a calculated field that divides totals. And the cache: a PivotTable does not always pick up edits to the Data sheet until you refresh it.
Is there a larger file for PivotTable practice?
Yes. The flat sales file for the ecommerce dataset is one CSV with 237,537 order lines from January 2023 to December 2025 and the same 18 columns as the practice Data sheet. It fits within the Excel worksheet limit of 1,048,576 rows. Item revenue for orders that were not cancelled is 58,719,861.14 across the three years.