Fill an area between two lines in a chart in Excel

Posted on 2014-07-11
Last Modified: 2014-07-26
Hi Experts,

On the website below, it shows how to fill an area between two lines in a chart in Excel.
http: //

I'm trying to use the above example to plot a graph of Revenue vs. Expenses on a monthly basis, and I'd like to colour the area between the lines to show the gap.  

Is it possible to have two different colours for the areas between the lines though?  

If Revenue line is greater than Expense line, I'd like to have the area coloured green.  If Revenue line is less than the Expense line, I'd like to have the area coloured red.

Question by:rav_rav
    LVL 50

    Expert Comment


    Jon Peltier has two articles that might be helpful to find your optimal approach:

    Fill under or between series in an XY chart


    Area Chart – Invert if Negative

    For your scenario, the second option might be a better fit.  

    The articles are a bit too long to quote here. Suffice it to say that in both approaches a stacked area chart is used to create the illusion of a fill color between two lines.

    Let me know how you get on and if you need more help with the approach.

    cheers, teylyn

    Accepted Solution

    Thanks Teyln.  The first article is similar to the website I referenced on superuser.  The second article uses an approximation technique which I'm not sure would give me the accuracy I want.  

    By chance, do you have a sample Excel file already with the inverted graph?  I'd like to see how well it mirrors my existing data points?


    Author Closing Comment

    No answer posted

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Sometimes we don't want to show zeros in our Excel spreadsheets. This is sometimes most evident in our charts. Look at the chart below, all the zero values are visible. I think that all will agree with the fact that zero values are not looking nice …
    What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
    This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
    This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now