To show multiple columns in a pivot table, drag more than one field into the Columns area (or Rows area) of the PivotTable Fields pane. The pivot table then nests those fields side by side, creating a multi‑column layout. For example, dragging Year and Quarter into Columns produces columns for 2024‑Q1, 2024‑Q2, 2025‑Q1, and so on, with each quarter broken out separately.
What “Multiple Columns” Means in a Pivot Table
In Excel, a pivot table’s layout is controlled by four areas: Filters, Columns, Rows, and Values. The Columns area determines how many column headings appear across the top. When you put two fields there, Excel creates a hierarchy: the first field forms the outer column headers, and the second field forms the inner headers. This is different from putting fields in the Rows area, which stacks them vertically.
For instance, with Product Category in Columns and Region in Rows, you get one column per category (e.g., Furniture, Office Supplies, Technology). Add Year as a second column field, and you get Furniture‑2023, Furniture‑2024, Office Supplies‑2023, etc. The Values area (e.g., Sum of Sales) fills the intersecting cells.
How to Add Multiple Columns (Step by Step)
These steps apply to Microsoft 365, Excel 2021, and Excel 2019 on Windows. On Mac, the PivotTable Fields pane works the same way, though the ribbon is at the top and some shortcut keys differ.
- Click anywhere inside your data range, then go to Insert > PivotTable.
- In the dialog, choose where to place the pivot table (New Worksheet or Existing Worksheet) and click OK.
- In the PivotTable Fields pane, drag the first column field (e.g., Year) into the Columns box.
- Drag a second field (e.g., Quarter) into the same Columns box, below the first.
- Drag a value field (e.g., Sales) into the Values box. It will appear as “Sum of Sales”.
- Optionally, drag a field like Region into the Rows box to get a row for each region.
You can reorder the fields in the Columns box by dragging them up or down. The order changes the nesting: the topmost field becomes the outermost column header.
Choosing Between Columns, Rows, and Values
Deciding which fields go where depends on what you want to compare. A general rule:
- Columns are best for a small number of categories that you want to see side by side (e.g., years, quarters, product lines). Too many columns make the table wide and hard to read.
- Rows are better for long lists (e.g., customer names, dates, SKUs) because they scroll vertically.
- Values always holds the numbers you’re summarizing (sum, count, average, etc.).
If you have two time dimensions, putting the larger one (Year) in Columns and the smaller one (Quarter) also in Columns creates a compact grid. If you put Year in Columns and Quarter in Rows, you get a different layout—each year becomes a column, and each quarter becomes a row, which is often easier to scan.
Common Problems and How to Fix Them
Three issues come up frequently when working with multiple columns:
- Columns are too wide or too many. If you have many unique values in a column field, the pivot table becomes unwieldy. Solution: filter the field (use the drop‑down arrow on the column header) to show only the top 5 or 10 items, or move that field to Rows instead.
- Values repeat in each column. This happens when you accidentally drag a numeric field into the Columns area. Numbers in Columns are treated as text categories, not as values. Move numeric fields to Values.
- Blank columns appear. This usually means your source data has empty cells in the column field, or the field has a blank entry. Clean the source data or apply a filter to exclude blanks.
Another common frustration is that the pivot table shows “(blank)” as a column header. That occurs when some rows in the source have no value for that field. You can hide it by right‑clicking the blank header and choosing Field Settings > Layout & Print, then unchecking “Show items with no data”.
Comparing Multi‑Column vs. Multi‑Row Layouts
Both layouts summarize the same data, but they change how you read it. A multi‑column layout (two fields in Columns) is ideal for comparing subcategories within a category—for example, sales by product and by quarter. A multi‑row layout (two fields in Rows) stacks the data vertically, which is better when you want to list every combination and then use subtotals.
Consider a sales table with Region, Product, and Sales. If you put Region in Columns and Product in Rows, you get a matrix: rows are products, columns are regions, and each cell shows that product’s sales in that region. If you put Region and Product both in Rows, you get a long list with subtotals per region—useful for exporting to a report.
Excel also lets you switch between Compact, Outline, and Tabular forms (under Design > Report Layout). Tabular form shows each field in its own column, which is often clearer when you have multiple row fields.
Using Multiple Columns for Calculated Fields
Sometimes you want to show more than one calculation per column group, like both Sum and Average. You can do that by dragging the same value field into the Values area twice, then changing one to Average (right‑click > Summarize Values By > Average). This creates two value columns for each column header, effectively giving you multiple columns of data.
For example, with Year in Columns and Sales dragged twice into Values, you get “Sum of Sales” and “Average of Sales” for each year. To rename these, click the field in the Values area, choose Value Field Settings, and type a custom name like “Total Sales”. This is a quick way to add a second column without adding another source field.
Frequently Asked Questions
Can I have more than two fields in the Columns area?
Yes, you can add three or even four fields to Columns. Excel will nest them left to right. However, the number of columns grows multiplicatively. If you have 3 years and 4 quarters, that’s 12 columns. Add a third field with 5 categories, and you get 60 columns—usually too many to view at once. Use filters to limit the visible items.
How do I move a column field to the Rows area?
Simply drag the field name from the Columns box to the Rows box in the PivotTable Fields pane. The layout updates instantly. You can also right‑click a column header and choose Move to Rows.
Why does my pivot table show “Column Labels” instead of my field name?
That happens when you have multiple fields in the Columns area and the pivot table is in Compact form. The header “Column Labels” is a generic label. To see the actual field names, switch to Tabular form via Design > Report Layout > Show in Tabular Form.
Can I change the order of the columns?
Yes. Drag the field names up or down in the Columns box. The topmost field becomes the outermost column header. You can also manually drag individual column headers in the pivot table to reorder them, but that only affects the current view and may reset when you refresh.
How do I prevent Excel from sorting columns alphabetically?
By default, pivot tables sort text fields alphabetically and numbers numerically. To keep a custom order, drag the column headers manually, or use a custom list (File > Options > Advanced > Edit Custom Lists) and then set the field’s sort order to that list via Field Settings > Advanced.
Does this work the same in Google Sheets?
Google Sheets has a similar pivot table editor, but the fields are called Rows, Columns, Values, and Filters. You can add multiple fields to the Columns section, and it nests them the same way. The main difference is the interface—in Sheets, you drag fields into the “Columns” box on the right side of the screen. The logic is identical.
Final Tips for Clean Multi‑Column Pivots
To keep your pivot table readable when using multiple columns:
- Limit the number of distinct items in each column field (use filters or group dates).
- Use the Design > Report Layout options to choose Tabular form if you need to copy the data elsewhere.
- Turn off subtotals for column fields if they clutter the view (right‑click > Field Settings > Subtotals & Filters > None).
- Refresh the pivot table after changing source data (right‑click > Refresh).
With these techniques, you can build a pivot table that shows multiple columns exactly the way you need—whether for a quarterly report, a regional breakdown, or a product comparison.
Related
- Cell Counting Equation: Hemocytometer & Alternatives
- How to Create Shortcut Keys in Windows
- Google Sheets COUNTIF Case Sensitive? Exact Match
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Power Pivot Sort Data: Model and PivotTable SortingYes. In Power Pivot, use Sort by Column to give labels a defined order in PivotTables, such as…
- Excel Online Waterfall Chart: How to Set a Bar as TotalIn Excel for the web, select the individual waterfall column and check its right-click menu for Set as…
- Excel Pivot Chart Zero Values: Why They DisappearYes. An Excel PivotChart can appear to omit zero values because the source contains blanks or text instead…
- Pivot Chart Slicers: How to Add and Use ThemYes. In Excel for Microsoft 365 on Windows, select the PivotChart, choose PivotChart Analyze > Insert Slicer, select…
- Exploded Doughnut Chart in Excel: How to Make OneTo make an exploded doughnut chart in Excel for Microsoft 365 on Windows, select your category-and-value data, choose…
- Microsoft Excel Pivot Charts: How to Create and UseA Microsoft Excel PivotChart is a chart linked to a PivotTable, so you can summarize and explore data…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.