hi
I need macro merge duplicate items for about 1000 rows . should merge based on column A and summing values for columns E,G
the data
result
I need macro merge duplicate items for about 1000 rows . should merge based on column A and summing values for columns E,G
the data
columns.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | CODE | BR | TY | OR | QTY | PRICE | TOTAL | ||
2 | fr001 | FR | BANANA | TT | 200.00 | 10.00 | 2,000.00 | ||
3 | fr002 | FR | APPLE | LL | 100.00 | 54.00 | 5,400.00 | ||
4 | fr003 | VEG | TOMATO | SS | 12.00 | 22.00 | 264.00 | ||
5 | fr004 | VEG | TOMATO | AA | 12.00 | 23.00 | 276.00 | ||
6 | fr001 | FR | BANANA | TT | 10.00 | 32.00 | 320.00 | ||
7 | fr002 | FR | APPLE | LL | 20.00 | 10.00 | 200.00 | ||
8 | fr007 | TUNA | 180G | IND | 20.00 | 23.00 | 460.00 | ||
9 | fr008 | TUNA | 180G | THI | 10.00 | 12.00 | 120.00 | ||
OPER |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G2:G9 | G2 | =E2*F2 |
result
columns.xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
I | J | K | L | M | N | |||
1 | CODE | BR | TY | OR | QTY | TOTAL | ||
2 | fr001 | FR | BANANA | TT | 210.00 | 2,320.00 | ||
3 | fr002 | FR | APPLE | LL | 120.00 | 5,600.00 | ||
4 | fr003 | FR | PEAR | NN | 12.00 | 264.00 | ||
5 | fr004 | FR | BANANA | 12.00 | 276.00 | |||
6 | fr007 | VEG | TOMATO | SS | 10.00 | 460.00 | ||
7 | fr008 | VEG | TOMATO | AA | 20.00 | 120.00 | ||
OPER |