Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Edit Y Axis in a Pivot Table

· 4 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Editing the Y axis (the values area) in a pivot table allows you to change how data is aggregated, formatted, or calculated. Whether you need to switch from counting to summing, apply custom formulas, or fix display errors, understanding these controls gives you precise command over your reports.

What You'll Need

  • A spreadsheet application with pivot table functionality (e.g., Microsoft Excel, Google Sheets)
  • An existing dataset containing numerical or categorical data
  • A basic pivot table already created from that dataset

Step-by-Step

  1. Open Your Pivot Table: Click anywhere inside your existing pivot table to activate the pivot table tools. This ensures that all subsequent options are context-aware and specific to your current selection.
  2. Access Field Settings: Locate the "Values" field in your pivot table layout. In Excel, this is usually on the right side of the "PivotTable Fields" pane. In Google Sheets, it appears in the "Rows" or "Columns" section depending on orientation, but specifically under "Values" for the Y-axis data. Click the dropdown arrow next to the field name (e.g., "Sum of Sales").
  3. Select Value Field Settings: From the dropdown menu, choose "Value Field Settings" (Excel) or "Summarize by" / "Display as" (Google Sheets). This opens the configuration dialog where you control the aggregation method.
  4. Change Aggregation Method: If you want to change how numbers are calculated (e.g., from Sum to Average), select the appropriate option from the list. For example, choose "Average" if you want to see mean values instead of totals. Click OK to apply.
  5. Format the Y Axis Values: To change how numbers appear (e.g., adding currency symbols or decimal places), click the "Number Format" button within the Value Field Settings dialog. Choose your desired format (Currency, Number, Percentage) and adjust decimal places. Click OK twice to save changes.
  6. Apply Custom Calculations: For advanced edits, go back to Value Field Settings and select "Show Values As." Here, you can choose options like "% of Grand Total," "% of Row Total," or "Running Total In." These options transform the raw numbers into relative metrics without altering the source data.
  7. Sort the Y Axis: To reorder the Y-axis items, right-click any value in the Y-axis column of the pivot table. Select "Sort" and choose "Largest to Smallest" or "A to Z." This reorganizes the visual hierarchy based on magnitude or alphabetical order.
  8. Refresh Data Changes: If you edited the underlying source data, right-click the pivot table and select "Refresh" to ensure the Y-axis reflects the latest information.

Common Mistakes

One frequent error is confusing the Rows and Columns areas with the Values area. The Y-axis typically represents the Values field in a standard vertical pivot table. Placing text fields in the Values area often results in "Count" being applied automatically, which may not be what you intend. Another mistake is failing to refresh the pivot table after changing source data, leading to outdated Y-axis figures. Additionally, users sometimes try to edit individual cells directly, which is impossible because pivot table cells are dynamic calculations, not static entries.

Tips

Use "Show Values As" features to quickly create percentage breakdowns without writing complex formulas. When dealing with large datasets, avoid using "Distinct Count" unless necessary, as it can significantly slow down performance. Grouping dates or categories before placing them in the pivot table can simplify the Y-axis structure. Always check number formatting to ensure consistency, especially when mixing different units or currencies. Finally, use slicers to filter Y-axis data dynamically, making your report more interactive and easier to navigate.

Troubleshooting

If the Y-axis shows "#N/A" or blank cells, check if the source data contains missing values or non-numerical entries in numeric columns. Ensure that the pivot table cache is updated by refreshing the table. If sorting does not work, verify that the field is set to aggregate numbers rather than text. For formatting issues, confirm that the number format is applied at the field level, not just the cell level. If custom calculations do not update, check for circular references or invalid syntax in the formula field.

Frequently Asked Questions

Can I add multiple fields to the Y axis?
Yes, you can drag multiple fields into the Values area. They will stack vertically, allowing you to compare different metrics simultaneously.

Why is my Y axis showing "Count" instead of "Sum"?
This happens when the source data is formatted as text or contains mixed data types. Convert the source column to a number format, then refresh the pivot table.

How do I remove a field from the Y axis?
Drag the field out of the "Values" area in the pivot table fields pane, or uncheck the box next to the field name.

Can I sort the Y axis by color?
No, pivot tables do not support sorting by cell color. You must sort by value or manual drag-and-drop ordering.

What if my Y axis labels overlap?
Adjust the row height or font size in the pivot table settings. Alternatively, rotate the text using the format cells option.

Does editing the Y axis affect the source data?
No, all changes are confined to the pivot table view. The original dataset remains unchanged and intact.