Waterfall Chart with two data labels.

mclark1998

New Member
Joined
Jan 29, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am trying to put 2 data labels above waterfall bars. I attached an example - the chart already has the unit change, but I want to add the % change calculated in column D also. Any suggestions?

Waterfall Example.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1Waterfalls
2Label Units % Change
3Budget1,000
4Increase5579%
5Decrease(75)-107%
6Decrease(30)-43%Current Actuals Change
7Decrease(20)-29%-5%(50) -0,050 (-5%)
8Jan Forecast950
9400-100%
10150-38%
11(125)31%Current Forecast Change
12(25)6%42%400 0,400 (42.1%)
13Feb Forecast1,350
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Comparison 1 - 2 yr
Cell Formulas
RangeFormula
D4:D7D4=-B4/SUM($B$4:$B$7)
E7,E12E7=(B8-B3)/B3
G7,G12G7=B8-B3
H7H7=CONCATENATE(TEXT($G$7,"0,000")," (",ROUND($E$7,3)*100,"%)")
D9:D12D9=-B9/SUM($B$9:$B$12)
H12H12=CONCATENATE(TEXT($G$12,"0,000")," (",ROUND($E$12,3)*100,"%)")
 

Attachments

  • Capture.JPG
    Capture.JPG
    40.4 KB · Views: 57

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hello mclark1998. Welcome to the forum. I know for any chart data label you can double click on the data label and add or subtract whatever you want, hitting return between the values to create another line. In the example below I did that by typing 500 and then return 100%, etc. Hope this helps you get started.

1708190587779.png
 
Upvote 0
Hello again mclark1998. I did some playing with VBA and you can modify chart labels using VBA. See the code below where I used the text in E1 (Test Line) to add to the Chart Label. Hope this helps.

1708193754761.png



VBA Code:
Sub ModifyDataLabel2()
'
' ModifyDataLabel Macro2
'

'
Dim AddText As String
AddText = "New Line"
AddText = Cells(1, 5).Value

    ActiveSheet.ChartObjects("Chart 1").Activate
    ActiveChart.FullSeriesCollection(1).DataLabels.Select
    ActiveChart.FullSeriesCollection(1).Points(4).DataLabel.Select
    ActiveChart.SeriesCollection(1).DataLabels(4).Format.TextFrame2.TextRange. _
        Characters.Text = ""
    
    ActiveChart.SeriesCollection(1).DataLabels(4).Format.TextFrame2.TextRange. _
        InsertAfter "255" & Chr(13) & ""
        

    ActiveChart.SeriesCollection(1).DataLabels(4).Format.TextFrame2.TextRange. _
        InsertAfter "55%" & Chr(13) & ""


    ActiveChart.SeriesCollection(1).DataLabels(4).Format.TextFrame2.TextRange. _
        InsertAfter AddText & Chr(13) & ""


End Sub
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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