hi
I have many data in multiple sheets and it's increasable and create a new sheets so. what I want macro to create all the data with the headers and borders and formatting with considering there are items are duplicated in the same sheet then should merge and summing the value . standard of the duplicated items .it should match col B,C,D together and when create the whole data if I change the data in any other sheet from COL B : COL E then should clean the data and update the data again .
note: theses simple data but my real data reaches about 5000 rows
first sheet
second sheet
third sheet
expected result
I have many data in multiple sheets and it's increasable and create a new sheets so. what I want macro to create all the data with the headers and borders and formatting with considering there are items are duplicated in the same sheet then should merge and summing the value . standard of the duplicated items .it should match col B,C,D together and when create the whole data if I change the data in any other sheet from COL B : COL E then should clean the data and update the data again .
note: theses simple data but my real data reaches about 5000 rows
first sheet
col.xlsb | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | ID | BRAND | TYPE | QTY | ||
2 | 01/01/2021 | CRBM-10 | CAR-1000 | BMW | 29 | ||
3 | 01/02/2021 | CRBM-10 | CAR-1000 | BMW | 12 | ||
4 | 01/03/2021 | CRBM-12 | CAR-1000 | BMW | 45 | ||
5 | 01/04/2021 | CRMR-10 | CAR-1000 | MER | 34 | ||
6 | 01/05/2021 | CRMR-12 | CAR-1000 | AUDI | 13 | ||
7 | 01/06/2021 | CRMR-11 | CAR-1001 | MER | 15 | ||
8 | 01/07/2021 | CRAU-11 | CAR-1002 | AUDI | 14 | ||
9 | 01/08/2021 | CRAU-11 | CAR-1002 | MER | 24 | ||
10 | 01/09/2021 | CRAU-12 | CAR-1002 | AUDI | 78 | ||
11 | 01/10/2021 | CRAU-14 | CAR-1002 | AUDI | 15 | ||
SS |
second sheet
col.xlsb | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | ID | BRAND | TYPE | QTY | ||
2 | 02/01/2021 | CRBM-10 | CAR-1000 | BMW | 10 | ||
3 | 02/03/2021 | CRBM-12 | CAR-1000 | BMW | 30 | ||
4 | 02/04/2021 | CRMR-10 | CAR-1000 | MER | 20 | ||
5 | 02/05/2021 | CRMR-12 | CAR-1000 | AUDI | 10 | ||
6 | 02/06/2021 | CRMR-11 | CAR-1001 | MER | 5 | ||
7 | 02/07/2021 | CRAU-11 | CAR-1002 | AUDI | 5 | ||
8 | 02/08/2021 | CRAU-11 | CAR-1002 | MER | 10 | ||
9 | 02/09/2021 | CRAU-12 | CAR-1002 | AUDI | 20 | ||
10 | 02/10/2021 | CRAU-14 | CAR-1002 | AUDI | 20 | ||
11 | 02/11/2021 | CRAU-15 | CAR-1003 | AUDI | 21 | ||
12 | 02/12/2021 | CRAU-16 | CAR-1004 | AUDI | 22 | ||
13 | 02/11/2021 | CRAU-15 | CAR-1003 | AUDI | 2 | ||
14 | 02/12/2021 | CRAU-16 | CAR-1004 | AUDI | 3 | ||
DD |
third sheet
col.xlsb | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | DATE | ID | BRAND | TYPE | QTY | ||
2 | 03/01/2021 | CRBM-10 | CAR-1000 | BMW | 29 | ||
3 | 03/03/2021 | CRBM-12 | CAR-1000 | BMW | 45 | ||
4 | 03/04/2021 | CRMR-10 | CAR-1000 | MER | 34 | ||
5 | 03/05/2021 | CRMR-12 | CAR-1000 | AUDI | 13 | ||
6 | 03/06/2021 | CRMR-11 | CAR-1001 | MER | 15 | ||
7 | 03/07/2021 | CRAU-11 | CAR-1002 | AUDI | 14 | ||
8 | 03/08/2021 | CRAU-11 | CAR-1002 | MER | 24 | ||
9 | 03/09/2021 | CRAU-12 | CAR-1002 | AUDI | 78 | ||
10 | 03/10/2021 | CRAU-14 | CAR-1002 | AUDI | 15 | ||
11 | 03/11/2021 | CRAU-17 | CAR-1003 | MER | 16 | ||
SS1 |
expected result
col.xlsb | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ITEM | ID | BRAND | TYPE | QTY1 | QTY2 | QTY3 | TOTAL | ||
2 | 1 | CRBM-10 | CAR-1000 | BMW | 41 | 10 | 29 | 80 | ||
3 | 2 | CRBM-12 | CAR-1000 | BMW | 45 | 30 | 45 | 120 | ||
4 | 3 | CRMR-10 | CAR-1000 | MER | 34 | 20 | 34 | 88 | ||
5 | 4 | CRMR-12 | CAR-1000 | AUDI | 13 | 10 | 13 | 36 | ||
6 | 5 | CRMR-11 | CAR-1001 | MER | 15 | 5 | 15 | 35 | ||
7 | 6 | CRAU-11 | CAR-1002 | AUDI | 14 | 5 | 14 | 33 | ||
8 | 7 | CRAU-11 | CAR-1002 | MER | 24 | 10 | 24 | 58 | ||
9 | 8 | CRAU-12 | CAR-1002 | AUDI | 78 | 20 | 78 | 176 | ||
10 | 9 | CRAU-14 | CAR-1002 | AUDI | 15 | 20 | 15 | 50 | ||
11 | 10 | CRAU-15 | CAR-1003 | AUDI | - | 23 | - | - | ||
12 | 11 | CRAU-16 | CAR-1004 | AUDI | - | 25 | - | - | ||
13 | 12 | CRAU-17 | CAR-1003 | MER | - | - | 16 | 16 | ||
COLLECTION |