
Originally Posted by
MrShorty
How much of Peltier's tutorial did you understand? Were there parts that you did not understand? When you tried it, what worked and what did not work?
Going with a stacked column chart approach, I:
Knowing that most of the work is in the spreadsheet, I started with the spreadsheet.
1) Enter my horizontal axis labels (2019E, DJ, less AG, 2019EPF) in A2:A5.
2) Enter my column labels (FT, AG, DJ) in B1:D1.
3) Enter values in B2:D5. Up to here, this looks like the top table in your picture.
Now I need to add the calculations for the stacked column chart
4) Enter data series names (base, FT, AG, DJ) in F1:I1.
5) Enter 0 in F2, Enter =ABS(B2) into G2 (the ABS() function will allow the column chart to handle both positive and negative entries like C4). Copy across into H2:I2.
6) In F3, I used the formula =SUM(G2:I2)+SUM(B3:C3). I copied G2:I2 and pasted into G3:I3.
7) Copy F3:I3 and paste into F4:F5. Enter 0 in F5.
That should be the table my stacked column chart will use.
8)Select A1:A5 ctrl then select F1:I5 -> Insert -> Stacked column chart
8a) My copy of Excel guessed (incorrectly) that I wanted series in rows, so I clicked on "switch row/column". If Excel really messes up your series definitions, fix them in the Select Data dialog.
9) Select the "base" data series and format it to be invisible.
Your chart should look a lot like the one in your picture. To get the data labels, compute the percentages in the spreadsheet, then add data labels to the chart using those values:
10) In K2, I entered =B2/SUM($B2:$D2) [note the mix of relative and absolute references]. Copy into L2:M2 and K5:M5.
11) Select the chart and add the data labels. Format the data labels to use values in cells and select the appropriate column for each data series. If there are unwanted 0% labels, clear those cells in the spreadsheet.
Peltier explains how this all works in his tutorial. Following these steps, you should be very close to the chart you show in your picture.
Bookmarks