How to Create Pivot Tables in Excel

How to Create Pivot Tables in Excel

Introduction to Excel

Excel, a fundamental tool of Microsoft Office, is renowned for its ability to manage and analyze data efficiently. One of its most powerful and useful functions is the pivot table, a feature in Excel where you click and drag fields to assemble the desired analysis and allows users to transform large volumes of raw data into organized and accessible information. This functionality not only simplifies the analysis of complex data but also offers flexibility in visualizing and summarizing information, becoming indispensable for data-based decision-making.

Creating Pivot Tables in Excel

Preparing the Data

Ensure that your data is organized in a table with unique headers for each column and each row representing a distinct record. This will facilitate further analysis.

Inserting the Pivot Table

  • Select your data set.
  • In the "Insert" tab of Excel, select "Pivot Table".
  • Excel automatically suggests the data range. Check if it is correct and decide where you want to insert the pivot table: in a new worksheet or in the existing one.

Structuring the Pivot Table
 

With the pivot table created, use the "PivotTable Field List" panel to:

  • Drag fields to the "Rows" and "Columns" areas.
  • Define the data summary in "Values".
  • Use filters to segment the data.

Customizing and Analyzing

The pivot table offers great flexibility for:

  • Changing the type of data summarization as needed.
  • Applying filters to focus on specific information.
  • Using conditional formatting to highlight important data.

Updating the Pivot Table

To reflect changes in the original data, right-click on the pivot table and select "Refresh".

Practical Examples

Below we have a table related to the sales of the first week of January 2024 from the brand's network in the following places: Ceará, Goiás, Minas Gerais, and São Paulo.

tabela din foto 1 .png

Based on the table, answer the following questions:

1- What was the total revenue per unit?

2- Which salesperson sold the most?

3- On which day of the week was the profit highest?

Before we start answering the questions, let's transfer this information to a pivot table. For this, it is necessary to select the entire table, click on “Insert” and then on “Pivot Table”. 

foto 2 tabela din.png

After that, click on “From Table/Range”.

foto 3(talvez) tabela din.png

 

Then, click on “New Sheet”.

foto 4 tabela din.png

Upon opening your new sheet, you will notice a new tool “Pivot Table” in the right corner written in green, featuring both the tool to refresh the data source and to refresh everything on the left side, style variations for your table, among others.

foto 5 tabela din.png

Another novelty is the gray area on the right side of the screen “Pivot Table Fields”, with the categories of our table on the left side and the Filters, Rows, Columns, and Values areas on the opposite side.

The “Filters” area is used to filter and segment the data, while the Columns and Rows areas will distribute the information in columns and rows in your table. Finally, the “Values” area is where data consolidation is done to answer your questions and can be used to bring results, such as the Average and Sum functions.

To answer the question “What was the total revenue per unit?”, we will drag the “Unit” field to the “Rows” area and the “Price” field to the “Values” area, as shown in the image below.

foto 6 tabela din.png

By doing this, you will have the following table:

foto 7 tabela din.png

You can present this information with a chart by clicking on “Insert”, then on the chart icon of your choice. In the example below, the “Stacked Bars” chart variation was used.

foto 8 tabela din.png

Moving on to the second question, we will drag the “Salesperson” field to the “Rows” area and the “Price” field to “Values”, thus generating the chart below.

foto 9 tabela din.png

Lastly, the third question will be answered in such a way that the “Dates” field is in the “Rows” area and the “Price” field in “Values”, thus obtaining the chart below.

foto 10 tabela din.png

 

Centralizing Data in Excel
 

Mastering the art of creating pivot tables in Excel is just the beginning. The real transformation in your data analysis begins when you integrate and centralize information from various sources. With Kondado , you can take your Excel skills to the next level, accessing data from over 80 different sources directly in your spreadsheets. No credit card is required to start, and you can try our platform today for free. Try Kondado now and revolutionize your data analysis in Excel!

Conclusion

Pivot tables are essential for those who need to analyze and present data effectively. With this guide, you have a solid foundation to start exploring the possibilities that pivot tables offer, making them a valuable part of your data analysis.

Create a Pivot Table in Excel

Prepare your data and build a pivot table in Excel to summarize and analyze large datasets quickly.

1
Prepare your data

Organize your data as a table with unique headers in the first row and one record per row. Remove blank rows and ensure each column has a consistent data type.

2
Insert the pivot table

Select your dataset, go to the Insert tab, and click PivotTable. Confirm the data range Excel suggests and choose whether to place the pivot table in a new sheet or the existing one.

3
Structure rows, columns, and values

Use the PivotTable Field List to drag fields into the Rows, Columns, Values, and Filters areas. Pick the summarization function (Sum, Average, Count, Min, Max) that answers your question.

4
Customize and analyze the result

Apply filters, conditional formatting, and grouping to focus on specific segments. Refresh the pivot table whenever the source data changes.

5
Feed Excel automatically with external data

To pivot data from CRM, ads, e-commerce, or ERP systems, use Kondado's spreadsheet integration to load 80+ sources into Excel at the frequency you choose.

Frequently asked questions

What are the basic requirements for preparing data before creating a pivot table in Excel?
Before creating a pivot table, you need to organize your data in a table format with unique headers for each column, where each row represents a distinct record. This structured format is essential because Excel uses these headers to populate the PivotTable Field List panel, allowing you to drag fields to the Rows, Columns, and Values areas.
How do I insert a pivot table in Excel?
To insert a pivot table, first select your entire data set. Then go to the "Insert" tab in Excel and click on "Pivot Table." Excel will automatically suggest the data range, which you should verify for accuracy. You can choose to insert the pivot table in a new worksheet or in the existing one by clicking "From Table/Range" and then selecting "New Sheet" or the current sheet.
What is the purpose of each area in the Pivot Table Fields panel?
The Pivot Table Fields panel has four key areas: "Filters" is used to filter and segment your data; "Columns" and "Rows" distribute information across columns and rows in your table; and "Values" is where data consolidation happens using functions like Sum, Average, Count, or other summarization methods to answer your analytical questions.
How can I change the summarization function in a pivot table's Values area?
After dragging a field to the "Values" area, you can change the summarization function by double-clicking on the field in the Values area or clicking the dropdown arrow next to it. This opens a dialog where you can switch between functions like Sum, Average, Count, Max, Min, and others depending on your analysis needs.
What should I do when the original data changes and I need to update my pivot table?
To reflect changes in your original data, right-click anywhere on the pivot table and select "Refresh." You can also use the refresh button in the Pivot Table tools that appear in the ribbon. For more automated data updates from external sources, consider using data integration tools that can centralize and refresh your information automatically.
How can I visualize pivot table data with charts?
You can create charts from your pivot table by clicking on "Insert" and then selecting the chart icon of your choice. The article demonstrates using a "Stacked Bars" chart variation, but Excel offers many chart types. This visualization capability helps present your summarized data more effectively for data visualization and reporting purposes.

Written by·Published 2024-02-09·Updated 2026-04-26