How to Hide Negative Excel Chart Labels and Show One Decimal Place
Question details
The user wants to format Excel chart data labels to display positive numbers with exactly one decimal place while completely hiding any labels for negative values.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Customizing chart data labels for better visualization and cleaner presentation when charting datasets that contain mixed positive and negative numbers.
- Observed behavior
- Currently, negative values are displayed on the chart, which clutters the visualization when the user only wants to highlight the positive data points.
Ensure your chart is already populated with data labels. If not, select your chart, click the Chart Elements (+) icon, and check the 'Data Labels' option before proceeding.
Apply Custom Number Format to Chart Data Labels
Use Excel's custom number formatting code to specifically target and hide negative values while applying a one-decimal-place format to positive ones.
Excel uses a four-section format code system structured as: Positive format; Negative format; Zero format; Text format. By leaving the negative section blank, Excel will automatically hide negative numbers.
Right-click on any data label within your Excel chart and select 'Format Data Labels' from the context menu to open the side pane.
In the Format Data Labels pane on the right side of your screen, scroll down to the bottom and click to expand the 'Number' section.
Uncheck the box that says 'Linked to source' to ensure your new custom format overrides the default worksheet cell formatting.
Change the 'Category' dropdown to 'Custom'. In the 'Format Code' input box, enter exactly '0.0;;' and click the 'Add' button.

Format the Source Data Directly
If formatting the chart labels directly does not work or is ignored, apply the custom format directly to the source data cells.
Easily Customize Chart Labels with WPS Spreadsheet
WPS Spreadsheet provides a seamless and intuitive interface to customize charts, format data labels, and manage complex visualizations. It is highly compatible with Microsoft Excel formats and offers a lightweight alternative for your daily office tasks.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your spreadsheet containing the chart you wish to modify.
- 2. Access Data Label Properties: Double-click on the chart's data labels to instantly open the Format Data Labels task pane on the right.
- 3. Navigate to Number Settings: Click on the 'Number' tab within the task pane and select 'Custom' from the Category dropdown list.
- 4. Apply the Format Code: Input '0.0;;' in the format code box and apply it. Your negative labels will instantly disappear while positives show one decimal place.

Frequently Asked Questions
Why are my negative labels still showing after applying the custom format?
This usually happens if the 'Linked to source' option is checked in the Format Data Labels pane, and your source data lacks the custom formatting. You must either uncheck 'Linked to source' in the chart properties or apply the '0.0;;' format code directly to your source data cells.
How do I hide negative labels but still show zero values on my chart?
To show positive values with one decimal place, hide negative values, and display zeros as '0', you need to modify your custom format code to '0.0;;0'. In Excel custom formatting, the first section dictates positive numbers, the second is for negative numbers, and the third is for zeros.
Can I use VBA to automatically delete negative data labels instead of hiding them?
Yes, you can write a VBA macro that loops through each point in a chart's SeriesCollection. If a point's value is less than zero, the macro can set the DataLabel.Text property to an empty string or delete the label entirely. However, using custom number formatting ('0.0;;') is generally much safer, completely dynamic, and doesn't require saving your workbook as a macro-enabled file.




