Label Min and Max values ​​in a chart

Last updated on 15/03/2025
Reading time : 3 minutes

How to display Min and Max value labels in a chart? The solution lies in the format of the numbers in your data series ????

Case study: Visiting a restaurant

We will start from the monitoring of people who enter a cafeteria for breakfast.

Customer Tracking Chart

Step 1: Adding the Min and Max columns

As we have seen in this article, to display the minimum and maximum values ​​in a graph, you need to add a column to calculate the minimum and maximum

Adding minimum and maximum columns

For example to find the minimum, the formula is

=SI(MIN($B$2:$B$13)=B2;B2;0)

And for the maximum

=SI(MAX($B$2:$B$13)=B2;B2;0)

Step 2: Add the series to the graph

Two techniques are available to you for adding a series to a graph.

  • You can do this by adding the series from the menu Select data
Chart Menu Select Data

Step 3: Do not display the min and max curves

Here, we cannot keep the min and max curves so as not to distort the initial curve

Addition of the 2 min and max curves

For that, it suffices

  1. Double-click on one of the 2 curves
  2. In the settings pane, choose the option No trait
  3. Repeat the same manipulation for the other curve
No line option

Like this, the curves have disappeared but the labels are still there ????????

Step 4: Change the background color of the min and max labels

Here, simply choose a background color to make the numbers stand out

  1. Select the label series
  2. Then the format option
  3. Choose option Plain Fill
  4. And finally the color
Label background color option

But all labels are impacted, even those with a value of 0 ????????

All labels in the series are displayed

Step 5: Hide labels to 0

Last step, you must now "hide" all the labels which have a value of 0.

To do this, we will “play” with the formatting parameters. Personalizing the content of a cell is divided into 4 parameters

  1. Positive numbers
  2. Negative numbers
  3. Zero
  4. The text

So, we will create a number formatting rule to hide all labels as 0 by playing on the 3rd parameter.

In the section Name, we select the option customizable and we enter the code is the following

0;-0;""

Immediately all data equal to 0 are no longer visible ????????

Min and max label

Video

Find all the techniques explained in this video

Related Articles

Leave comments

Your email address will not be published. Required fields are marked with *

This site uses Akismet to reduce unwanted. Learn more about how your feedback data is processed.

Microsoft MVP 2024

Newsletter

Once a month:
Tips and quizzes

    We won't spam you. You can unsubscribe at any time.

    Label Min and Max values ​​in a chart

    Reading time: 3 minutes
    Last updated on 15/03/2025

    How to display Min and Max value labels in a chart? The solution lies in the format of the numbers in your data series ????

    Case study: Visiting a restaurant

    We will start from the monitoring of people who enter a cafeteria for breakfast.

    Customer Tracking Chart

    Step 1: Adding the Min and Max columns

    As we have seen in this article, to display the minimum and maximum values ​​in a graph, you need to add a column to calculate the minimum and maximum

    Adding minimum and maximum columns

    For example to find the minimum, the formula is

    =SI(MIN($B$2:$B$13)=B2;B2;0)

    And for the maximum

    =SI(MAX($B$2:$B$13)=B2;B2;0)

    Step 2: Add the series to the graph

    Two techniques are available to you for adding a series to a graph.

    • You can do this by adding the series from the menu Select data
    Chart Menu Select Data

    Step 3: Do not display the min and max curves

    Here, we cannot keep the min and max curves so as not to distort the initial curve

    Addition of the 2 min and max curves

    For that, it suffices

    1. Double-click on one of the 2 curves
    2. In the settings pane, choose the option No trait
    3. Repeat the same manipulation for the other curve
    No line option

    Like this, the curves have disappeared but the labels are still there ????????

    Step 4: Change the background color of the min and max labels

    Here, simply choose a background color to make the numbers stand out

    1. Select the label series
    2. Then the format option
    3. Choose option Plain Fill
    4. And finally the color
    Label background color option

    But all labels are impacted, even those with a value of 0 ????????

    All labels in the series are displayed

    Step 5: Hide labels to 0

    Last step, you must now "hide" all the labels which have a value of 0.

    To do this, we will “play” with the formatting parameters. Personalizing the content of a cell is divided into 4 parameters

    1. Positive numbers
    2. Negative numbers
    3. Zero
    4. The text

    So, we will create a number formatting rule to hide all labels as 0 by playing on the 3rd parameter.

    In the section Name, we select the option customizable and we enter the code is the following

    0;-0;""

    Immediately all data equal to 0 are no longer visible ????????

    Min and max label

    Video

    Find all the techniques explained in this video

    Related Articles

    Newsletter

    Once a month:
    Tips and quizzes

      We won't spam you. You can unsubscribe at any time.

      Leave comments

      Your email address will not be published. Required fields are marked with *

      This site uses Akismet to reduce unwanted. Learn more about how your feedback data is processed.