Hello
I would show data across sheets by arrange for each name and each sheet and should show data in listbox start from first sheet and sort from first date to last date .
so in first column will show date dd/mm/yyyy
second column brings names
third column populate sheets names for each name where is location in sheet.
fourth second shows CASE column
fifth column will brings amount from TOTAL row for each name from column H .
after show data in listbox1 then will merge data in listbox2 based on sheet name and case columns for 3,4 together.
so the form before
after
and if it's possible also when write dates in TB1,TB2 so will sort in listbox1 based dates and merged in listbox2 .
if TB1,TB2 are empty then will show all of data across sheets.
the data could be 10000 rows for each sheet.
thanks.
I would show data across sheets by arrange for each name and each sheet and should show data in listbox start from first sheet and sort from first date to last date .
mk1.xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | DATE | INV NO | NAME | ID | CASE | QTY | UNIT PRICE | BALANCE | ||
2 | 20/08/2023 | MMUY7000 | MVS | OOIL AS-100 | PAID | 20.00 | 160.00 | 3,200.00 | ||
3 | 20/08/2023 | MMUY7000 | MVS | OOIL AS-101 | PAID | 20.00 | 180.00 | 3,600.00 | ||
4 | TOTAL | 6,800.00 | ||||||||
5 | 20/08/2023 | MMUY7001 | MVS | OOIL AS-102 | PAID | 40.00 | 155.00 | 6,200.00 | ||
6 | 20/08/2023 | MMUY7001 | MVS | OOIL AS-103 | PAID | 20.00 | 190.00 | 3,800.00 | ||
7 | TOTAL | 10,000.00 | ||||||||
8 | 21/08/2023 | MMUY7002 | MVS | OOIL AS-103 | NOT PAID | 25.00 | 190.00 | 4,750.00 | ||
9 | TOTAL | 4,750.00 | ||||||||
10 | 21/08/2023 | MSS | OOIL AS-103 | NOT PAID | 25.00 | 180.00 | 4,500.00 | |||
11 | 21/08/2023 | MSS | OOIL AS-104 | NOT PAID | 40.00 | 177.00 | 7,080.00 | |||
12 | TOTAL | OOIL AS-105 | 11,580.00 | |||||||
13 | 21/08/2023 | MMUY7002 | MVS | OOIL AS-103 | NOT PAID | 100.00 | 196.00 | 19,600.00 | ||
14 | TOTAL | 19,600.00 | ||||||||
15 | ||||||||||
MK |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H13,H10:H11,H8,H5:H6,H2:H3 | H2 | =F2*G2 |
H4,H12,H7 | H4 | =SUM(H2:H3) |
H9,H14 | H9 | =SUM(H8) |
mk1.xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | DATE | INV NO | NAME | ID | CASE | QTY | UNIT PRICE | BALANCE | ||
2 | 20/08/2023 | ST NO 1000 | MVS | GNOO HH 1200 | RECEIVED | 10.00 | 150.00 | 1,500.00 | ||
3 | 20/08/2023 | ST NO 1000 | MVS | AS100-12 | RECEIVED | 10.00 | 130.00 | 1,300.00 | ||
4 | TOTAL | 2,800.00 | ||||||||
5 | 21/08/2023 | ST NO 1001 | MTT | MGFH GA-103 | NOT REICEVED | 15.00 | 130.00 | 1,950.00 | ||
6 | TOTAL | 1,950.00 | ||||||||
7 | 21/08/2023 | ST NO 1002 | MLL | SSFOO 1000 MN1 | NOT REICEVED | 2.00 | 140.00 | 280.00 | ||
8 | 21/08/2023 | ST NO 1002 | MLL | SSFOO 1000 MN2 | NOT REICEVED | 12.00 | 145.00 | 1,740.00 | ||
9 | 21/08/2023 | ST NO 1002 | MLL | SSFOO 1000 MN3 | NOT REICEVED | 10.00 | 145.00 | 1,450.00 | ||
10 | TOTAL | 3,470.00 | ||||||||
11 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-100 | RECEIVED | 10.00 | 145.00 | 1,450.00 | ||
12 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-101 | RECEIVED | 25.00 | 150.00 | 3,750.00 | ||
13 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-102 | RECEIVED | 40.00 | 155.00 | 6,200.00 | ||
14 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-103 | RECEIVED | 55.00 | 160.00 | 8,800.00 | ||
15 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-104 | RECEIVED | 70.00 | 165.00 | 11,550.00 | ||
16 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-105 | RECEIVED | 85.00 | 170.00 | 14,450.00 | ||
17 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-106 | RECEIVED | 100.00 | 175.00 | 17,500.00 | ||
18 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-107 | RECEIVED | 115.00 | 180.00 | 20,700.00 | ||
19 | TOTAL | 84,400.00 | ||||||||
20 | 24/08/2023 | ST NO 1002 | MLL | SSFOO 1000 MN11 | NOT REICEVED | 12.00 | 160.00 | 1,920.00 | ||
21 | 24/08/2023 | ST NO 1002 | MLL | SSFOO 1000 MN21 | NOT REICEVED | 12.00 | 170.00 | 2,040.00 | ||
22 | TOTAL | 3,960.00 | ||||||||
MT |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H11:H18,H5,H2:H3 | H2 | =F2*G2 |
H4,H22 | H4 | =SUM(H2:H3) |
H6 | H6 | =SUM(H5:H5) |
H20:H21,H7:H9 | H7 | =G7*F7 |
H10 | H10 | =SUM(H7:H9) |
H19 | H19 | =SUM(H11:H18) |
mk1.xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | DATE | INV NO | NAME | ID | CASE | QTY | UNIT PRICE | BALANCE | ||
2 | 20/08/2023 | MSSUY4000 | MVS | OOIL AS-100 | RECEIVED | 1.00 | 160.00 | 160.00 | ||
3 | 20/08/2023 | MSSUY4000 | MVS | OOIL AS-101 | RECEIVED | 1.00 | 180.00 | 180.00 | ||
4 | TOTAL | 340.00 | ||||||||
5 | 20/08/2023 | MSSUY4001 | MVS | OOIL AS-102 | NOT REICEVED | 1.00 | 155.00 | 155.00 | ||
6 | 20/08/2023 | MSSUY4001 | MVS | OOIL AS-103 | NOT REICEVED | 1.00 | 190.00 | 190.00 | ||
7 | TOTAL | 345.00 | ||||||||
8 | 21/08/2023 | MSSUY4002 | MVS | OOIL AS-102 | RECEIVED | 2.00 | 155.00 | 310.00 | ||
9 | TOTAL | 655.00 | ||||||||
10 | 21/08/2023 | MSSUY4003 | MSS | OOIL AS-100 | NOT REICEVED | 1.00 | 160.00 | 160.00 | ||
11 | 21/08/2023 | MSSUY4003 | MSS | OOIL AS-101 | NOT REICEVED | 1.00 | 180.00 | 180.00 | ||
12 | 21/08/2023 | MSSUY4003 | MSS | OOIL AS-102 | NOT REICEVED | 1.00 | 155.00 | 155.00 | ||
13 | TOTAL | 495.00 | ||||||||
MS |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H10:H12,H8,H5:H6,H2:H3 | H2 | =F2*G2 |
H4,H9,H7 | H4 | =SUM(H2:H3) |
H13 | H13 | =SUM(H10:H12) |
mk1.xlsm | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | DATE | INV NO | NAME | ID | CASE | QTY | UNIT PRICE | BALANCE | ||
2 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-100 | NOT PAID | 1.00 | 145.00 | 145.00 | ||
3 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-101 | NOT PAID | 1.00 | 150.00 | 150.00 | ||
4 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-102 | NOT PAID | 2.00 | 155.00 | 310.00 | ||
5 | 24/08/2023 | VT NO 1003 | MKK | OOIL AS-103 | NOT PAID | 4.00 | 160.00 | 640.00 | ||
6 | TOTAL | 1,245.00 | ||||||||
7 | 25/08/2023 | VT NO 1004 | MKK | OOIL AS-101 | PAID | 1.00 | 150.00 | 150.00 | ||
8 | 25/08/2023 | VT NO 1004 | MKK | OOIL AS-102 | PAID | 2.00 | 155.00 | 310.00 | ||
9 | TOTAL | 460.00 | ||||||||
10 | 25/08/2023 | VT NO 1005 | MLL | OOIL AS-103 | PAID | 4.00 | 160.00 | 640.00 | ||
11 | TOTAL | 640.00 | ||||||||
12 | 25/08/2023 | VT NO 1006 | MLL | OOIL AS-102 | PAID | 2.00 | 155.00 | 310.00 | ||
13 | 25/08/2023 | VT NO 1006 | MLL | OOIL AS-103 | PAID | 4.00 | 160.00 | 640.00 | ||
14 | TOTAL | 950.00 | ||||||||
15 | 25/08/2023 | VT NO 1007 | MVS | OOIL AS-101 | PAID | 3.00 | 150.00 | 450.00 | ||
16 | TOTAL | 450.00 | ||||||||
ATS |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H15,H12:H13,H10,H7:H8,H2:H5 | H2 | =F2*G2 |
H6 | H6 | =SUM(H2:H5) |
H9,H14 | H9 | =SUM(H7:H8) |
H11,H16 | H11 | =SUM(H10) |
so in first column will show date dd/mm/yyyy
second column brings names
third column populate sheets names for each name where is location in sheet.
fourth second shows CASE column
fifth column will brings amount from TOTAL row for each name from column H .
after show data in listbox1 then will merge data in listbox2 based on sheet name and case columns for 3,4 together.
so the form before
after
and if it's possible also when write dates in TB1,TB2 so will sort in listbox1 based dates and merged in listbox2 .
if TB1,TB2 are empty then will show all of data across sheets.
the data could be 10000 rows for each sheet.
thanks.