Hello.
I'm using the following code to parse my raw report from row1-Sheet2 and transfer data to Sheet1, creating this kind of table:
|
O |
P |
Q |
R |
1 |
|
|
|
|
2 |
id |
shop |
store |
factory |
3 |
3456 |
23 |
15 |
25 |
4 |
3467 |
12 |
16 |
28 |
5 |
3468 |
24 |
19 |
33 |
6 |
... |
... |
... |
... |
Data in row1-Sheet2 are organized in the following pattern: id - shop - stor - fact
My problem is reflected in the fact that sometimes between the two id's there are no this "shop-stor-fact" cells which means that my prices are often in the wrong row in above table (next to the wrong id).
I would like to re-arrange this code so in the case that between the two id's there are no this cells which contains significant text (shop-stor-fact), then, in the table, that row stays empty.
example:
(id-shop-store-factory) (id-shop-store-factory) (id) (id-shop-store-factory) (id-shop-store-factory) ....
|
O |
P |
Q |
R |
1 |
|
|
|
|
2 |
id |
shop |
store |
factory |
3 |
3456 |
23 |
15 |
25 |
4 |
3467 |
12 |
16 |
28 |
5 |
3468 |
|
|
|
6 |
3470 |
24 |
19 |
33 |
7 |
3471 |
27 |
11 |
39 |
Here is the code I used so far:
Here is a sample workbook:
Bookmarks