ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Data tools
  3. Calculated Item in a Pivot Table: When and How to Use One

Calculated Item in a Pivot Table: When and How to Use One

By ExcelReady Team·Updated November 3, 2026·6 min read

The short answer

A calculated item is a new item inside one pivot table field, built from other items in that field, such as Variance = Actual - Budget. Click an item label, then choose PivotTable Analyze > Fields, Items & Sets > Calculated Item. Check the grand totals afterwards: they add the new item to the original ones.

Key takeaways

  • A calculated item works across items of one field (Actual, Budget). A calculated field works across columns (Sales, Cost).
  • Click an item label first, or the Calculated Item command stays grey.
  • Grand totals include the calculated item, so totals can double count. Turn them off where they make no sense.
  • Calculated items don't work on grouped fields or on pivot tables built from the Data Model.
  • Show Values As > Difference From often gives the same variance with no calculated item at all.
On this page+
  1. What is a calculated item in a pivot table?
  2. The example data
  3. How to add a calculated item, step by step
  4. The grand total trap
  5. Limits of calculated items
  6. Better options for common cases
  7. Practise it

A calculated item in a pivot table is a new item inside one field, made from other items in the same field. The classic example is a Variance item equal to Actual minus Budget, sitting next to Actual and Budget as if it were real data. This guide shows when a calculated item is the right tool, how to add one step by step, and the grand total trap that catches almost everyone.

What is a calculated item in a pivot table?#

A calculated item is a formula that combines items of one row or column field. An item is one of the values in a field: in a Scenario field, the items are Actual and Budget. In a Region field, they are North, South and East.

It is easy to confuse with a calculated field in a pivot table, so here is the difference:

Calculated fieldCalculated item
Works onValue fields (columns of numbers)Items inside one row or column field
ExampleProfit = Sales - CostVariance = Actual - Budget
Appears asA new value columnA new row or column label
MenuFields, Items & Sets > Calculated FieldFields, Items & Sets > Calculated Item

Use a calculated item when the numbers you want to combine sit in one column of your source data and are told apart by a label in another column.

The example data#

All the steps use this small sales table. Each row is one region in one scenario:

ABC
1RegionScenarioSales
2NorthActual42,000
3NorthBudget40,000
4SouthActual35,000
5SouthBudget38,000
6EastActual29,000
7EastBudget27,000

Build a pivot table with Region in Rows, Scenario in Columns and Sum of Sales in Values. If you haven't built one before, follow the beginner's guide to pivot tables first. You now have Actual and Budget side by side for each region, but no variance.

How to add a calculated item, step by step#

To add a calculated item, select an item label in the field you want to extend, then open the Calculated Item dialog.

  1. Click the Actual or Budget column heading in the pivot table. The cell must be an item label, not a number.
  2. Go to PivotTable Analyze (called Analyze or Options in older versions) > Fields, Items & Sets > Calculated Item.
  3. In Name, type Variance.
  4. In Formula, delete the 0. Double-click Actual in the Items list, type a minus sign, then double-click Budget. The formula reads =Actual-Budget.
  5. Click Add, then OK.

A new Variance column appears after Budget:

RegionActualBudgetVariance
East29,00027,0002,000
North42,00040,0002,000
South35,00038,000-3,000
Grand Total106,000105,0001,000

The Variance column total is right: 2,000 + 2,000 − 3,000 = 1,000, the same as 106,000 − 105,000. If an item name has spaces, put it in single quotes in the formula, such as ='Actual 2026'-'Budget 2026'.

The grand total trap#

Calculated items are added into grand totals like any other item, and that is where results go wrong. Look at the grand total column on the right of the pivot table. For North it now shows 42,000 + 40,000 + 2,000 = 84,000. That number means nothing: it adds actual sales, budget sales and the gap between them.

Fix it in one of these ways:

  • Turn off the grand total column. Go to PivotTable Design > Grand Totals and choose On for Columns Only. The Grand Total row at the bottom stays, and the meaningless column on the right goes.
  • Combine items carefully. A calculated item such as =North+South in the Region field adds a "North + South" row, and the grand total at the bottom now counts North and South twice. Hide the original items with the field's filter, or don't show a grand total.

Subtotals behave the same way. Always check one total by hand after you add a calculated item.

Limits of calculated items#

Calculated items are an older feature with several rules. Excel will stop you, or the command will be greyed out, when:

  • The field is grouped. You can't add a calculated item to a field with grouped items, such as dates grouped by month. Ungroup it first; see how pivot tables group dates to understand what grouping changes.
  • The pivot table uses the Data Model. Pivot tables built with "Add this data to the Data Model" don't offer calculated items. Use a measure in Power Pivot instead.
  • You need a cell reference. The formula can use only items, numbers and operators. It can't point to a worksheet cell or a defined name.
  • The value field uses certain summary functions. Excel shows a message if you mix calculated items with summaries such as Average or StdDev. Keep the value field as Sum or Count.

