Help create a Shale chart

Nitya0808

New Member
Joined
Jul 1, 2016
Messages
42
Hi,

I have (410 line) data like the sample attached below. Need VBA code to create a shale chart. With Unit being the various areas and End by being the X-axis.

Logic: All units put together totally there are 410 people. With 17 people having end by P1, 410 will get reduced by 17 in P02.

this logic has to be applied per unit and plotted in shale.

Excel 2013/2016
ABC
1NameUnitEnd by
2First Name 1Central TeamP01
3First Name 2Central TeamP02
4First Name 3Customer P03
5First Name 4Customer P04
6First Name 5Customer P05
7First Name 6Customer P07
8First Name 7Customer P08
9First Name 8Customer P12
10First Name 9Customer P10
11First Name 10Customer P12
12First Name 11Customer P12
13First Name 12Customer P12
14First Name 13Customer P02
15First Name 14Customer P06
16First Name 15Customer P04
17First Name 16Customer P12
18First Name 17Customer P12
19First Name 18Customer P08
20First Name 19Customer P12
21First Name 20Customer P10
22First Name 21Customer P12
23First Name 22Customer P12
24First Name 23Customer P12
25First Name 24Customer P02
26First Name 25Customer P08
27First Name 26Customer P04
28First Name 27Customer P12
29First Name 28Customer P12
30First Name 29Customer P08
31First Name 30Customer P12
32First Name 31Customer P10
33First Name 32Customer P12
34First Name 33Customer P12
35First Name 34Customer P12
36First Name 35Customer P02
37First Name 36Customer P12
38First Name 37Customer P04
39First Name 38Customer P12
40First Name 39Customer P12
41First Name 40Customer P08
42First Name 41Customer P12
43First Name 42Customer P10
44First Name 43Customer P12
45First Name 44Customer P08
46First Name 45Customer P12
47First Name 46Customer P02
48First Name 47Customer P12
49First Name 48Customer P04
50First Name 49Customer P12
51First Name 50Customer P12
52First Name 51Customer P08
53First Name 52Customer P12
54First Name 53Customer P10
55First Name 54Customer P11
56First Name 55Customer P12
57First Name 56Customer P01
58First Name 57Customer P02
59First Name 58Customer P03
60First Name 59Customer P04
61First Name 60Customer P05
62First Name 61Customer P07
63First Name 62Customer P08
64First Name 63Customer P09
65First Name 64Customer P10
66First Name 65Customer P11
67First Name 66Customer P12
68First Name 67Customer P01
69First Name 68Customer P02
70First Name 69Customer P03
71First Name 70Customer P04
72First Name 71Customer P05
73First Name 72Customer P07
74First Name 73Customer P08
75First Name 74Customer P09
76First Name 75Customer P10
77First Name 76Customer P11
78First Name 77Customer P12
79First Name 78Customer P01
80First Name 79Customer P02
81First Name 80Customer P12
82First Name 81Customer P04
83First Name 82Customer P12
84First Name 83Customer P12
85First Name 84Networks P08
86First Name 85Networks P12
87First Name 86Networks P10
88First Name 87Networks P12
89First Name 88Networks P12
90First Name 89Networks P12
91First Name 90Networks P02
92First Name 91Networks P12
93First Name 92Networks P04
94First Name 93Networks P12
95First Name 94Networks P12
96First Name 95Networks P08
97First Name 96Networks P12
98First Name 97Networks P10
sheet2
 
Last edited by a moderator:
Still don't see any relationship that will lead to expected results. Suggest you show a before and after scenario using the same data set otherwise, we are throwing darts while blindfolded after being spun around a couple of times.

Hi, I have data like in #1 . This data needs to be processed and a shale (area) chart needs to be generated. If by VBA we can generate the chart itself... great.

Else if someone can help me process this code and generate a table as in post #7 . I can manually create a shale(area) chart using that as the input.

Chart creation can be automated or manual, but the data processing needs to be automated through code. and that is the main requirement.
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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