To shade the area between two lines in an Excel graph, you must convert the space between your data series into a separate data series and plot it as a Stacked Area Chart. Because Excel does not have a native "fill between lines" button, the most reliable method is to calculate the difference between your upper and lower boundaries and layer that difference on top of the lower line using a combination chart. This achieves a professional look often used for confidence intervals, tolerance bands, or variance tracking.

What You'll Need

  • Microsoft Excel (Desktop version recommended for full formatting options).
  • A dataset containing at least two columns of numeric values (the Upper Bound and Lower Bound) and one column for the X-axis (Dates or Categories).
  • A basic understanding of how to create a standard Line Chart.

Step-by-Step

  1. Prepare Your Data Table: You cannot shade between lines using only the raw upper and lower values. You need a third column that represents the "gap" or the difference. Create a table with three columns: "Lower Bound," "Difference," and "X-Axis." In the "Difference" column, enter a formula that subtracts the Lower Bound value from the Upper Bound value (e.g., =B2-A2). Drag this formula down for all rows. This "Difference" value is what Excel will actually shade.
  2. Insert a Stacked Area Chart: Select your X-Axis data, the Lower Bound data, and the Difference data. Go to the Insert tab on the ribbon. In the Charts group, click the Insert Column or Area Chart icon and select Stacked Area. This will create a chart where the Lower Bound is the base layer and the Difference is stacked on top of it.
  3. Convert the Base Layer to Invisible: Since you only want to see the shading between the lines, you must hide the bottom area. Right-click on the bottom area (the Lower Bound series) and select Format Data Series. In the Format pane, go to the Fill & Line (paint bucket) icon. Select No fill and No line. The bottom section disappears, leaving the "Difference" area floating in the air between the zero axis and the upper boundary.
  4. Add the Boundary Lines Back: The current chart only shows a shaded block. To make it look like a shaded area between two lines, you need to add the actual lines back. Right-click anywhere on the chart and choose Select Data. Click Add under Legend Entries (Series). For the Series Name, select your "Lower Bound" header; for the Series Values, select the Lower Bound data range. Repeat this process to add the "Upper Bound" data as a second series.
  5. Change Series Chart Types: Now your chart has three series: the invisible base, the shaded difference, and two new data series. Right-click any series on the chart and select Change Series Chart Type. In the dialog box, ensure you are on the Combo tab. Set the "Lower Bound" and "Upper Bound" series to Line. Keep the "Difference" series as Stacked Area. Keep the "Lower Bound" (the original base layer) as Stacked Area (even though it is invisible).
  6. Format the Shading: To make the area look like a subtle highlight rather than a solid block, right-click the shaded area and select Format Data Series. Under Fill, choose a light color (like light grey or light blue). To make it professional, increase the Transparency slider to 50% or 70%. This allows the gridlines to show through the shading.
  7. Clean Up the Legend: Your legend now likely contains entries for "Lower Bound" (twice), "Upper Bound," and "Difference." Click once on the legend to select it, then click specifically on the labels you don't want (like "Difference" or the duplicate "Lower Bound") and press the Delete key. This leaves only the clean labels for your two main lines.

Common Mistakes

One of the most frequent errors is attempting to use a standard Area Chart instead of a Stacked Area Chart. In a standard Area Chart, both series are plotted from the zero baseline, meaning the larger value simply covers the smaller value. This results in a solid block from zero to the top line, rather than a band between the two lines. Always ensure the "Stacked" option is selected.

Another common mistake is forgetting to calculate the difference column. Many users try to simply select the two lines and find a "fill" option. Because Excel treats each series as an independent entity starting from the X-axis, there is no way to tell Excel to "fill the gap" without providing the mathematical value of that gap as its own data series.

Users also frequently forget to set the base layer to "No Fill." If you leave the base layer filled, you will have a solid block of color from the bottom of the graph up to your upper line, which obscures the X-axis and makes the data difficult to read.

Tips

For a more modern aesthetic, remove the outline of the shaded area. In the Format Data Series menu, under Border, select No line. This prevents a harsh edge from appearing around the shaded band, making the transition between the lines and the fill look seamless.

If you are using this for a "Target Range" or "Tolerance Band," consider using a very light yellow or light green fill. If the shading represents a "Danger Zone," a light red with high transparency is the industry standard. High transparency is key; if the fill is too opaque, it can distract the viewer from the actual data points on the lines.

To make the lines stand out more against the shading, increase the Width of the boundary lines in the Format pane. A line width of 2.25pt or 3pt often provides a better contrast against a shaded background than the default 1.5pt line.

Troubleshooting

The shading is not aligned with the lines: This usually happens if the X-axis is not treated as a "Date axis" or "Text axis" consistently across all series. Right-click the X-axis, select Format Axis, and under Axis Options, check the Axis Type. Ensure it is set to "Automatically select based on data" or specifically "Date axis" if you are using dates. If one series is treated as a category and another as a value, the shading will shift horizontally.

The shaded area is missing entirely: Check your "Difference" column. If the formula was =Lower-Upper instead of =Upper-Lower, you will have negative values. Stacked Area charts do not render negative values in the same way as positive ones; they will plot them below the X-axis. Ensure your difference values are positive numbers.

The chart looks cluttered with too many lines: If you have added the boundary lines back as separate series, you might see three or four lines. Check the Select Data window and remove any redundant series. Ensure you only have one "Lower Bound" line, one "Upper Bound" line, and the invisible stacked area base.

The "Combo" chart option is missing: The Combo chart feature is available in Excel 2013 and newer. If you are using a very old version of Excel, you will have to manually change the chart type for each individual series by right-clicking the series and selecting Change Series Chart Type from the context menu, rather than using the centralized Combo menu.

Frequently Asked Questions

Can I do this with a Scatter Plot?

No, the Stacked Area method only works with Line and Area charts. For Scatter Plots, you would need to use an "Error Bar" workaround or a third-party add-in, as Scatter Plots do not support stacked areas.

Will the shading update automatically if I change the data?

Yes, as long as your "Difference" column uses a formula (e.g., =B2-A2), any change to the original boundary values will automatically update the calculation and the shaded area in the graph.

How do I make the shading a gradient?

In the Format Data Series pane, under Fill, select Gradient fill. You can then choose a preset or create your own gradient. This is particularly useful for showing a "fade out" effect toward the edges of a confidence interval.

Can I shade between more than two lines?

Yes. You can create multiple "Difference" columns. For example, if you have a Low, Medium, and High line, you can create a difference between Low and Medium, and another between Medium and High. Plotting these as stacked areas will create multi-colored bands.

Does this work on Excel for Web?

Most of these steps work on the web version, but the Combo Chart and Transparency settings are more limited. For full control over transparency and complex layering, the desktop application is required.