hi experts
I have many sheets about five sheets contains data are almost 3000 rows for each sheet and it will increase continuiosly . so what I want when run the userform should merge the duplicate items based on COL B across the sheets each sheet repeat the items except the first sheet because this data collected from prevouis year. the others sheets are currnt year operations with considering the second sheet somtimes contains new item then should show in listbox . after merge duplicate items should show the QTY for each sheet . about COL 11 the calculate like this as item (FR1)=200+200-5+4-20=379 . as to COLS 12,13 (UNIT COST,UNIT SALES ) should not summing . should keep as it is .
as to COL 14 should calculate like this (15-12)*379=1137
see the row1 in listbox
so if any body have suggestion to do that by using helper sheet or doing directly without using helper sheet I accept all the suggestion .
the result should be in listbox
thanks in advance
I have many sheets about five sheets contains data are almost 3000 rows for each sheet and it will increase continuiosly . so what I want when run the userform should merge the duplicate items based on COL B across the sheets each sheet repeat the items except the first sheet because this data collected from prevouis year. the others sheets are currnt year operations with considering the second sheet somtimes contains new item then should show in listbox . after merge duplicate items should show the QTY for each sheet . about COL 11 the calculate like this as item (FR1)=200+200-5+4-20=379 . as to COLS 12,13 (UNIT COST,UNIT SALES ) should not summing . should keep as it is .
as to COL 14 should calculate like this (15-12)*379=1137
see the row1 in listbox
so if any body have suggestion to do that by using helper sheet or doing directly without using helper sheet I accept all the suggestion .
COLLECTION (2).xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | ITEM | ID | BR | TY | OR | QTY | UNIT COST | UNIT SALE | ||
2 | 1 | FR-1 | FR | BANANA | TT | 200.00 | $12.00 | $15.00 | ||
3 | 2 | FR-2 | FR | APPLE | LL | 100.00 | $11.00 | $17.00 | ||
4 | 3 | FR-3 | FR | PEAR | NN | 60.00 | $12.00 | $15.00 | ||
5 | 4 | FR-4 | FR | BANANA | 55.00 | $13.00 | $17.00 | |||
6 | 5 | VEG1 | VEG | TOMATO | SS | 50.00 | $14.00 | $16.00 | ||
7 | 6 | VEG2 | VEG | TOMATO | AA | 50.00 | $11.00 | $15.00 | ||
8 | 6 | FR-5 | FR1 | PEAR | MM | 0.00 | $11.00 | $15.00 | ||
STA |
COLLECTION (2).xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | DATE | ID | BR | TY | OR | QTY | UNIT COST | TOTAL | ||
2 | 1/1/2021 | FR-1 | FR | BANANA | TT | 100.00 | $12.00 | $1,200.00 | ||
3 | 1/2/2021 | FR-2 | FR | APPLE | LL | 50.00 | $11.00 | $550.00 | ||
4 | 1/3/2021 | FR-3 | FR | PEAR | NN | 60.00 | $12.00 | $720.00 | ||
5 | 1/4/2021 | FR-4 | FR | BANANA | 60.00 | $13.00 | $780.00 | |||
6 | 1/5/2021 | VEG1 | VEG | TOMATO | SS | 65.00 | $14.00 | $910.00 | ||
7 | 1/6/2021 | VEG2 | VEG | TOMATO | AA | 40.00 | $11.00 | $440.00 | ||
8 | 1/7/2021 | FR-1 | FR | BANANA | TT | 100.00 | $12.00 | $1,200.00 | ||
9 | 1/8/2021 | FR-5 | FR1 | PEAR | MM | 55.00 | $14.00 | $770.00 | ||
RPA |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H9 | H2 | =G2*F2 |
COLLECTION (2).xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | DATE | ID | BR | TY | OR | QTY | UNIT SALE | TOTAL | ||
2 | 2/1/2021 | FR-1 | FR | BANANA | TT | 5.00 | $15.00 | $75.00 | ||
3 | 2/3/2021 | FR-3 | FR | PEAR | NN | 5.00 | $15.00 | $75.00 | ||
4 | 2/4/2021 | FR-4 | FR | BANANA | 2.00 | $17.00 | $34.00 | |||
5 | 2/5/2021 | VEG1 | VEG | TOMATO | SS | 3.00 | $16.00 | $48.00 | ||
6 | 2/6/2021 | VEG2 | VEG | TOMATO | AA | 4.00 | $15.00 | $60.00 | ||
7 | 2/8/2021 | FR-5 | FR1 | PEAR | MM | 2.00 | $15.00 | $30.00 | ||
8 | 2/8/2021 | FR-5 | FR1 | PEAR | MM | 2.00 | $20.00 | $40.00 | ||
SR |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H8 | H2 | =G2*F2 |
COLLECTION (2).xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | DATE | ID | BR | TY | OR | QTY | PRICE | TOTAL | ||
2 | 3/1/2021 | FR-1 | FR | BANANA | TT | 2.00 | $15.00 | $30.00 | ||
3 | 3/2/2021 | FR-3 | FR | PEAR | NN | 2.00 | $15.00 | $30.00 | ||
4 | 3/3/2021 | FR-1 | FR | BANANA | TT | 2.00 | $15.00 | $30.00 | ||
5 | 3/4/2021 | FR-3 | FR | PEAR | NN | 2.00 | $15.00 | $30.00 | ||
RR |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H5 | H2 | =G2*F2 |
COLLECTION (2).xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | DATE | ID | BR | TY | OR | QTY | PRICE | TOTAL | ||
2 | 1/1/2021 | FR-1 | FR | BANANA | TT | 5.00 | $12.00 | $60.00 | ||
3 | 1/2/2021 | FR-2 | FR | APPLE | LL | 10.00 | $11.00 | $110.00 | ||
4 | 1/3/2021 | FR-1 | FR | BANANA | TT | 15.00 | $12.00 | $180.00 | ||
5 | 1/4/2021 | FR-2 | FR | APPLE | LL | 20.00 | $11.00 | $220.00 | ||
SS |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H5 | H2 | =G2*F2 |
the result should be in listbox