Working with a large Excel sheet can become difficult when you need to calculate totals, compare categories or review monthly figures. For example, if you have hundreds of sales records, finding the total sales for each product or checking which month performed better can take time when done manually.
An Excel PivotTable helps you summarise this information without writing separate formulas for every calculation. You can organise records by category, date, salesperson or region and change the summary whenever you need a different view of the data. For those developing their spreadsheet knowledge, understanding how Microsoft Excel training in Singapore covers functions such as data organisation, calculations and reporting can provide useful context before exploring PivotTables in detail.
If you are learning how to create a pivot table in Excel, this guide explains the process using a simple sales example. You will learn how to prepare your source data, build your first PivotTable, group dates, apply filters and add slicers and a chart.
1. What Does a PivotTable Do in Excel?
A PivotTable is an Excel feature that summarises information from a larger dataset. It allows you to arrange fields into rows, columns, values and filters to view totals, counts, averages and other calculations.
You do not need to create separate formulas for every category. Excel calculates the summary based on the fields you select and how you arrange them.
Example: Summarising Monthly Sales
Suppose you manage sales records for a small business. Your worksheet contains the following information:
| Date | Product | Category | Region | Sales Amount |
| 05-Jan-2026 | Laptop | Electronics | North | $1,200 |
| 08-Jan-2026 | Mouse | Accessories | South | $50 |
| 12-Jan-2026 | Keyboard | Accessories | North | $80 |
| 15-Feb-2026 | Laptop | Electronics | South | $1,500 |
| 18-Feb-2026 | Monitor | Electronics | North | $400 |
| 22-Feb-2026 | Mouse | Accessories | South | $60 |
| 05-Mar-2026 | Monitor | Electronics | South | $450 |
| 10-Mar-2026 | Keyboard | Accessories | North | $90 |
From this dataset, you may want to find:
- Total sales for each product category.
- Sales generated in each region.
- Monthly sales totals.
- The number of transactions recorded.
- Sales generated by a particular product.
You could calculate these figures using formulas, but a PivotTable can produce the summaries by rearranging the fields.
For example, placing Category in Rows and Sales Amount in Values gives you total sales for each category.
2. Prepare Your Data Before Creating a PivotTable
Before learning how to create a pivot table in excel, check the format of your source data. A PivotTable depends on the quality and arrangement of the original records. If the dataset contains missing headings, blank rows or inconsistent entries, the summary may not display the information correctly.
This is where the Clean Table Rule becomes important.
What Is the Clean Table Rule?
The Clean Table Rule means keeping your source data in a simple tabular format, where every column has a clear heading and every row represents one record.
Follow these points before creating a PivotTable:
1. Use clear column headings
Each column should have a heading that describes its contents. For example, use Date, Product, Category, Region and Sales Amount.
Avoid leaving headings blank or using the same heading for multiple columns. Excel uses these headings as field names in the PivotTable.
2. Remove blank rows and columns
Do not leave completely blank rows or columns between records. Empty spaces can cause Excel to select an incomplete data range when creating the PivotTable.
If your dataset contains blank rows, remove them or check whether they separate different sections of information.
3. Keep one record in each row
Each row should represent one transaction or entry. Do not combine multiple sales records into a single row.
For example, if a customer purchases three different products, record each product transaction separately when each one needs to be analysed.
4. Keep data types consistent
A column should contain the same type of information throughout the dataset.
- The Date column should contain valid Excel dates.
- The Sales Amount column should contain numbers.
- The Region column should contain text labels.
- The Product column should use consistent product names.
Avoid mixing text and numbers in the same column when they represent different types of information.
5. Convert the data into an Excel Table
Converting your source data into an Excel Table can make the dataset easier to manage.
To do this:
- Select any cell within your dataset.
- Go to the Insert tab.
- Select Table.
- Check that the selected range includes all your records.
- Tick My table has headers.
- Select OK.
Your dataset will now be formatted as an Excel Table. When you add new records to the table, the source range can expand automatically. You will still need to refresh an existing PivotTable to include the updated information.
Following the Clean Table Rule before creating a summary can help prevent common source-data problems.
3. How to Create Your First PivotTable in Excel
Once your data is ready, you can build your first pivot table. The following steps use the sales dataset from the previous section.
Step 1: Select Your Source Data
Open the Excel worksheet containing your sales records.
Click any cell inside your Excel Table. If you have not converted the data into a table, select the complete data range, including the column headings.
You do not need to select each column separately.
Step 2: Open the PivotTable Option
Go to the Insert tab in the Excel ribbon.
Select PivotTable. Excel will open a dialog box showing the selected table or cell range.
Step 3: Choose Where to Place the PivotTable
In the Create PivotTable dialog box, check that the correct source table or range is selected.
You can choose between:
New Worksheet: Creates the PivotTable on a separate worksheet.
Existing Worksheet: Places the PivotTable in a location you select within the current workbook.
For beginners, selecting New Worksheet is usually easier because it keeps the original data separate from the summary.
Click OK to continue.
Step 4: Understand the PivotTable Fields Panel
Excel will create a blank PivotTable and display the PivotTable Fields panel.
This panel contains your source-data headings and four main areas:
Field area Purpose Example
Rows Displays categories vertically Product Category
Columns Displays categories horizontally Region
Values Calculates totals, counts or averages Sales Amount
Filters Filters the entire summary Product
You can select a field name or drag it into one of these areas.
For example, drag ‘Category’ into Rows and ‘Sales Amount’ into Values. Excel will calculate the total sales for each category.
Step 5: View Your First Summary
After adding the two fields, Excel will display a summary similar to this:
Category Sum of Sales Amount
Accessories $280
Electronics $3,550
Grand Total $3,830
Your first PivotTable is ready.
You can now see the total sales for each category without manually adding the individual transactions.
Tip: If Excel displays Count of Sales Amount instead of Sum of Sales Amount, check whether the source values are stored as numbers. You can also open the field settings and select Sum under Summarize Values By.
4. Summarise Data by Category, Date and Filter
After creating your first summary, you can rearrange the fields to answer different questions. This is one of the main advantages of a pivot table for beginners: the same source data can produce several reports without creating separate worksheets for every calculation.
A. Summarise Sales by Category
To compare sales across product categories:
- Drag category into the Rows area.
- Drag sales amount into Values area.
- Check that the calculation is set to Sum.
Excel will display the total sales for each category.
You can also add Product below Category in the Rows area to see the sales of individual products within each category.
B. Summarise Sales by Region
To compare sales between different regions:
- Remove Category from the Rows area.
- Drag Region into Rows.
- Keep Sales Amount in Values.
The PivotTable will now show the total sales generated by each region.
You can also place Category in Columns to compare product categories across regions in the same report.
C. Group Dates in a PivotTable by Month
If your source data contains daily transactions, you may want to review monthly or yearly performance instead of viewing every individual date.
To group dates in pivot table:
- Drag Date into the Rows area.
- Drag Sales Amount into Values.
- Right-click any date displayed in the PivotTable.
- Select Group.
Choose Months, Quarters or Years, depending on the report you need.
Select OK.
Excel will organise the dates into the selected time periods.
For example, selecting Months will group January, February and March transactions together.
Important: Date grouping works when Excel recognises the source values as valid dates. If the Group option is unavailable, check for text entries, blank cells or inconsistent date formats in the original Date column.
D. Apply Filters to Focus on Specific Records
Filters help you view only the records relevant to your report.
For example, if you want to review sales from the North region:
- Drag Region into the Filters area.
- Open the Region filter above the PivotTable.
- Select North.
- Click OK.
The summary will now display sales for the selected region.
You can change the filter whenever you need to review another region or return to all records.
E. Add a Blog Link for the Next Step
Once you know how to arrange fields and summarise records, you can use the same information to prepare a visual report. The guide on turn the excel summary into a dashboard explains how PivotTables, charts and other Excel features work together when building a dashboard.
5. Add slicers and a pivot chart
A basic PivotTable is useful for reviewing figures, but you can make the report easier to explore by adding slicers and charts.
These features are helpful when you want to filter information quickly or present a summary visually.
A. Add a Slicer to Your Pivot Table
A slicer is a visual filtering tool. Instead of opening a dropdown menu, you can click a button to display records for a selected category, region or product.
To add a slicer:
- Click anywhere inside your PivotTable.
- Open the PivotTable Analyse tab.
- Select Insert Slicer.
- Choose the field you want to use, such as
- Region or Category.
- Click OK.
Excel will insert a Slicer into your worksheet.
For example, if you add a region slicer, you can click North or South to filter the PivotTable.
To clear the selection, use the Clear Filter option on the Slicer.
Note: The exact ribbon labels and available Slicer options can vary depending on your Excel version and platform.
B. Create a PivotChart
A PivotChart presents your PivotTable summary as a visual chart. It can help readers compare categories, identify differences and understand trends more quickly.
To create one:
- Select any cell inside your PivotTable.
- Go to the Insert tab.
- Select PivotChart.
- Choose a suitable chart type.
- Click OK.
For the sales example, you can use:
Column Chart: Compare total sales across product categories.
Bar Chart: Compare sales across regions.
Line Chart: Display changes in sales over time.
Choose a chart that matches the information you want to communicate. A simple chart with a clear title is usually easier to understand than one with too many labels or visual elements.
C. Make Your Report Easier to Use
After adding a slicer and PivotChart, arrange them neatly on the worksheet.
Keep the main summary visible, place the Slicer where users can access it easily and give the chart a clear heading.
For learners who want to develop interactive dashboard skills, understanding PivotTables, PivotCharts and Slicers provides a useful foundation. The WSQ Create Interactive Dashboard Excel Course covers Excel dashboard techniques for presenting information through interactive reports.
Conclusion
Learning how to create a pivot table in excel can make everyday spreadsheet tasks easier, especially when you need to review large amounts of information. You can summarise sales by category, compare regions, group dates by month and filter records without building a separate formula for every report.
Start with the Clean Table Rule and check your source data before creating a PivotTable. Then practise moving fields between rows, columns, values and filters. Once you understand these areas, try adding slicers and a pivot chart to make your summaries easier to explore.
With regular practice, you can use PivotTables for sales summaries, expense reports, attendance records, inventory tracking and other everyday reporting tasks.

+65 8421 2824
info@exceltraining.com.sg



Chat With Us