Excel & Data

The Right Way to Format Numbers in a Pivot Table (So It Doesn't Reset)

You've spent valuable time crafting an insightful pivot table, meticulously formatting your sales figures as Indian Rupees (INR) or percentages. Everything looks perfect, ready for your report. But then, you refresh your data or make a slight change to the pivot table layout, and suddenly, your carefully applied formatting vanishes, reverting to a generic number. If your pivot table number format keeps changing, leaving you frustrated and constantly re-applying styles, you're not alone. This is a common annoyance for many Excel users, but there's a permanent solution.

Excel Pivot Tables and Pivot Charts course thumbnail from Juno School
Recommended Course on JunoExcel Pivot Tables And Pivot Charts
View Course →

The Common Problem: Why Your Pivot Table Formatting Disappears

The core reason your number formatting seems to vanish is how Excel handles standard cell formatting versus pivot table field formatting. When you apply a format directly to cells using the Home tab, that formatting is tied to the specific cell address. A pivot table, by its dynamic nature, constantly rearranges and moves data around. When the layout of your report changes, or new data is added and refreshed, the figures move to different cells. The formatting, however, stays with the original cells. As one expert explains, "if layout of the report changes and figures move around... formatting doesn't travel with them actually so it stays with the cell so we have to avoid that part." This disconnect means your desired number format doesn't stick.

Understanding this distinction is key to preventing your reports from looking inconsistent. For example, if you're pulling data from a messy source, ensuring your initial data is clean can prevent many formatting headaches down the line. You can learn more about how to approach this by exploring strategies on how to clean messy Excel data in Power BI, which often starts with good Excel practices.

The 'Wrong Way': Formatting Cells Directly

Many users, instinctively, will select the column or range of numbers within their pivot table and apply a format (like Currency, Percentage, or Number with specific decimal places) directly from the 'Number' group on the Excel Home tab. While this appears to work immediately, it's a temporary fix. Because this kind of number formatting is assigned to the cell itself, rather than the data field, it will inevitably break. The moment you refresh the pivot table, add or remove fields, or change its layout, those numbers might shift to new cells, leaving the new cells unformatted and the old cells retaining a format that no longer applies to their content. This is precisely the scenario where your "pivot table formatting doesn't stick."

The 'Right Way': Using Value Field Settings

The permanent solution lies in applying the number format directly to the data field within the pivot table's settings. This ensures the formatting travels with the data, regardless of how the pivot table is rearranged. Here’s a step-by-step guide to correctly format numbers in your pivot table:

  1. Right-Click on a Number: Select any number within the value field you wish to format. For example, if you have 'Sum of Sales' as a value, right-click on any of the sales figures in that column.
  2. Access Value Field Settings: From the context menu that appears, choose "Value Field Settings...". As an expert advises, "to avoid that part what we are going to do is we are actually going to right click on the cell here... and I will have something called as value field setting."
  3. Click 'Number Format': In the 'Value Field Settings' dialog box, you'll see a button labeled "Number Format..." towards the bottom left. Click this button.
  4. Choose Your Desired Format: A standard 'Format Cells' dialog box will appear. Here, you can select the appropriate category for your numbers. For instance, if you want your sales figures to appear as currency, select "Currency," specify the number of decimal places, and choose "₹ English (India)" or your preferred currency symbol.
  5. Confirm Your Choices: Click "OK" on the 'Format Cells' dialog box, and then click "OK" again on the 'Value Field Settings' dialog box. You will immediately see the change applied across all relevant numbers in your pivot table. As the expert notes, "I will just say number this format as currency... and I click OK you will see each and every element of the pivot table actually gets changed."

Why This Method is Permanent

This method works because you're not just formatting cells; you're applying the number format to the underlying data field itself within the pivot table's definition. This means that the formatting becomes an intrinsic property of that specific value field (e.g., 'Sum of Sales'). No matter how you slice, dice, filter, refresh, or rearrange your pivot table, the formatting will consistently apply to that field. This is the "correct way to format numbers in pivot table" and ensures your "excel pivot table format currency" or any other numerical style remains exactly as you intended, providing consistent and professional-looking reports.

For more advanced data analysis and reporting, understanding the nuances between different tools can be beneficial. For instance, knowing Excel vs. Power BI dashboards can help you decide which platform is best for your reporting needs, especially when interactivity is a key requirement.

Pro-Tip: Applying to Multiple Fields

It's important to remember that the "value field settings number format" applies to one value field at a time. If your pivot table includes multiple value fields (for example, 'Sum of Sales', 'Average of Profit', and 'Count of Orders'), you will need to repeat this process for each individual value field you wish to format. Each field maintains its own formatting settings, giving you granular control over how every numerical element in your pivot table is presented.

Mastering these details can significantly enhance your efficiency and the quality of your reports. Just as knowing the right Excel function for the job, like understanding the differences between VLOOKUP vs HLOOKUP vs XLOOKUP in Excel, saves time, applying number formats correctly in pivot tables ensures your data is always presented professionally.

Ready to level up your career?

Join 5 lakh+ learners on the Juno app. Certificate courses in Hindi and English.

Get it onGoogle Play
Download on theApp Store