Hi
I search for macro to merge duplicates items for about 16000 rows & 150 columns for each sheet
so should match items in column B across sheets and merge duplicates items and summing the values for each month whether there are duplicates items or new items , should show the whole data in sheet summary and finally should insert column AGGREGATE to sum the whole values for all of the months .
every time I will add new sheets and sometimes changes data in sheets have already existed then should update data in sheet summary
as to columns every time I add new columns based on current month for each sheet .
some data in some sheets
my goal should be like this
I search for macro to merge duplicates items for about 16000 rows & 150 columns for each sheet
so should match items in column B across sheets and merge duplicates items and summing the values for each month whether there are duplicates items or new items , should show the whole data in sheet summary and finally should insert column AGGREGATE to sum the whole values for all of the months .
every time I will add new sheets and sometimes changes data in sheets have already existed then should update data in sheet summary
as to columns every time I add new columns based on current month for each sheet .
some data in some sheets
MUL.xlsx | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | |||
1 | ITEM | ID | JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT | NOV | DEC | JAN | FEB | MAR | APR | ||
2 | 1 | MT ASGL-VEN SD-1 | 12 | 10 | - | - | - | - | - | - | - | - | - | - | - | - | 44 | - | ||
3 | 2 | C-ZER | 130 | - | - | 11 | - | - | - | - | - | - | - | - | - | - | - | - | ||
4 | 3 | BB 2000MN TT GH | 90 | - | - | - | - | - | 1 | 11 | - | - | - | - | - | - | - | - | ||
5 | 4 | TRM 2000MN TT GH | - | 16 | - | 11 | 1 | - | - | 123 | - | 33 | - | - | 33 | - | - | - | ||
6 | 5 | BD 234 NH GG | 78 | 70 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | ||
7 | 6 | BR 111/33M ER HJ | - | - | - | - | - | - | - | - | - | - | - | - | 66 | 80 | 1 | |||
8 | 7 | VB 1222** SS TF HJK | 45 | - | - | - | - | - | - | - | - | - | - | - | 23 | 34 | - | - | ||
9 | 8 | VB 145** SS TF HJK | - | 45 | - | - | - | - | - | 111 | 23 | - | - | - | - | - | - | - | ||
10 | 9 | DEWR 1222** SS TF HJK | 34 | 34 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | ||
11 | 10 | DAS 1222** SS TF HJK | - | 35 | - | - | - | - | - | - | - | - | - | - | - | - | - | 44 | ||
DA |
MUL.xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | ITEM | ID | JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT | NOV | ||
2 | 2 | C-ZER | 22 | - | - | 11 | - | - | - | - | - | - | - | ||
3 | 10 | DAS 1222** SS TF HJK | - | 45 | - | - | - | - | - | - | - | - | - | ||
4 | 1 | MT ASGL-VEN SD-1 | 34 | 10 | - | - | - | - | 22 | - | - | - | 12 | ||
5 | 3 | MT ASGL-VEN SD-2 | 22 | - | - | - | - | - | - | - | - | - | 30 | ||
6 | 8 | VB 145** SS TF HJK | - | 56 | - | - | - | - | 12 | - | - | - | - | ||
7 | 9 | DEWR 1222** SS TF HJK | 123 | 40 | - | - | - | - | - | - | - | - | 12 | ||
MA |
MUL.xlsx | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | |||
1 | ID | JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT | NOV | DEC | JAN | FEB | MAR | APR | MAY | ||
2 | BD 234 NH GG | 70 | 70 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | ||
3 | BR 111/33M ER HJ | 66 | 80 | - | - | - | - | - | - | - | - | - | - | - | - | 33 | - | - | ||
4 | VB 1222** SS TF HJK | 45 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | ||
5 | C-ZER | 130 | - | - | 11 | - | - | - | - | - | - | - | - | - | - | - | - | - | ||
6 | BB 2000MN TT GH | 90 | - | - | - | - | - | 1 | 11 | - | - | - | - | - | - | - | - | 1 | ||
7 | TRM 2000MN TT GH | - | 16 | - | 11 | 1 | - | - | 123 | - | 33 | - | - | 33 | - | - | 6 | - | ||
8 | MT ASGL-VEN SD-1 | 12 | 10 | - | - | - | - | - | - | - | - | - | - | - | - | 44 | - | - | ||
9 | VB 145** SS TF HJK | - | 45 | - | - | - | - | - | 111 | 23 | - | - | - | - | - | - | - | - | ||
10 | BVG2340/123-BBG12 | - | 12 | - | - | - | 230 | - | - | - | - | 110 | - | - | - | - | ||||
SE |
my goal should be like this
MUL.xlsx | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | |||
1 | ITEM | ID | JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT | NOV | DEC | JAN | FEB | MAR | APR | MAY | AGGREGATE | ||
2 | 1 | MT ASGL-VEN SD-1 | 58 | 30 | - | - | - | - | 22 | - | - | - | - | - | - | - | 88 | - | 198 | |||
3 | 2 | C-ZER | 282 | - | - | 33 | - | - | - | - | - | - | - | - | - | - | - | - | - | 315 | ||
4 | 3 | BB 2000MN TT GH | 180 | - | - | - | - | - | 2 | 22 | - | - | - | - | - | - | - | - | 1 | 205 | ||
5 | 4 | TRM 2000MN TT GH | - | 32 | - | 22 | 2 | - | - | 246 | - | 66 | - | - | 66 | - | - | 6 | - | 440 | ||
6 | 5 | BD 234 NH GG | 148 | 140 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 288 | ||
7 | 6 | BR 111/33M ER HJ | 66 | 80 | - | - | - | - | - | - | - | - | - | - | 66 | 80 | 33 | - | - | 325 | ||
8 | 7 | VB 1222** SS TF HJK | 90 | - | - | - | - | - | - | - | - | - | - | - | 23 | 34 | - | - | - | 147 | ||
9 | 8 | VB 145** SS TF HJK | - | 146 | - | - | - | - | 12 | 222 | 46 | - | - | - | - | - | - | - | - | 426 | ||
10 | 9 | DEWR 1222** SS TF HJK | 157 | 74 | - | - | - | - | - | - | - | - | 12 | - | - | - | - | - | - | 243 | ||
11 | 10 | DAS 1222** SS TF HJK | - | 80 | - | - | - | - | - | - | - | - | - | - | - | - | - | 44 | - | 124 | ||
12 | 11 | MT ASGL-VEN SD-2 | 22 | - | - | - | - | - | - | - | - | - | 30 | - | - | - | - | - | - | 52 | ||
13 | 12 | BVG2340/123-BBG12 | - | 12 | - | - | - | 230 | - | - | - | - | 110 | - | - | - | - | 352 | ||||
SUMMARY |