Hi Guys,
I search for macro to deal with about 15000 rows for SUMMARY sheet.
so in FINAL
FINAL sheet will be result with formatting and borders.
in SUMMARY sheet should merge amounts (D:G) are existed in the same column based on name and sheet name in columns B:C
the headers in row1 will transfer as column in C column and repeat it for each name in column B is relating with the header in row1
also insert two rows to the bottom TOTAL ,NET to calculation.
as to sorting data should be from A-Z based n column B .
should delete data in FINAL sheet before show report.
so the data in SUMMARY sheet.
the output should be
by the way I don't want power query or pivot table, just macro to deal data .
thanks
I search for macro to deal with about 15000 rows for SUMMARY sheet.
so in FINAL
FINAL sheet will be result with formatting and borders.
in SUMMARY sheet should merge amounts (D:G) are existed in the same column based on name and sheet name in columns B:C
the headers in row1 will transfer as column in C column and repeat it for each name in column B is relating with the header in row1
also insert two rows to the bottom TOTAL ,NET to calculation.
as to sorting data should be from A-Z based n column B .
should delete data in FINAL sheet before show report.
so the data in SUMMARY sheet.
mk1.xlsm | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | MK | MT | MS | ATS | ||||||||
2 | DATE | NAME | PAID | NOT PAID | RECEIVED | NOT REICEVED | RECEIVED | NOT REICEVED | PAID | NOT PAID | ||
3 | 20/08/2023 | MVS | 6,800.00 | - | 2,800.00 | - | 340.00 | 345.00 | - | - | ||
4 | 20/08/2023 | MVS | 10,000.00 | - | - | - | - | - | - | - | ||
5 | 21/08/2023 | MVS | - | 19,600.00 | 1000 | - | 655.00 | - | - | - | ||
6 | 21/08/2023 | MVS | - | 4,750.00 | ||||||||
7 | 21/08/2023 | MSS | - | 11,580.00 | - | - | - | 495.00 | - | - | ||
8 | 21/08/2023 | MTT | - | - | - | 1,950.00 | - | - | - | - | ||
9 | 21/08/2023 | MLL | 10,000.00 | - | - | 3,470.00 | - | - | - | - | ||
10 | 24/08/2023 | MKK | - | - | 84,400.00 | - | - | - | - | 1,245.00 | ||
11 | 24/08/2023 | MLL | 10,000.00 | - | - | 3,960.00 | - | - | - | - | ||
12 | 25/08/2023 | MKK | 12,000.00 | - | - | - | - | - | 460.00 | - | ||
13 | 25/08/2023 | MSS | - | 100 | - | - | - | 200 | 640.00 | - | ||
14 | 25/08/2023 | MLL | - | - | 1000 | - | - | - | 950.00 | - | ||
15 | 25/08/2023 | MKK | 1,000.00 | - | 1000 | 1000 | - | - | 450.00 | - | ||
16 | TOTAL | 49,800.00 | 36,030.00 | 90,200.00 | 10,380.00 | 995.00 | 1,040.00 | 2,500.00 | 1,245.00 | |||
17 | NET | 38,895.00 | ||||||||||
SUMMARY |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C16:J16 | C16 | =SUM(C3:C15) |
J17 | J17 | =(E16+G16)-(C16+I16) |
mk1.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | |||||||||
2 | |||||||||
3 | |||||||||
4 | |||||||||
5 | |||||||||
6 | |||||||||
7 | |||||||||
8 | |||||||||
9 | |||||||||
10 | |||||||||
11 | |||||||||
12 | |||||||||
13 | |||||||||
14 | |||||||||
15 | |||||||||
16 | |||||||||
17 | |||||||||
18 | |||||||||
19 | |||||||||
20 | |||||||||
FINAL |
the output should be
mk1.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | ITEM | NAME | Sheet name | PAID | NOT PAID | RECEIVED | NOT REICEVED | ||
2 | 1 | MKK | MK | 13,000.00 | - | - | - | ||
3 | 2 | MKK | MT | - | - | 85,400.00 | - | ||
4 | 3 | MKK | ATS | 910.00 | - | - | - | ||
5 | 4 | MKK | ATS | - | 1,245.00 | - | - | ||
6 | 5 | MKK | MT | - | - | - | 1,000.00 | ||
7 | 6 | MLL | MK | 20,000.00 | - | - | - | ||
8 | 7 | MLL | MT | - | - | 1,000.00 | - | ||
9 | 8 | MLL | MT | - | - | - | 7,430.00 | ||
10 | 9 | MLL | ATS | 950.00 | - | - | - | ||
11 | 10 | MTT | MT | - | - | - | 1,950.00 | ||
12 | 11 | MVS | MK | 16,800.00 | 24,350.00 | - | - | ||
13 | 12 | MVS | MT | - | - | 3,800.00 | - | ||
14 | 13 | MVS | MS | - | - | - | 345.00 | ||
15 | 14 | MVS | MS | - | 995 | - | |||
16 | 15 | MSS | MK | - | 11,680.00 | - | - | ||
17 | 16 | MSS | MS | - | - | - | 695.00 | ||
18 | 17 | MSS | ATS | 640.00 | - | - | - | ||
19 | TOTAL | 52,300.00 | 37,275.00 | 91,195.00 | 11,420.00 | ||||
20 | NET | 38,895.00 | |||||||
FINAL |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D19:G19 | D19 | =SUM(D2:D18) |
G20 | G20 | =F19-D19 |
by the way I don't want power query or pivot table, just macro to deal data .
thanks