Calculated items can also make a large pivot table slow, because Excel creates the new item for every combination of the other fields. To see every formula in the pivot table, use Fields, Items & Sets > List Formulas. Excel adds a new sheet that lists each calculated field and item.

Better options for common cases#

Before you add a calculated item, check whether a simpler tool does the job. For a variance, Show Values As is often cleaner:

  1. Add Sum of Sales to Values a second time.
  2. Right-click it > Show Values As > Difference From.
  3. Set Base field to Scenario and Base item to Budget.

The Actual column of the second copy now shows Actual minus Budget, and no grand total is distorted. The same menu gives you each item's percent of the total. To put the variance first or last, sort the pivot table by that column.

You can also calculate outside the pivot table with a formula on the source data. For South's variance:

Excel formula
=SUMIFS(C2:C7,A2:A7,"South",B2:B7,"Actual")-SUMIFS(C2:C7,A2:A7,"South",B2:B7,"Budget")

The result is -3,000 (35,000 − 38,000), the same number the calculated item shows. This is a good way to check a calculated item before you trust it.

Practise it#

Calculated items make sense once you have built a few pivot tables yourself. Start with the first pivot tables lesson to place fields in Rows, Columns and Values, then move on to the second pivot tables lesson for summaries and value settings. You build each pivot table in a live spreadsheet and it checks your work instantly. Then try the exercise on this page to confirm a variance with SUMIFS.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

Before you add a Variance item to a pivot table, check what it should show. In F2, calculate South's variance: Actual sales minus Budget sales, using two SUMIFS.

fx
ABCDEFG
1
Region
Scenario
Sales
2
North
Actual
42000
South variance
3
North
Budget
40000
4
South
Actual
35000
5
South
Budget
38000
6
East
Actual
29000
7
East
Budget
27000
8
9
10

Tip: Write one SUMIFS for South and Actual, then subtract a second SUMIFS for South and Budget.

Practise this in a lesson

LessonPivot tables 2Go further with PivotTables: nest two row fields with subtotals, add a report filter, show values as a % of the grand total, update the source when new rows arrive, and know when SUMIFS is the better tool.LessonPivot tables 1Build your first PivotTable on a new sheet: total sales by region, split them by product, then switch the summary from Sum to Count and Average and read the answer off the pivot.

Frequently asked questions

What is the difference between a calculated field and a calculated item?

+

A calculated field does maths between value fields, such as Sales minus Cost, and adds a new value column. A calculated item does maths between items inside one row or column field, such as Actual minus Budget, and adds a new item to that field.

Why is Calculated Item greyed out?

+

Usually because the selected cell is not an item label in a row or column field, the field is grouped, or the pivot table was built from the Data Model. Click a label such as Actual, ungroup the field, or use a normal range as the source.

Why are my pivot table totals wrong after adding a calculated item?

+

The grand total adds the calculated item to the items it was built from. Actual plus Budget plus Variance is not a useful number. Turn off that grand total or hide the item where the total should not include it.

How do I delete a calculated item?

+

Click an item in the same field, open Fields, Items & Sets > Calculated Item, pick the item from the Name list, click Delete and then OK.

Can a calculated item use a cell reference?

+

No. Formulas for calculated items and calculated fields can use only items or fields from the pivot table, plus numbers and operators. They cannot point to worksheet cells or defined names.

Sources

  • Create a PivotTable to analyze worksheet data - Microsoft Support
  • Show different calculations in PivotTable value fields - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What is a calculated item in a pivot table?
  2. The example data
  3. How to add a calculated item, step by step
  4. The grand total trap
  5. Limits of calculated items
  6. Better options for common cases
  7. Practise it

Keep reading

Data tools· 5 min read

Calculated Fields in a Pivot Table

A calculated field is a new value column you create inside a pivot table from a formula, such as =Sales-Cost for profit. Click the pivot, go to PivotTable Analyze > Fields, Items & Sets > Calculated Field, type a name and formula, then click Add. It works on summed fields, so ratios work but row-level maths like Units*Price doesn't.

Data tools· 5 min read

How to Sort a Pivot Table in Excel

To sort a pivot table by its numbers, right-click any value in the column and choose Sort > Sort Largest to Smallest. To sort the labels, click the arrow next to Row Labels and choose Sort A to Z. The Grand Total row stays at the bottom, and the pivot keeps its sort when you refresh it.

Data tools· 5 min read

Pivot Tables in Excel: A Beginner's Guide

A pivot table summarizes a long table in a few clicks, without formulas. Click a cell in your data, choose Insert > PivotTable, and click OK to put it on a new sheet. Then drag fields into Rows, Columns and Values: Region in Rows and Sales in Values gives total sales for each region.

More on data tools

  • How to Make a Pivot Chart in Excel
  • Show Zero Instead of Blank in a Pivot Table
  • Pivot Table "Show Values As" Explained
  • Conditional Formatting in a Pivot Table That Survives Refresh
  • Count in a Pivot Table: Count vs Distinct Count
  • Group Dates by Month or Year in a Pivot Table
All data tools articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free