How to create step chart in Excel

Excel 2016
Excel offers many different charts, but for some data, pre-defined charts such as area or line charts seem fine but are inaccurate by definition. For example, changes in prices, invested amounts, or any discrete data happen at some regular or irregular points, but the value remains constant between the points:
An example of step line chart in Excel 365
An example of step area chart in Excel 365
  • A column or bar chart gives a correct representation,
  • An area chart or any kind of line or scatter chart looks strange:
An example of line chart in Excel 365
An example of area chart in Excel 365

Why is this strange? It looks like the data changes every day (month, year). For this example, you seem to deposit or withdraw some amount daily.

To display discrete data, you can create a step chart (also known as a stepped line chart) where values change discretely at specific points. In other words, a step chart is a specialized line chart that uses only vertical and horizontal lines to connect the data points.

   1.   Create additional data

To create a correct step chart in Excel, you need to make one simple additional step - add the intermediate data. There are three ways how to add this data:

For example, if the data for the chart looks like this:

The data for the chart in Excel 365

For a step chart, you will need two values for the same date (for example, the January 4th):

  • The initial value should equal to the preceding date value - the value before the change.

    For this example, = $20,000.17 is the value on January 1st.

  • The end value should be equal to the current value - the value after the change.

    For this example, = $20,015.17.


   I.   Manually add an initial point for each date

Copy each date for which you want to add a vertical line. For each date, copy the previous value.

For this example:

The intermediate data for the chart in Excel 365

   II.   Copy and slide date range

   II.1.   Select and copy the data range somewhere.

In this example, to the cell G2:H9:

Copied data for the chart in Excel 365

   II.2.   Delete the first date in the copied data range:

   II.2.1.   Select the cell with the first date.

   II.2.2.   Right-click on the selection and choose Delete in the popup menu:

Delete in the popup menu Excel 365

   II.2.3.   In the Delete dialog box, select the Shift cells up option:

Delete with Shift cells up in Excel 365

   II.2.4.   Delete the last cell without a date:

Deleted values in Excel 365

   II.2.5.   Copy the original data range without headings and paste it below the copied data range:

Values for the chart in Excel 365

   III.   Define names

   III.1.   On the Formulas tab, in the Defined Names group, click Define Name (see how to create and use named ranges for more details):

Define Name in Excel 365

   III.2.   In the New Name dialog box, define:

   1)   The first range of dates:

  • In the Name field, enter the name of this new range, for example, Dates1,
  • In the Refers to field, select the dates from the second to the last:

    In this example, B4:B9:

    Define first range of dates in Excel 365

   2)   The second range of dates:

  • In the Name field, enter the name of this new range, for example, Dates2,
  • In the Refers to field, select the dates from the first to the last:

    In this example, B3:B9.

   3)   The first range of values:

  • In the Name field, enter the name of this new range, for example, Values1,
  • In the Refers to field, select the values from the first to the second last, without the last value:

    In this example, E3:E8:

    Define first range of values in Excel 365

   4)   The second range of values:

  • In the Name field, enter the name of this new range, for example, Values2,
  • In the Refers to field, select the values from the first to the last:

    In this example, E3:E9.

Notes:

  • The dates in the source data range must be sorted in ascending order. Otherwise, the step chart may not be created correctly.
  • Excel creates step charts only for line and area charts and data ranges with dates on the horizontal (category) axis.

   2.   Create a chart in Excel

To create a step chart, do the following:

   2.1.   Select the data range.

   2.2.   On the Insert tab, in the Charts group, click the Insert Line or Area Chart button:

Insert Line or Area chart in Excel 365

From the Insert Column or Bar Chart dropdown list, select any type of chart you need:

Insert Line chart or Area chart in Excel 365

Excel creates a simple line or area chart:

  • For the manually added or copy-pasted ranges:
    Stepped charts in Excel 365
  • For the defined names:
    Non-stepped charts in Excel 365

   3.   Create a stepped chart with the defined names

   3.1.   Do one of the following:

  • On the Chart Design tab, in the Data group, choose Select Data:
    Select Data in Excel 365
  • Right-click on the chart data series and choose Select Data... in the popup menu:
    Select Data in popup menu Excel 365

   3.2.   In the Select Data Source dialog box, under Legend Entries (Series), click the Edit button:

Select Data Source in Excel 365

   3.3.   In the Edit Series dialog box, in the Series values field, type the defined names created for values (in this example, Values1, Values2), then click OK:

Edit Series in Excel 365

   3.4.   In the Select Data Source dialog box, under Horizontal (Category) Axis Labels, click the Edit button.

   3.5.   In the Axis Labels dialog box, type defined names created for dates (in this example, Dates1, Dates2), then click OK twice:

Axis Labels in Excel 365

Excel rebuilds the chart to stepped one.

See also this tip in French: Comment créer un graphique en étapes dans Excel.

Please, disable AdBlock and reload the page to continue

Today, 30% of our visitors use Ad-Block to block ads.We understand your pain with ads, but without ads, we won't be able to provide you with free content soon. If you need our content for work or study, please support our efforts and disable AdBlock for our site. As you will see, we have a lot of helpful information to share.