stacked charts with positive and negative data

lalbatros

Well-known Member
Joined
Sep 5, 2007
Messages
659
Context

I often had to present stacked area or stacked columns charts
based on data containing positive as well as negative contributions.

Such graphics are of course a difficulty and Excel offers no standard solution to chart such kind of data.

One example of such data is monthly stock variations:

- you can have several stock inputs
- you have several stock outputs
- and you have an initial stock each month

It is easy to chart the stacked input data or the stacked output data.
However, the most interresting thing to present is the stock evolution together with its positive and negative contributions.

Another example is monthly cash-flows with incomes and spendings.

In the past I have imagined different ways to chart such data.
However, it had always been specific solutions.
The charted data had to be prepared and tranformed to allow a final display showing the + and - contributions and their total.
Typically I calculated series that stacked separately the + and - terms, as well as the total.
Then I managed to chart side-by-side columns of these stacked + and - data and the total.
For one month, this was feasible, but I even don't see how to do that for several months.

This is not an easily re-usable solution.

My question

Do you know of different ways to chart stacked data containing both positive and negative items?
Eventually, is there a way to do that simply in Excel?
Or would there be some tool for that?
Or do you know some wonderful macro?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
It would be of great help if you give few rows of your data and explain on real numbers how do you like your chart to be!
 
Upvote 0
Waterfall chart
http://www.tushar-mehta.com/excel/charts/waterfall/index.htm

Also, check Jon Peltier's http://peltiertech.com/Excel/Charts/Waterfall.html

Context

I often had to present stacked area or stacked columns charts
based on data containing positive as well as negative contributions.

Such graphics are of course a difficulty and Excel offers no standard solution to chart such kind of data.

One example of such data is monthly stock variations:

- you can have several stock inputs
- you have several stock outputs
- and you have an initial stock each month

It is easy to chart the stacked input data or the stacked output data.
However, the most interresting thing to present is the stock evolution together with its positive and negative contributions.

Another example is monthly cash-flows with incomes and spendings.

In the past I have imagined different ways to chart such data.
However, it had always been specific solutions.
The charted data had to be prepared and tranformed to allow a final display showing the + and - contributions and their total.
Typically I calculated series that stacked separately the + and - terms, as well as the total.
Then I managed to chart side-by-side columns of these stacked + and - data and the total.
For one month, this was feasible, but I even don't see how to do that for several months.

This is not an easily re-usable solution.

My question

Do you know of different ways to chart stacked data containing both positive and negative items?
Eventually, is there a way to do that simply in Excel?
Or would there be some tool for that?
Or do you know some wonderful macro?
 
Upvote 0
eliW,

Here is an example based on one set of data (total for a project):

waterFall.png


Indeed it looks like the "waterfall" chart.
My problem is that:

1) I may have such data for each month over a long period
2) making this graphic is not so straighforward (I split positive and negative data in two columns ...)

My question is about the possibilities to create such graphics routinely in a more easy way and for time-dependent data eventually.

Thanks for your suggestions.
 
Upvote 0
Hi
I made this with background and fill technique described by Peltier in his site :

stackedtotal.JPG
 
Upvote 0
Interresting, Eli.
I guess you can do that without splitting the data in different columns.
Therefore, it may work for time-dependent data.
In addition, you don't need to prepare any formulas on the datasheet.
 
Upvote 0
That's right.

Once you made it you can change numbers and get the result instantly.

I didn't try it for more than one point (time) -this may be more complicated. Consalt the 2 guru's of charts: TusharM and Peltier. Also maybe you can adopt other solutions though it may cost some efforts.

Tell me if you managed with the background fill one

---Yes now I realize that this can be done for more than 1 point: ...downloading... be patient!

sample3.JPG
 
Upvote 0

Forum statistics

Threads
1,225,321
Messages
6,184,267
Members
453,224
Latest member
Prasanna arachchi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top