# Fill an area between two lines in a chart in Excel

Hi Experts,

On the website below, it shows how to fill an area between two lines in a chart in Excel.
http: //superuser.com/questions/233027/fill-an-area-between-two-lines-in-a-chart-in-excel

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.

Thanks
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Microsoft MVP ExcelCommented:
Hello,

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

Fill under or between series in an XY chart
http://peltiertech.com/WordPress/fill-under-between-series-in-excel-chart/

and

Area Chart – Invert if Negative
http://peltiertech.com/WordPress/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
0
Author Commented:
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?

Thanks
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented: