Hello!
At the moment I'm doing manual work to get desired data format. All this formatting is done in one sheet, Sheet1.
First I group cells by Header1 and then copy/paste to get needed format.
In desired data format line between Header4 different values.
Is it possible to do this all with VBA?
At the moment I'm doing manual work to get desired data format. All this formatting is done in one sheet, Sheet1.
First I group cells by Header1 and then copy/paste to get needed format.
In desired data format line between Header4 different values.
Is it possible to do this all with VBA?
Table.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | raw data format from A1 | |||||||||
2 | Header1 | Header2 | Header3 | Header4 | Header5 | Header6 | Header7 | Header8 | ||
3 | x | 1 | 2 | 3 | 4 | 5 | 6 | 7 | ||
4 | x | 1 | 2 | 3 | 5 | 6 | 7 | 8 | ||
5 | x | 1 | 2 | 4 | 8 | 9 | 7 | 10 | ||
6 | y | 1 | 2 | 6 | 10 | 11 | 8 | 8 | ||
7 | y | 1 | 2 | 7 | 12 | 13 | 8 | 14 | ||
8 | z | 1 | 2 | 10 | 14 | 15 | 12 | 13 | ||
9 | z | 1 | 2 | 8 | 16 | 17 | 14 | 12 | ||
10 | z | 1 | 2 | 8 | 18 | 19 | 11 | 14 | ||
11 | ||||||||||
12 | ||||||||||
13 | ||||||||||
14 | Desired data format from A1 | |||||||||
15 | Header1 | Header2 | Header3 | |||||||
16 | x | 1 | 2 | |||||||
17 | Header4 | Header5 | Header6 | Header7 | Header8 | Header8 | ||||
18 | 3 | 4 | 5 | 6 | 7 | 8 | ||||
19 | 3 | 5 | 6 | 7 | 8 | 9 | ||||
20 | 4 | 8 | 9 | 7 | 10 | 8 | ||||
21 | ||||||||||
22 | ||||||||||
23 | Header1 | Header2 | Header3 | |||||||
24 | y | 1 | 2 | |||||||
25 | Header4 | Header5 | Header6 | Header7 | Header8 | Header8 | ||||
26 | 6 | 10 | 11 | 8 | 8 | 13 | ||||
27 | 7 | 12 | 13 | 8 | 14 | 15 | ||||
28 | ||||||||||
29 | ||||||||||
30 | Header1 | Header2 | Header3 | |||||||
31 | z | 1 | 2 | |||||||
32 | Header4 | Header5 | Header6 | Header7 | Header8 | Header8 | ||||
33 | 10 | 14 | 15 | 12 | 13 | 11 | ||||
34 | 8 | 16 | 17 | 14 | 12 | 13 | ||||
35 | 8 | 18 | 19 | 11 | 14 | 15 | ||||
36 | ||||||||||
37 | ||||||||||
Leht1 |