abdo meghari
Well-known Member
- Joined
- Aug 3, 2021
- Messages
- 651
- Office Version
- 2019
Hello
I want to extract data for specific information with the formatting as in original sheets as I did it in REPORT sheet
I want to extract for the DATE and INV.NO,TOTAL from each row contains SUM word based on date today .
so in REPORT sheet should create sheet name in above as I did it and make separated range for each sheet and sum the whole amounts for TOTAL column .
result should be
notice : my real data could be 6000 rows for each sheet and every time I will add and change data in others sheets then should delete data in REPORT sheet before brings data when every time run the macro .
thanks
I want to extract data for specific information with the formatting as in original sheets as I did it in REPORT sheet
I want to extract for the DATE and INV.NO,TOTAL from each row contains SUM word based on date today .
so in REPORT sheet should create sheet name in above as I did it and make separated range for each sheet and sum the whole amounts for TOTAL column .
SS.xlsm | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | ITEM | DATE | INV.NO | BRAND | TYPE | ORIGIN | QTY | PRICE | TOTAL | ||
2 | 1 | 2023/06/10 | BSJ_23444 | BS 215/60R16 | ER30 | JAP | 4.00 | 430.00 | 1,720.00 | ||
3 | SUM | 2023/06/10 | BSJ_23444 | 1,720.00 | |||||||
4 | 1 | 2023/06/10 | BSJ_23445 | GO 1200R20 | AZ0026 | CHI | 2.00 | 955.00 | 1,910.00 | ||
5 | SUM | 2023/06/10 | BSJ_23445 | 1,910.00 | |||||||
6 | 1 | 2023/09/15 | BSJ_23446 | GO 1200R20 | AZ0026 | CHI | 2.00 | 950.00 | 1,900.00 | ||
7 | 2 | 2023/09/15 | BSJ_23446 | GO 1200R21 | AZ0027 | CHI | 3.00 | 1,000.00 | 3,000.00 | ||
8 | SUM | 2023/09/15 | BSJ_23446 | 4,900.00 | |||||||
9 | 1 | 2023/09/15 | BSJ_23447 | BS 1200R20 | G580 | JAP | 1.00 | 2,000.00 | 2,000.00 | ||
10 | 2 | 2023/09/15 | BSJ_23447 | BS 1200R20 | G580 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
11 | 3 | 2023/09/15 | BSJ_23447 | BS 1200R20 | R187 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
12 | SUM | 2023/09/15 | BSJ_23447 | 6,000.00 | |||||||
SR |
SS.xlsm | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | ITEM | DATE | INV.NO | BRAND | TYPE | ORIGIN | QTY | PRICE | TOTAL | ||
2 | 1 | 2023/06/15 | BSTR_23448 | BS 750R16 | R230 | JAP | 4.00 | 500.00 | 2,000.00 | ||
3 | 2 | 2023/06/15 | BSTR_23448 | BS 700R16 | R230 | JAP | 2.00 | 400.00 | 800.00 | ||
4 | SUM | 2023/06/15 | BSTR_23448 | 2,800.00 | |||||||
5 | 1 | 2023/09/15 | BSTR_23449 | GO 1200R20 | AZ0026 | CHI | 1.00 | 920.00 | 920.00 | ||
6 | 2 | 2023/09/15 | BSTR_23449 | GO 1200R20 | AZ0083 | CHI | 2.00 | 1,000.00 | 2,000.00 | ||
7 | SUM | 2023/09/15 | BSTR_23449 | 2,920.00 | |||||||
8 | 1 | 2023/09/15 | BSTR_23450 | BS 1200R20 | G580 | JAP | 1.00 | 1,800.00 | 1,800.00 | ||
9 | 2 | 2023/09/15 | BSTR_23450 | BS 1200R20 | G580 | THI | 1.00 | 1,800.00 | 1,800.00 | ||
10 | 3 | 2023/09/15 | BSTR_23450 | BS 1200R20 | R187 | THI | 1.00 | 1,800.00 | 1,800.00 | ||
11 | SUM | 2023/09/15 | BSTR_23450 | 5,400.00 | |||||||
SVR |
result should be
المصنف2.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | SR | |||||
2 | ITEM | DATE | INV.NO | TOTAL | ||
3 | 1 | 2023/09/15 | BSJ_23446 | 4,900.00 | ||
4 | 2 | 2023/09/15 | BSJ_23447 | 6,000.00 | ||
5 | SUM | 10,900.00 | ||||
6 | ||||||
7 | ||||||
8 | SVR | |||||
9 | ITEM | DATE | INV.NO | TOTAL | ||
10 | 1 | 2023/09/15 | BSTR_23449 | 2,920.00 | ||
11 | 2 | 2023/09/15 | BSTR_23450 | 5,400.00 | ||
12 | SUM | 8,320.00 | ||||
REPORT |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D5,D12 | D5 | =SUM(D3:D4) |
notice : my real data could be 6000 rows for each sheet and every time I will add and change data in others sheets then should delete data in REPORT sheet before brings data when every time run the macro .
thanks