How to Create Stacked Area Chart with Negative Values in Excel

In this article, we will demonstrate how to create a stacked area chart with negative values in Excel for 3 different cases.


Example 1 – Creating a Stacked Area Chart for a Single Column Containing Positive and Negative Values

In the dataset below, we have positive and negative profit values (the values in red) mixed together in the Apple column. Using this dataset we’ll plot a stacked area chart showing the negative values.

excel stacked area chart negative values


Step 1 – Inserting a Stacked Area Chart

  • Select the Apple column, then go to the Insert tab >> Charts group >> Insert Line or Area Chart group >> 2-D Stacked Area.

single column

The following chart is drawn, where the negative values are clearly visible in the chart, but on the horizontal axis we have to insert the years.

single column

  • Right-click on the chart area and select the option Select Data.

single column

The Select Data Source wizard will open.

  • Click on the Edit option under the Horizontal (Category) Axis Labels.

excel stacked area chart negative values

The Axis Labels wizard will open.

  • Select the Year column as the Axis label range and click OK.

single column

The Select Data Source dialog box opens again.

  • Click OK.

single column

The years are added to the chart.

excel stacked area chart negative values


Step 2 – Formatting the Chart

Now, we will change the color of the positive areas into green and the negative areas into red to identify the differences in their values.

  • Right-click on the series and select the Format Data Series.

excel stacked area chart negative values

The Format Data Series wizard will pop up on the right side of your worksheet.

  • Select the Gradient fill option under Fill.

single column

Go down to the Gradient stops option, where you can control the color of your chart.

single column

  • Select the first stop on the left side and choose green as the fill color (assuming you want green for the positive areas).

excel stacked area chart negative values

  • Then choose red as the fill color for the last three stop points for the negative areas.

single column

After applying the colors, the following changes will be visible in your chart.

excel stacked area chart negative values

  • Move the green point from left to right and the red point from right to left and balance the points accordingly to bring the following colors to your chart.

excel stacked area chart negative values

Finally, we have the following chart representing the positive and negative profits of apples for different years.

single column

Read More: How to Create an Area Chart in Excel


Example 2 – Creating a Stacked Area Chart for Two Columns Containing Positive and Negative Values in Excel

Here, we have negative profit values for Kiwi and positive profits for Apple for different years. To apply this example the negative series should be in the first place, which is why the Kiwi column is placed before the Apple column.

excel stacked area chart negative values

Steps:

  • Select the Kiwi and Apple columns, then go to the Insert tab >> Charts group >> Insert Line or Area Chart group >> 2-D Stacked Area.

two columns

The following chart will appear, where we will input the year values on the horizontal axis.

two columns

  • Right-Click on the chart area and select the option Select Data.

excel stacked area chart negative values

The Select Data Source wizard will open.

  • Click on the Edit option under the Horizontal (Category) Axis Labels.

two columns

The Axis Labels wizard will open up.

  • Select the Year column as the Axis label range then click OK.

two columns

The Select Data Source dialog box will open again.

  • Click OK.

excel stacked area chart negative values

In this way, the years will appear in the chart.

two columns

To modify the chart, right-click on the Y-axis.

two columns

  • Select Format Axis.

excel stacked area chart negative values

The Format Axis dialog box will open on the right side of your worksheet.

two columns

  • Go to the Axis Options tab and enter -300.0 (the minimum limit for negative profits of the Kiwi column) as the Minimum Bounds value and Axis value where the Horizontal axis crosses.

two columns

We have the final result of the area chart where the negative values of the Kiwi column are shown on the negative Y-axis and the positive values of the Apple column are shown also with respect to this negative axis, as the baseline has been shifted to -300.

excel stacked area chart negative values

Read More: Excel Area Chart Data Label Position


Example 3 – Creating a Stacked Area Chart for Three Columns Containing Positive and Negative Values

In this example, we will deal with two columns with positive profits and one column with negative profits, and plot the values in a stacked chart showing the negative values. For this purpose, we need two extra columns, Total and Apple+Kiwi.

excel stacked area chart negative values


Step 1 – Using Formulas to Calculate Values

  • In cell F4 of the Total column, enter the following formula:
=SUM(C4:E4)

Here, the SUM function will add up the profit values of Apple, Orange and Kiwi.

  • Drag down the Fill Handle tool to copy this formula to the rest of the cells.

three columns

We have the total profits of all the three products in the Total column.

three columns

  • Enter the following simple formula in cell G4:
=C4+E4

Here, the profits of the Apple and Kiwi columns will be added.

  • Drag down the Fill Handle tool to copy this formula to the rest of the cells.

excel stacked area chart negative values


Step 2 – Inserting a Stacked Area Chart

After calculating all of the values, we will use the 3 columns indicated below to plot our stacked area chart.

three columns

  • Select the Kiwi, Total and Apple+Kiwi columns, then go to the Insert tab >> Charts group >> Insert Line or Area Chart group >> 2-D Stacked Area.

excel stacked area chart negative values

The following chart will appear, where we will input the year values on the horizontal axis.

three columns

  • Right-click on the chart area and select the option Select Data.

three columns

The Select Data Source wizard will open.

  • Click on the Edit option under Horizontal (Category) Axis Labels.

three columns

The Axis Labels wizard will open up.

  • Select the Year column as the Axis label range and click OK.

excel stacked area chart negative values

The Select Data Source dialog box will open again.

  • Click OK.

three columns

In this way, the years will appear in the chart.

excel stacked area chart negative values

Read More: How to Shade an Area of a Graph in Excel


Download Practice Workbook


Related Article


<< Go Back To Excel Area ChartExcel ChartsLearn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjima Hossain
Tanjima Hossain

TANJIMA HOSSAIN is a marine engineer who enjoys working with Excel and VBA programming. For her, programming is a handy, time-saving tool for managing data, files, and online tasks. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. She holds a B.Sc. in Naval Architecture & Marine Engineering from BUET and is now a content developer. In this role, she creates tech-focused content centred around Excel and VBA. Apart from... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo