To get average in a pivot table, right-click any cell in the Values area, choose Summarize Values By, then select Average. Excel instantly replaces the default Sum with the mean of every underlying record for that row or column group. This works in every Excel version from 2010 onwards and takes under five seconds.
- Key Takeaway 1: Switching “Summarize Values By” to Average takes under five seconds and needs no formula.
- Key Takeaway 2: “Show Values As” is a separate setting that displays percentages, running totals or rank without changing the underlying data.
- Key Takeaway 3: Excel’s native pivot table cannot calculate median; you need a DAX measure in the Data Model or a helper column outside the pivot.
- Key Takeaway 4: Custom number formats let you display values in lakhs (e.g., ₹12.5L) without touching source data.
- Key Takeaway 5: GETPIVOTDATA pulls a specific pivot cell into any formula, protecting your workbook from breaking when the pivot layout changes.
Changing Summarise Values By to Get Average in a Pivot Table
Every field you drop into the Values area defaults to Sum if it contains numbers, or Count if it contains text. That default is fine for revenue totals, but it is wrong for things like average order value, average marks per student, or mean delivery time. Knowing how to get average in pivot table starts with the Value Field Settings dialog.
Step-by-step: switching to Average
- Click any cell inside your pivot table’s Values area.
- Right-click and choose Summarize Values By > Average. Alternatively, go to PivotTable Analyze > Field Settings and pick Average from the list.
- Rename the field header from “Average of Sales” to something cleaner like “Avg Sale (₹)” so dashboards stay readable.
You can stack multiple summarizations on the same field. Drag “Sales” into Values twice: set one to Sum and the other to Average. Now your pivot shows both total revenue and the average deal size side by side — exactly the kind of view a sales manager in an FMCG company or an e-commerce startup needs in a weekly review. This is the fastest way to show average in pivot table alongside totals without writing a single formula.
Other summarization options worth knowing
Beyond Sum, Count and Average, the Value Field Settings dialog offers Max, Min, Product, Count Numbers, StdDev and Var. Count Numbers counts only numeric cells, which is handy when a column has blanks. StdDev tells you how spread out your values are, useful if you are analysing test scores across colleges or sales rep performance across regions.
A common mistake on the job: analysts leave the field on Count when they meant Average, then present “2,340 sales” when the brief asked for “average sale value of ₹2,340”. Always double-check the column header in the pivot before you screenshot it for a presentation. Getting the pivot table average formula right at the field-settings stage prevents this error entirely.
Percentages and Show Values As
Learning how to create a pivot table in Excel with percentages is a separate skill from changing the summarization. “Show Values As” does not change what is being calculated; it changes how the result is displayed relative to something else, like the grand total or a parent row total.
How to show percentages in a pivot table
- Right-click a value cell and choose Show Values As.
- Select % of Grand Total to see each cell’s share of the overall total.
- Select % of Row Total or % of Column Total for relative comparisons within a row or column.
- Select % of Parent Row Total when you have multi-level groupings, for example, Region > State > City.
A real-world example: you are analysing product category sales for a retail chain across Maharashtra, Karnataka and Delhi. Set “Show Values As” to “% of Column Total” and each state column instantly tells you which category dominates that market. That is a two-minute insight that would take much longer with manual formulas.
Displaying values in lakhs
Indian financial reports almost always show revenue in lakhs or crores, not raw rupees. To show values in lakhs in a pivot table, you do not need a helper column. Right-click the value field, go to Number Format, choose Custom, and enter this format string: [>=10000000]##\,##\,##\,##0.00\L;[>=100000]##\,##\,##0.00\L;##,##0. A simpler approach that works for most dashboards: use ##0.00,, (two trailing commas divide by 1,000,000 to show crores) or ##0.00, (one comma divides by 1,000 to show thousands, close enough for lakhs when labelled correctly).
The cleanest method for a lakh-formatted pivot is to apply the custom number format ##”,”##0.00 and add a column header that reads “Sales (₹ Lakhs)”. Your source data stays in full rupees, the pivot does the visual conversion, and no one has to wonder what unit they are looking at.
Buckets, Frequency and Median Workarounds
Grouping raw data into buckets, or “bins”, is one of the most practical pivot table skills for anyone doing data analysis. If you are looking at employee salaries, student scores, or order values, you rarely want to see every unique number. You want to see how many fall into each range.
How to create buckets in a pivot table
- Put your numeric field (e.g., “Order Value”) in the Rows area.
- Right-click any value in that row field and select Group.
- Set “Starting at”, “Ending at” and “By” values. For sales slabs in an Indian SME context, you might use: Start 0, End 500000, By 100000. This creates five buckets: 0-1L, 1L-2L, 2L-3L, 3L-4L, 4L-5L.
- Drop “Order Value” into the Values area and set it to Count to get frequency in pivot table, that is, how many orders fall in each slab.
This grouping feature is how you build a frequency distribution inside a pivot table without writing a single FREQUENCY formula. It is fast, it is dynamic, and it updates automatically when your source data changes.
How to find median in a pivot table
Here is the honest answer: you cannot calculate a true median with a standard pivot table. Excel’s “Summarize Values By” list does not include Median. There are three practical workarounds.
| Method | How it works | Skill level | Limitation |
|---|---|---|---|
| Helper column + MEDIAN formula | Add a MEDIAN formula outside the pivot referencing source data filtered by category | Beginner (Excel 2010+) | Does not update dynamically with pivot filters |
| Power Pivot (Data Model) + DAX | Write a DAX measure: MEDIAN([SalesAmount]) and add it to the pivot | Intermediate (Excel 2013+) | Requires enabling Power Pivot add-in |
| Power Query + grouped stats | Pre-calculate median in Power Query before loading to Excel | Intermediate (Excel 2016+) | Static unless query is refreshed |
For most analysts, the DAX route is the right long-term investment. According to Microsoft’s own learning documentation, DAX (Data Analysis Expressions) is the formula language behind Power Pivot, Power BI and Analysis Services, and median is a native function there. If you are building skills toward a career in data, learning DAX is time well spent. You can see how these skills connect in our guide on data analyst vs data scientist roles.
According to LinkedIn’s Jobs on the Rise 2024 report, data analyst roles in India grew by over 40% year-on-year, with Excel and Power BI listed among the most requested skill combinations. NASSCOM’s Technology Sector Report 2023 puts the Indian data and analytics workforce at over 1.1 million professionals, with demand outpacing supply in mid-level analyst roles. A Statista survey published in 2023 found that Microsoft Excel remains the most widely used data analysis tool globally, with over 750 million active users across enterprise and SME environments. These are not abstract numbers: they are the reason mastering pivot calculations, not just creating pivot tables, matters for your career.
GETPIVOTDATA and Pivot Formulas
GETPIVOTDATA is an Excel function that extracts a specific value from a pivot table using field names and item names as arguments, rather than a cell reference. It is what Excel automatically writes when you type = and then click a cell inside a pivot table. Most beginners delete it and write a plain cell reference instead. That is a mistake.
Why GETPIVOTDATA is better than a plain cell reference
If you reference a pivot cell with =B5, your formula breaks the moment someone sorts the pivot, adds a new row, or changes a filter. GETPIVOTDATA stays accurate because it references by field and item name, not by position. It is the correct way to do an Excel pivot table lookup when you need to pull a pivot result into another sheet or a KPI dashboard.
GETPIVOTDATA syntax
The basic structure is: =GETPIVOTDATA(“data_field”, pivot_table_ref, “field1”, “item1”, “field2”, “item2”, …)
| Argument | What it means | Example |
|---|---|---|
| data_field | The Values field name you want to retrieve | “Sum of Sales” |
| pivot_table_ref | Any cell inside the pivot table | $A$3 |
| field1 | A field in the pivot (Row, Column or Filter) | “Region” |
| item1 | The specific item in that field | “South” |
A concrete example: =GETPIVOTDATA(“Sum of Sales”,$A$3,”Region”,”South”,”Product”,”Laptop”) pulls the exact sales figure for Laptops in the South region, no matter how the pivot is sorted or filtered. This is what experienced analysts use when building executive dashboards that reference pivot data.
Calculated fields: the pivot formula in Excel
A calculated field is a custom formula you define inside the pivot table itself, making it a true pivot formula in Excel. Go to PivotTable Analyze > Fields, Items & Sets > Calculated Field. Give it a name like “Profit Margin %” and enter the formula: = Profit / Sales. Excel applies this formula across every row in the pivot automatically.
One important caveat: calculated fields use the Sum of each field in their formula, not individual row values. This means your margin calculation is Sum(Profit) / Sum(Sales) per group, which is correct for most reporting needs but can mislead if you expected a row-by-row calculation. Understanding this distinction separates analysts who get questioned in reviews from those who do not. It is also the kind of nuance that comes up in data analyst interview questions.
If you are building more advanced analytical dashboards and wondering when to move beyond Excel, our comparison of Power BI vs Tableau will help you decide. For hands-on practice ideas, check out our list of data analytics projects that use real datasets.
Frequently Asked Questions
How do I get average in a pivot table?
Right-click any cell in the Values area of your pivot table and choose Summarize Values By > Average. You can also access this via Field Settings in the PivotTable Analyze tab. Excel recalculates the entire column or row to show the mean instead of the sum, and it updates automatically whenever your source data changes. This is the fastest way to change sum to average in a pivot table with no formula required.
How do I show percentages in a pivot table?
Right-click a value cell and select Show Values As, then choose the percentage type you need: % of Grand Total, % of Row Total, % of Column Total, or % of Parent Total. This setting stacks on top of your existing summarization, so you can show Average as a % of Grand Total at the same time if needed.
Can a pivot table calculate median?
Not natively. Excel’s standard pivot table does not include Median in the Summarize Values By list. Your best options are: using a DAX measure in Power Pivot with the formula MEDIAN([FieldName]), pre-calculating median in Power Query, or using a helper MEDIAN formula outside the pivot that references your source data range.
How do I show values in lakhs in a pivot table?
Right-click the value field, select Number Format, choose Custom, and apply a format like ##0.00, (one trailing comma scales by 1,000) or use a more precise Indian lakh format. Label the column header clearly as “₹ Lakhs” so readers do not misread the unit. Your source data stays unchanged in full rupees.
What is GETPIVOTDATA and how do I use it in Excel?
GETPIVOTDATA is an Excel function that retrieves a specific value from a pivot table by referencing field names and item names, not cell positions. Its syntax is =GETPIVOTDATA(“data_field”, pivot_ref, “field”, “item”). It is more reliable than plain cell references for dashboards because it does not break when the pivot is sorted, filtered or restructured.
How do I create buckets in a pivot table?
Place your numeric field in the Rows area, right-click any value in that field and select Group. Set your Starting at, Ending at and By values to define the bucket size. For example, grouping order values from 0 to 500,000 in steps of 100,000 creates five equal slabs. Then add the same field to Values and set it to Count to see frequency per bucket.
What is a calculated field in a pivot table?
A calculated field is a custom formula defined inside the pivot table itself. Go to PivotTable Analyze > Fields, Items & Sets > Calculated Field, name your field, and enter a formula using existing field names such as = Profit / Sales. Excel applies it across every row automatically. Note that calculated fields always use the Sum of each referenced field, not individual row values.
Pivot table calculations are a core data skill, not an advanced one. Once you can switch between Sum and Average, display percentages, group data into buckets and write a GETPIVOTDATA formula, you can answer most business questions from a spreadsheet without writing complex formulas from scratch. Knowing how to get average in pivot table, how to show percentages, and how to use calculated fields is the level of practical fluency that makes a difference in day-to-day analytical work.
Three things you can do this week:
- Open any sales or marks dataset you have, build a pivot table, and practise switching between Sum, Average, Count and StdDev to see how the numbers change.
- Enable Power Pivot in Excel (File > Options > Add-ins) and write your first DAX median measure on a test dataset.
- Read our guide on how to become a data analyst and check the highest paying tech skills for 2026 to see where data analytics fits in your career plan.
Data skills do not stay siloed. Analysts who can clean, pivot and visualise data are increasingly moving into security operations, where the same logic applies to filtering log files, spotting anomalies in access records and building SIEM dashboards. If that direction interests you, explore the EC-Council Certified SOC Analyst course at 3.0 University, or browse the full 3.0 University certification catalogue to find a programme that fits where you want to go next.
Last updated: May 2025. Reviewed by the 3University editorial team.