Hi All,
I currently I have data pasted in my excel sheet as below in a tab called 'codes' something like this:
and many more countries under DE and FR and would like to change it to look like this below in tab called 'changed':
Could anyone recommend the macro?
Thanks
I currently I have data pasted in my excel sheet as below in a tab called 'codes' something like this:
Excel Workbook | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | DEUTSCHLAND | * | * | * | ||
2 | Warehouse | Code | Date | Item ID | ||
3 | WH-5142 | ABB | 14/3/11 | M4600 | ||
4 | WH-5142 | ABB | 14/3/11 | M4600 | ||
5 | WH-5142 | MNC | 14/3/11 | G6500 | ||
6 | WH-5142 | MNC | 14/3/11 | G6500 | ||
7 | WH-5142 | MNC | 14/3/11 | G6500 | ||
8 | WH-5142 | RGV | 14/3/11 | R5566 | ||
9 | WH-5142 | RGV | 14/3/11 | R5566 | ||
10 | FRANCE | * | * | * | ||
11 | Warehouse | Code | Date | Item ID | ||
12 | WH-9197 | ABB | 14/3/11 | M4600 | ||
13 | WH-9197 | ABB | 14/3/11 | M4600 | ||
14 | WH-9197 | MNC | 14/3/11 | G6500 | ||
15 | WH-9197 | MNC | 14/3/11 | G6500 | ||
16 | WH-9197 | MNC | 14/3/11 | G6500 | ||
17 | WH-9197 | RGV | 14/3/11 | R5566 | ||
18 | WH-9197 | RGV | 14/3/11 | R5566 | ||
codes |
and many more countries under DE and FR and would like to change it to look like this below in tab called 'changed':
Excel Workbook | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | * | Warehouse | Code | Date | Item ID | ||
2 | DEUTSCHLAND | WH-5142 | ABB | 14/3/11 | M4600 | ||
3 | DEUTSCHLAND | WH-5142 | ABB | 14/3/11 | M4600 | ||
4 | DEUTSCHLAND | WH-5142 | MNC | 14/3/11 | G6500 | ||
5 | DEUTSCHLAND | WH-5142 | MNC | 14/3/11 | G6500 | ||
6 | DEUTSCHLAND | WH-5142 | MNC | 14/3/11 | G6500 | ||
7 | DEUTSCHLAND | WH-5142 | RGV | 14/3/11 | R5566 | ||
8 | DEUTSCHLAND | WH-5142 | RGV | 14/3/11 | R5566 | ||
9 | * | * | * | * | * | ||
10 | * | Warehouse | Code | Date | Item ID | ||
11 | FRANCE | WH-9197 | ABB | 14/3/11 | M4600 | ||
12 | FRANCE | WH-9197 | ABB | 14/3/11 | M4600 | ||
13 | FRANCE | WH-9197 | MNC | 14/3/11 | G6500 | ||
14 | FRANCE | WH-9197 | MNC | 14/3/11 | G6500 | ||
15 | FRANCE | WH-9197 | MNC | 14/3/11 | G6500 | ||
16 | FRANCE | WH-9197 | RGV | 14/3/11 | R5566 | ||
17 | FRANCE | WH-9197 | RGV | 14/3/11 | R5566 | ||
changed |
Could anyone recommend the macro?
Thanks