C
Clarity News Hub

How do you add two columns in a pivot table?

Author

Sarah Smith

Published Jan 19, 2026

Add an Additional Row or Column Field

  1. Click any cell in the PivotTable. The PivotTable Fields pane appears. You can also turn on the PivotTable Fields pane by clicking the Field List button on the Analyze tab.
  2. Click and drag a field to the Rows or Columns area.

Can you sum two fields in a pivot table?

In a pivot table, you can create a new field that performs a calculation on the sum of other pivot fields, using your own formulas.

How do you calculate two columns in a pivot table?

Add a calculated field

  1. Click the PivotTable. ...
  2. On the Analyze tab, in the Calculations group, click Fields, Items, & Sets, and then click Calculated Field.
  3. In the Name box, type a name for the field.
  4. In the Formula box, enter the formula for the field. ...
  5. Click Add.

How do I sum columns in a pivot table?

In the PivotTable, right-click the value field you want to change, and then click Summarize Values By. Click the summary function you want. Note: Summary functions aren't available in PivotTables that are based on Online Analytical Processing (OLAP) source data. The sum of the values.

How do I Subtotal just one column in a pivot table?

How to show selective sub-totals in Pivot Tables

  1. Click on any month label. This will select all months in the row label area.
  2. Right click > Field settings (you can also access this from Analyze Ribbon > Field Settings)
  3. In the “Subtotals & Filters” tab, choose “None”
  4. You are done.
27 related questions found

How do I create a pivot table with multiple columns and rows?

To have multiple columns:

  1. Click in one of the cells of your pivot table.
  2. Click your right mouse button and select Pivot table Options in the context menu, this will open a form with tabs.
  3. Click on the tab Display and tag the check box Classic Pivot table layout.

How do I group columns in a pivot table?

Group data

  1. In the PivotTable, right-click a value and select Group.
  2. In the Grouping box, select Starting at and Ending at checkboxes, and edit the values if needed.
  3. Under By, select a time period. For numerical fields, enter a number that specifies the interval for each group.
  4. Select OK.

How do you add a column in a pivot table without formulas?

Select the column that has the names of the new columns. In this case "Action". Click on the Transform Menu - Pivot Column. Inside the Pivot Column dialog, select the column with the values that will populate the new columns to be created.

How do I change multiple columns from Count To sum in pivot table?

Alternatively, select and right-click the cell and select Value Field Settings from the drop-down menu. In the dialog box, go to Summarize Values By > Sum and click OK to change the function from count to sum.

How do you create a relationship between two tables in Excel?

Creating a relationship in Excel – Step by Step tutorial

  1. First set up your data as tables. To create a table, select any cell in range and press CTRL+T. ...
  2. Now, go to data ribbon & click on relationships button.
  3. Click New to create a new relationship.
  4. Select Source table & column name. ...
  5. Add more relationships as needed.

How do I calculate columns in Excel?

If you need to sum a column or row of numbers, let Excel do the math for you. Select a cell next to the numbers you want to sum, click AutoSum on the Home tab, press Enter, and you're done. When you click AutoSum, Excel automatically enters a formula (that uses the SUM function) to sum the numbers.

How do I add a measure to a PivotTable?

To Create a Measure by using the Measure Dialog Box in Excel

  1. In the Excel window, click Power Pivot> Calculations> Measures> New Measure.
  2. In the Measure dialog box, for Table name, click the down arrow, and then select the table you want the measure to be in. ...
  3. In Measure Name, type a name.

How do I add a custom subtotal to a pivot table?

Add Custom Subtotals for Pivot Fields

  1. Right-click on an item in the pivot field that you want to change. ...
  2. In the popup menu, click Field Settings.
  3. In the Field Settings dialog box, on the Subtotals & Filters tab, click Custom.
  4. Click on one or more summary function in the list of functions, then click OK.

How do you add a sum and a count in a pivot table?

Right-click on the Pivot Table and select Summarize Value By > Count. The summarization has now changed from Sum to Count Pivot Table.

How do I show columns side by side in a pivot table?

Click any cell in your pivot table, and the PivotTable Tools tab will be displayed.

  1. Under the PivotTable Tools tab, click Design > Report Layout > Show in Tabular Form, see screenshot:
  2. And now, the row labels in the pivot table have been placed side by side at once, see screenshot:

Can you add a manual column to a pivot table?

Hi, This cannot be done in the pivot table. You will have to add data to the source sheet.

How do I select multiple columns in a PivotTable?

Hold down SHIFT and click, or hold down CTRL and click to select additional items within the same field. To cancel selection of an item, hold down CTRL and click the item.

How do I pivot two columns in SQL?

You gotta change the name of columns for next Pivot Statement. You can use aggregate of pv3 to sum and group by the column you need. The key point here is that you create new category values by appending 1 or 2 to the end. Without doing this, the pivot query won't work properly.

How do I group columns in Excel?

To group rows or columns:

  1. Select the rows or columns you want to group. In this example, we'll select columns A, B, and C. ...
  2. Select the Data tab on the Ribbon, then click the Group command. Clicking the Group command.
  3. The selected rows or columns will be grouped. In our example, columns A, B, and C are grouped together.

How do I create a custom column in a PivotTable?

Force the Pivot Table Tools menu to appear by clicking inside the pivot table. Click the Options tab and then choose "Calculated Field" from the "Formulas" menu. Enter a descriptive column label for your custom field in the pop-up window. Create the formula for your custom field in the "Formula" text entry window.

How do I subtotal columns in a PivotTable?

To specify the subtotal display settings, on the PivotTable Tools | Design tab, in the Layout group, click the Subtotals button. The invoked drop-down menu allows you to display the subtotals at the top or bottom of each item in the outer row fields in compact or outline form, or hide subtotals.

How do I show subtotal on top of a PivotTable?

Select a cell in the pivot table, and in the Excel Ribbon, under PivotTable Tools, click the Design tab. Click Report Layout, and select Compact Form or Outline Form. (In Tabular Form, subtotals are only shown at the bottom.) Click Subtotals, and click Show all Subtotals at Top of Group.

How do I change the layout of a PivotTable?

Follow these steps, to change the layout:

  1. Select a cell in the pivot table.
  2. On the Ribbon, click the Design tab.
  3. At the left, in the Layout group, click the Report Layout command.
  4. Click the layout that you want to uses, e.g. Show in Outline Form.