Pivot Table in Excel: Step-by-Step Guide for Beginners with Examples
एक्सेल में पिवट टेबल: शुरुआती लोगों के लिए चरण-दर-चरण गाइड
Pivot table in Excel explained step by step, with fields, value settings, date grouping, slicers and refresh tips.
On this page · इस पेज पर
- Key Takeaways
- What Is a Pivot Table?
- Step 1: Prepare Your Data
- Step 2: Insert the Pivot Table
- Step 3: Build the Layout
- Step 4: Change the Calculation
- Step 5: Group Dates
- Step 6: Sort and Filter
- Step 7: Add Slicers
- Step 8: Refresh the Pivot Table
- Step 9: Add a Pivot Chart
- Worked Example
- Common Pivot Table Mistakes
- Pivot Tables and Formulas
- FAQs on Pivot Table in Excel
- Wrap-Up
A pivot table in Excel turns a long list of data into a short summary in a few clicks. You do not write a single formula. Instead, you drag fields into boxes, and Excel adds, counts or averages the data for you. First, learn how to prepare the data. Then follow the steps below, because the same method works for almost any report.
What Is a Pivot Table?
A pivot table is a tool that summarises data. Suppose you have 5,000 rows of sales with the columns Date, Region, Product and Amount. A pivot table can show the total amount for each region, or the number of orders for each product, in seconds. Moreover, you can change the view by dragging a field, so you do not need to redo the work.
Step 1: Prepare Your Data
Good data gives a good pivot table. Check these points before you begin.
- First, keep one header row at the top, and give each column a clear name.
- Next, remove blank rows and blank columns inside the data.
- Also, do not merge cells.
- Then, keep one type of data in each column, such as dates only or numbers only.
- Finally, press Ctrl+T to turn the range into a Table, so the pivot table grows with new rows.
Step 2: Insert the Pivot Table
Click any cell inside your data. Next, go to the Insert tab and click PivotTable. In the box that opens, Excel fills the range for you. Choose New Worksheet, and then click OK. Excel opens an empty pivot table and shows the PivotTable Fields pane on the right. On Windows, you can also press Alt, then N, then V to start.
Step 3: Build the Layout
The Fields pane lists your column headings at the top. Below it are four boxes. You drag fields into them.
- Filters holds a field that you want to use to filter the whole report.
- Columns spreads a field across the top.
- Next, Rows lists a field down the left side.
- Finally, Values holds the numbers that Excel adds, counts or averages.
For example, drag Region to Rows and Amount to Values. Excel now shows each region with its total amount, and a Grand Total at the bottom. Then drag Product to Columns, and you get a grid of regions by products.
Step 4: Change the Calculation
By default, Excel sums numbers and counts text. However, you can change this. Click the field in the Values box, choose Value Field Settings, and pick Sum, Count, Average, Max or Min. In the same box, the Show Values As tab can display each value as a percentage of the total. In addition, the Number Format button lets you add commas or a currency symbol.
Step 5: Group Dates
Dates often need grouping by month or year. In recent versions of Excel, a date field that you drag to Rows may group itself into months and years. If it does not, right-click a date in the pivot table and choose Group. Then select Months, Quarters or Years, and click OK. Because of this, a year of daily sales becomes a clean monthly report.
Step 6: Sort and Filter
Click the arrow next to Row Labels to sort or filter. For instance, you can sort regions from the highest to the lowest total, or show only the top five products. Also, a Value Filter lets you show only the items above a limit. Meanwhile, the Filters box lets you view one month or one region at a time.
Step 7: Add Slicers
Slicers are click-buttons that filter the pivot table. Click inside the pivot table, go to PivotTable Analyze, and choose Insert Slicer. Tick a field such as Region, and click OK. Now click a region name on the slicer, and the pivot table shows only that region. To clear the filter, click the small clear icon on the slicer.
Step 8: Refresh the Pivot Table
A pivot table keeps a copy of your data. Therefore, it does not change when you edit the source. To update it, right-click the pivot table and choose Refresh, or press Alt+F5. If you added new rows outside the original range, change the source with PivotTable Analyze, then Change Data Source. However, if you used a Table, the range grows automatically.
Step 9: Add a Pivot Chart
Click inside the pivot table, go to PivotTable Analyze, and choose PivotChart. Pick a column chart or a line chart. The chart follows the pivot table, so it changes when you drag fields or use a slicer.
Worked Example
Suppose a shop has a list with Date, Region, Product and Amount. To see sales by region and month, drag Region to Rows, Date to Columns, and Amount to Values. Next, group the dates by months. Then add a Product slicer. Finally, create a column chart. With this, you read the sales story at a glance.
Common Pivot Table Mistakes
- First, users leave blank cells in the header row, so Excel shows an error.
- Second, many forget to refresh after they edit the data.
- Third, some store numbers as text, so Excel counts them instead of adding them.
- Finally, others type over the pivot table, which is not allowed.
Pivot Tables and Formulas
A pivot table and a formula work well together. For example, you can use SUMIF in a normal sheet for a single total, but a pivot table gives all totals at once. To learn the formulas behind the totals, read our guide on Excel formulas. To work faster, use the Excel shortcut keys. You can also browse the Excel category.
FAQs on Pivot Table in Excel
What is a pivot table in Excel?
A pivot table is an Excel tool that summarises a large table into a short report. You drag fields into boxes, and Excel adds, counts or averages the data.
How do I create a pivot table in Excel?
Click a cell in your data, go to Insert, choose PivotTable, pick a new worksheet and click OK. Then drag fields into Rows, Columns and Values.
Why is my pivot table not updating?
A pivot table does not update by itself. Right-click it and choose Refresh, or press Alt+F5. If you added rows outside the range, change the data source.
How do I change Sum to Count in a pivot table?
Click the field in the Values box, choose Value Field Settings, and select Count. You can also pick Average, Max or Min.
More Questions About Pivot Table In Excel
How do I group dates in a pivot table?
Right-click a date in the pivot table, choose Group, and select Months, Quarters or Years. Then click OK.
What is a slicer in Excel?
A slicer is a set of click-buttons that filter a pivot table. It shows the current filter, and you clear it with the clear icon.
Do I need formulas to use a pivot table?
No. A pivot table works without formulas. However, knowing formulas helps you check the totals.
Wrap-Up
A pivot table in Excel saves hours of manual work. Prepare clean data, drag the fields, and refresh when the data changes. Then continue with the Excel category, or return to the The Note homepage.
Related · संबंधित
Pivot Table in Excel in Hindi: चरण-दर-चरण गाइड और उदाहरण
Excel Formulas in Hindi: 30+ उपयोगी फॉर्मूले उदाहरण सहित
Excel Formulas: 30+ Useful Formulas for Beginners with Examples
एक्सेल फॉर्मूला: शुरुआती लोगों के लिए 30+ उपयोगी फॉर्मूले उदाहरण सहितExcel Shortcut Keys in Hindi: एक्सेल शॉर्टकट कीज़, तेज़ काम के 100 ज़रूरी शॉर्टकट