Data labels for stack column chart

thomas819

New Member
Joined
Nov 23, 2020
Messages
36
Office Version
  1. 2019
Platform
  1. Windows
Hello all,
I have run into my limit with VBA.

I am trying to set data labels using VBA in maner which you can see in attachement. Input data are changing every day, therefore I am looking for VBA solution.

Data labels (label1 - label8) displayed as numbers have to be allighed to TOP RIGHT corner and right side of it corrensponding data frame. In case is value is lowe then 3, I would to display this value outside of stack column chart.

Same logic should be apply to data labels (process1 - process8) displayed as text. It should be allighed with TOP LEFT corner and left side of it corrensponding data frame.

If you are willing share your expertise with me, I will be very gratefull.

Input data as you can see it inside the chart are bellow:
seriesstage 1stage 2stage 3stage 4stage 5
Process1
63​
19​
10​
26​
37​
Process2
27​
29​
11​
24​
64​
Process3
13​
40​
39​
12​
10​
Process4
1​
24​
11​
29​
1​
Process5
5​
1​
9​
23​
5​
Process6
1​
#######​
34​
2​
1​
Process7
#########​
#######​
#######​
1​
#######​
Process8
#########​
#######​
#######​
#######​
#######​
OFF
8​
4​
3​
#######​
1​


Process1Part1Part1Part1Part1Part1
Process2Part2Part2Part2Part2Part2
Process3Part3Part3Part3Part3Part3
Process4Part4Part4Part4Part4Part4
Process5Part5Part5Part5Part5Part5
Process6Part6
0​
Part6Part6Part6
Process7Part7
0​
0​
Part7
0​
Process8
0​
0​
0​
0​
0​
OFFlabelOFFOFFOFF
0​
OFF

Legend:
######### = na()
 

Attachments

  • chart.jpg
    chart.jpg
    112.3 KB · Views: 21

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Thank you all for forcing me to reInvent my old approach.

I did it.

Trick was not to in determinate top left edge of each data sector inside stack column, but to create scatter plot.

Solution is working as it should :)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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