Excel Pivot Table (Table of Contents)
Pivot Table in Excel
First, let us go through the definition of what is a pivot table in excel. In a very simplified manner, the best answer is “Pivot Table is an excel program tool that summarizes a large set of data”. We have huge chunks of data in excel and to make work easier we use pivot tables to summarize our data to have a desired report of the data. Excel Pivot Table extracts a significance from a data with a set of different records and fields.
An Excel pivot table is a programming tool that allows us to reorganize and summarize selected rows and columns of data to obtain a report. Pivot table doesn’t change any values in the data.
An Excel pivot table is useful with the larger amount of data. It is a very powerful Excel tool which saves us lots of time required to make the desired report.
How to Create a Pivot Table in Excel?
Pivot Table in excel is very simple and easy to use. Let us see how to create a Pivot table in excel with the help of some examples.
Pivot Table in Excel – Example #1
In a Company where department work is to mark certain Id’s are they correct or not. They process data which has some sort of id’s and mark it as correct or not.
Below is the screenshot of raw data,
Suppose a company’s manager of the department wants to know the count of how many Prop_ID were correct and incorrect. He can manually count those values but for a large set of data, it will be a slow task. But there is a way to do this easily.
4.9 (287 ratings)
In his excel workbook, he will hit the Insert button and click on pivot table on the leftmost button of his screen. Now he can choose the same worksheet or a new worksheet to open this pivot table. To know the count of Correct and Incorrect values in those prop_id the Status field which is correct or incorrect will be drag down to rows section and the values the count in reference of the property id’s the Prop_ID will be drag down to Values Section.
- Select the data and go to Insert tab click on pivot tables under the tables section.
- A dialog box appears. In the above image there are few checkboxes, first to select the table range which we did by selecting the data. Now where to insert the pivot table to insert in the same worksheet or different worksheet? If the data is very huge then it is convenient to insert the pivot table in the new worksheet and click OK.
- We get the below result, on the right-hand side we have our fields of the pivot tables which will be moved to rows and columns as the desired report and on the left-hand side, the excel pivot table will be created.
- Our Task is to check how many property ids were marked as correct and how many were marked as incorrect by the auditor. Drag Auditor fields to Rows section, Property_id to value section whereas the status field to filters section.
- We have made our pivot table which currently shows the total count of property id’s marked by the auditors.
- Now to check the status how many property ids were marked as correct and how many were marked as incorrect. In the pivot table under the status, section click on it.
- Now check select multiple items and then check Correct and click on ok.
- Now we have a count of property id’s marked as correct by auditor.
- Similarly, we can have counted for incorrect ones.
Pivot Table in Excel – Example #2
In a sales company, we have a transactional sales data which contains which product made how many sales under which quarter and in what year.
Below is the screenshot of raw data,
This data is not up to 20 rows but it 66 rows in this example which can go down even further and it would be a tedious task to check for sales of a specific product under any quarter.
- Select the data to insert an excel pivot table. This time we will use a shortcut key to insert pivot tables, click alt then “D” and then “P”. Another dialog box appears. We have our data in excel and we want to create a pivot table then we have to click the next button.
- In the next step, it asks for a range of data. But as we had already selected the data so it is prefilled. Click on Next.
- Now the last dialog box asks us where we want our pivot tables in the same worksheet or another. We have to select New worksheet and then Click on Finish.
- On the right-hand side we have pivot table fields and on the left-hand side, we have our pivot table report to be made.
- Drag product in the rows section, sales under the values and quarter under the column section whereas year in the filter. And we have our report.
The above pivot table shows which product made how many sales in which quarter.
- If we want to check in the year 2017 what was the sales for the products we simply uncheck the year 2018 in the year tab.
- Now we have the sales for the products in the year 2017.
Explanation of Pivot Table in Excel
Basically, pivot tables is a powerful Excel tool which helps us to summarize large amounts of data and saves us a lot of time.
Pivot tables are a reporting tool which has fields section which contains four fields:
- Rows: Data which is taken as a specifier.
- Values: Count of the data.
- Filters: Filters to hide out certain data.
- Columns: Values under different conditions.
Things to Remember About Excel Pivot Table
- Pivot tables do not change the values in the database.
- Pivot tables can be inserted in the same worksheet with the data or in another worksheet.
- For convenience, we add pivot tables in a new worksheet.
You can download this Pivot Table Excel Template here – Pivot Table Excel Template
This has been a guide to Pivot Table in Excel. Here we discuss how to create a Pivot Tables in Excel along with practical examples and downloadable excel template. You can also go through our other suggested articles –