Chart & Visualization Issues

How to Hide Negative Excel Chart Labels and Show One Decimal Place

Ayan MasoodAyan Masood Oct 29, 2026 869 views

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.

How to Hide Negative Chart Labels and Show One Decimal Place in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Format Data Labels

Right-click on any data label within your Excel chart and select 'Format Data Labels' from the context menu to open the side pane.

2
Access Number Options

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.

3
Unlink from Source Data

Uncheck the box that says 'Linked to source' to ensure your new custom format overrides the default worksheet cell formatting.

4
Apply Custom Format Code

Change the 'Category' dropdown to 'Custom'. In the 'Format Code' input box, enter exactly '0.0;;' and click the 'Add' button.

Apply Custom Number Format to Chart Data Labels
Format Code Breakdown: The code '0.0;;' tells Excel to format positive numbers with one decimal place ('0.0'). The empty spaces after the semicolons instruct Excel to display absolutely nothing for negative numbers and zero values.

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. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your spreadsheet containing the chart you wish to modify.
  2. 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. 3. Navigate to Number Settings: Click on the 'Number' tab within the task pane and select 'Custom' from the Category dropdown list.
  4. 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.
Fully compatible with Microsoft Excel (.xlsx) files and advanced custom formatting codes.Intuitive side-panel for quick formatting of chart elements, axes, and data labels.Lightweight software with fast processing speeds for large and complex datasets.Free access to advanced charting tools and professional spreadsheet templates.
microsoft office alternative - wps office

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.