abdo meghari
Well-known Member
- Joined
- Aug 3, 2021
- Messages
- 651
- Office Version
- 2019
Hello
I need populate data for the customer name when select combobox1 and matched with CUSTOMERS column name across sheets,also populate based on two dates in textbox1,2 when select customer combobox1
when select CCF-1000 from combobox1 then should some steps:
1- brings balance in column F from sheet BALANCES as show in row2 under headers in listbox 1 if the amount is minus then should put in CREDIT column and the same amount put in BALANCE column as show in listbox1(if the he amount is positive then should put in DEBIT column and the same amount put in BALANCE column)
2- for RS sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the OUTSTANDING word is existed in CASE column then will put amount in column CREDIT and the calculation in BALANCE will be the first balance in row2 + next row in DEBIT column - CREDIT column like this -500+0-860=1360
3- for SV sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the OUTSTANDING word is existed in CASE column then will put amount in column CREDIT and the calculation in BALANCE will be the first balance in row3 + next row in DEBIT column - CREDIT column like this -1360+0-2300=-3660
4- for SR sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the OUTSTANDING word is existed in CASE column then will put amount in column DEBIT and the calculation in BALANCE will be the first balance in row4+ next row in DEBIT column - CREDIT column like this -3660+1720-0=-1940
5-for VS sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the PAID word is existed in CASE column then will put amount in column CREDIT and the calculation in BALANCE will be the first balance in row5 + next row in DEBIT column - CREDIT column like this -1940+0-500=-2440
6- for RECEIPT brings amount from BALANCE column and match PART of item "RVCH" in CASE column then will put in DEBIT column like this
-2440+30000-0=27560 another process for the same sheet will be= 27560+10000-0= 37560
7- for SV sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the PAID word is existed in CASE column then will put amount in column DEBIT and the calculation in BALANCE will be the first balance in row8 + next row in DEBIT column - CREDIT column like this 37560+50400-0=86040
8- for SR sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the PAID word is existed in CASE column then will put amount in column CREDIT and the calculation in BALANCE will be the first balance in row9 + next row in DEBIT column - CREDIT column like this 86040+0-4900=-81140
9-for VS sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the OUTSTANDING word is existed in CASE column then will put amount in column DEBIT and the calculation in BALANCE will be the first balance in row10 + next row in DEBIT column - CREDIT column like this 81140+3600-0=84740
10- for RS sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the PAID word is existed in CASE column then will put amount in column DEBIT and the calculation in BALANCE will be the first balance in row11 + next row in DEBIT column - CREDIT column like this 84740+2950-0=87690
11- for RECEIPT brings amount from BALANCE column and match PART of item "VCH" in CASE column then will put in CREDIT column like this
87690+0-15000=72690
moreover should insert SUM roe to sum column DEBIT,CREDIT and subtract column DEBIT from CREDIT and show BALANCE column .
without forgetting the data could be 9000 rows for each sheet.
here is picture to show and calculation for selected customer from combobox2
last thing I would show formatting number like"#,##0.00"
also should show - for empty digits in column DEBIT,CREDIT and if the BALANCE column is zero for any row should also show hyphen instead of zero.
thanks
I need populate data for the customer name when select combobox1 and matched with CUSTOMERS column name across sheets,also populate based on two dates in textbox1,2 when select customer combobox1
DECREASE.xlsm | |||||||
---|---|---|---|---|---|---|---|
B | C | D | E | F | |||
1 | DATE | CUSTOMERS | DEBIT | CREDIT | BALANCE | ||
2 | 30/08/2024 | CCF-1000 | 1,500.00 | 2,000.00 | -500.00 | ||
3 | 30/08/2024 | CCF-1001 | 2,000.00 | 2,000.00 | |||
4 | 30/08/2024 | CCF-1002 | 3,000.00 | 3,000.00 | 0.00 | ||
5 | 30/08/2024 | CCF-1003 | 2,000.00 | 1,000.00 | 1,000.00 | ||
6 | 30/08/2024 | CCF-1004 | 2,000.00 | 2,000.00 | |||
7 | 30/08/2024 | CCF-1005 | 1,000.00 | -1,000.00 | |||
8 | 30/08/2024 | CCF-1006 | 1,000.00 | -1,000.00 | |||
9 | 30/08/2024 | CCF-1007 | 4,000.00 | 4,000.00 | |||
10 | 30/08/2024 | CCF-1008 | 8,000.00 | 8,000.00 | |||
11 | 30/08/2024 | CCF-1009 | 5,000.00 | 5,000.00 | |||
BALANCES |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2:F11 | F2 | =D2-E2 |
DECREASE.xlsm | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | ITEM | DATE | CUSTOMERS | INV.NO | CASE | BRAND | TYPE | ORIGIN | QTY | PRICE | BALANCE | ||
2 | 1 | 15/06/2023 | CCF-1000 | BSTR_23448 | OUTSANDING | BS 750R16 | R230 | JAP | 3.00 | 500.00 | 1,500.00 | ||
3 | 2 | 15/06/2023 | CCF-1000 | BSTR_23448 | OUTSANDING | BS 700R16 | R230 | JAP | 2.00 | 400.00 | 800.00 | ||
4 | SUM | 2,300.00 | |||||||||||
5 | 1 | 15/09/2023 | CCF-1000 | BSTR_23449 | OUTSANDING | GO 1200R20 | AZ0026 | CHI | 1.00 | 920.00 | 920.00 | ||
6 | 2 | 15/09/2023 | CCF-1000 | BSTR_23449 | OUTSANDING | GO 1200R20 | AZ0083 | CHI | 1.00 | 1,000.00 | 1,000.00 | ||
7 | SUM | 1,920.00 | |||||||||||
8 | 1 | 15/09/2023 | CCF-1000 | BSTR_23450 | PAID | BS 1200R20 | G580 | JAP | 9.00 | 1,800.00 | 16,200.00 | ||
9 | 2 | 15/09/2023 | CCF-1000 | BSTR_23450 | PAID | BS 1200R20 | G580 | THI | 9.00 | 1,800.00 | 16,200.00 | ||
10 | 3 | 15/09/2023 | CCF-1000 | BSTR_23450 | PAID | BS 1200R20 | R187 | THI | 10.00 | 1,800.00 | 18,000.00 | ||
11 | SUM | 50,400.00 | |||||||||||
12 | 1 | 16/09/2023 | CCF-1001 | BSTR_23452 | PAID | BS 1200R20 | G580 | JAP | 4.00 | 1,800.00 | 7,200.00 | ||
13 | SUM | 7,200.00 | |||||||||||
14 | 1 | 16/09/2023 | BSTR_23453 | OUTSANDING | BS 1200R20 | G580 | JAP | 3.00 | 1,880.00 | 5,640.00 | |||
15 | SUM | CCF-1001 | 5,640.00 | ||||||||||
SV |
DECREASE.xlsm | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | ITEM | DATE | CUSTOMERS | INV.NO | CASE | BRAND | TYPE | ORIGIN | QTY | PRICE | BALANCE | ||
2 | 1 | 15/06/2023 | CCF-1000 | BSJ_23444 | OUTSANDING | BS 215/60R16 | ER30 | JAP | 4.00 | 430.00 | 1,720.00 | ||
3 | SUM | CCF-1000 | OUTSANDING | 1,720.00 | |||||||||
4 | 1 | 15/06/2023 | BSJ_23445 | GO 1200R20 | AZ0026 | CHI | 2.00 | 955.00 | 1,910.00 | ||||
5 | SUM | 1,910.00 | |||||||||||
6 | 1 | 15/09/2023 | CCF-1000 | BSJ_23446 | PAID | GO 1200R20 | AZ0026 | CHI | 2.00 | 950.00 | 1,900.00 | ||
7 | 2 | 15/09/2023 | CCF-1000 | BSJ_23446 | PAID | GO 1200R21 | AZ0027 | CHI | 3.00 | 1,000.00 | 3,000.00 | ||
8 | SUM | 4,900.00 | |||||||||||
9 | 1 | 15/09/2023 | CCF-1002 | BSJ_23447 | PAID | BS 1200R20 | G580 | JAP | 1.00 | 2,000.00 | 2,000.00 | ||
10 | 2 | 15/09/2023 | CCF-1002 | BSJ_23447 | PAID | BS 1200R20 | G580 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
11 | 3 | 15/09/2023 | CCF-1002 | BSJ_23447 | PAID | BS 1200R20 | R187 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
12 | SUM | 6,000.00 | |||||||||||
SR |
DECREASE.xlsm | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | ITEM | DATE | CUSTOMERS | INV.NO | CASE | BRAND | TYPE | ORIGIN | QTY | PRICE | BALANCE | ||
2 | 1 | 15/06/2023 | CCF-1000 | VSTR_23444 | PAID | BS 750R16 | R230 | JAP | 1.00 | 500.00 | 500.00 | ||
3 | SUM | 500.00 | |||||||||||
4 | 1 | 15/09/2023 | CCF-1001 | VSTR_23445 | OUTSANDING | GO 1200R20 | AZ0083 | CHI | 1.00 | 1,000.00 | 1,000.00 | ||
5 | SUM | 1,000.00 | |||||||||||
6 | 1 | 15/09/2023 | CCF-1000 | VSTR_23446 | OUTSANDING | BS 1200R20 | G580 | JAP | 1.00 | 1,800.00 | 1,800.00 | ||
7 | 2 | 15/09/2023 | CCF-1000 | VSTR_23446 | OUTSANDING | BS 1200R20 | G580 | THI | 1.00 | 1,800.00 | 1,800.00 | ||
8 | SUM | 3,600.00 | |||||||||||
9 | 1 | 16/09/2023 | CCF-1003 | VSTR_23447 | PAID | BS 215/60R16 | ER30 | JAP | 4.00 | 400.00 | 1,600.00 | ||
10 | SUM | 1,600.00 | |||||||||||
11 | 1 | 16/09/2023 | CCF-1002 | VSTR_23448 | PAID | BS 1200R20 | G580 | JAP | 4.00 | 1,800.00 | 7,200.00 | ||
12 | SUM | 7,200.00 | |||||||||||
13 | 1 | 16/09/2023 | CCF-1000 | VSTR_23449 | PAID | BS 1200R20 | G580 | JAP | 2.00 | 1,880.00 | 3,760.00 | ||
14 | SUM | 3,760.00 | |||||||||||
VS |
DECREASE.xlsm | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | ITEM | DATE | CUSTOMERS | INV.NO | BRAND | TYPE | ORIGIN | QTY | PRICE | BALANCE | |||
2 | 1 | 10/06/2023 | CCF-1000 | RSS_23222 | OUTSANDING | BS 215/60R16 | ER30 | JAP | 2.00 | 430.00 | 860.00 | ||
3 | SUM | 860.00 | |||||||||||
4 | 1 | 10/06/2023 | CCF-1004 | BSJ_23445 | OUTSANDING | GO 1200R20 | AZ0026 | CHI | 1.00 | 955.00 | 955.00 | ||
5 | SUM | 955.00 | |||||||||||
6 | 1 | 15/09/2023 | CCF-1000 | BSJ_23446 | PAID | GO 1200R20 | AZ0026 | CHI | 1.00 | 950.00 | 950.00 | ||
7 | 2 | 15/09/2023 | CCF-1000 | BSJ_23446 | PAID | GO 1200R21 | AZ0027 | CHI | 2.00 | 1,000.00 | 2,000.00 | ||
8 | SUM | 2,950.00 | |||||||||||
RS |
DECREASE.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | DATE | CUSTOMERS | CASE | BALANCE | ||
2 | 15/06/2023 | CCF-1000 | RVCH20000 | 30,000.00 | ||
3 | 16/06/2023 | CCF-1001 | RVCH20001 | 25,000.00 | ||
4 | 17/06/2023 | CCF-1000 | RVCH20002 | 10,000.00 | ||
5 | 18/06/2023 | CCF-1003 | RVCH20003 | 1,200.00 | ||
6 | 15/09/2023 | CCF-1004 | VCH20004 | 4,000.00 | ||
7 | 15/09/2023 | CCF-1000 | VCH20005 | 15,000.00 | ||
8 | 15/09/2023 | CCF-1006 | VCH20006 | 17,000.00 | ||
9 | 16/09/2023 | CCF-1007 | VCH20007 | 18,000.00 | ||
10 | 17/09/2023 | CCF-1008 | VCH20008 | 1,200.00 | ||
11 | 18/09/2023 | CCF-1009 | VCH20009 | 1,300.00 | ||
12 | 19/09/2023 | CCF-1010 | RVCH 20010 | 1,400.00 | ||
13 | 20/09/2023 | RVCH 20011 | 1,500.00 | |||
RECEIPT |
when select CCF-1000 from combobox1 then should some steps:
1- brings balance in column F from sheet BALANCES as show in row2 under headers in listbox 1 if the amount is minus then should put in CREDIT column and the same amount put in BALANCE column as show in listbox1(if the he amount is positive then should put in DEBIT column and the same amount put in BALANCE column)
2- for RS sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the OUTSTANDING word is existed in CASE column then will put amount in column CREDIT and the calculation in BALANCE will be the first balance in row2 + next row in DEBIT column - CREDIT column like this -500+0-860=1360
3- for SV sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the OUTSTANDING word is existed in CASE column then will put amount in column CREDIT and the calculation in BALANCE will be the first balance in row3 + next row in DEBIT column - CREDIT column like this -1360+0-2300=-3660
4- for SR sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the OUTSTANDING word is existed in CASE column then will put amount in column DEBIT and the calculation in BALANCE will be the first balance in row4+ next row in DEBIT column - CREDIT column like this -3660+1720-0=-1940
5-for VS sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the PAID word is existed in CASE column then will put amount in column CREDIT and the calculation in BALANCE will be the first balance in row5 + next row in DEBIT column - CREDIT column like this -1940+0-500=-2440
6- for RECEIPT brings amount from BALANCE column and match PART of item "RVCH" in CASE column then will put in DEBIT column like this
-2440+30000-0=27560 another process for the same sheet will be= 27560+10000-0= 37560
7- for SV sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the PAID word is existed in CASE column then will put amount in column DEBIT and the calculation in BALANCE will be the first balance in row8 + next row in DEBIT column - CREDIT column like this 37560+50400-0=86040
8- for SR sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the PAID word is existed in CASE column then will put amount in column CREDIT and the calculation in BALANCE will be the first balance in row9 + next row in DEBIT column - CREDIT column like this 86040+0-4900=-81140
9-for VS sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the OUTSTANDING word is existed in CASE column then will put amount in column DEBIT and the calculation in BALANCE will be the first balance in row10 + next row in DEBIT column - CREDIT column like this 81140+3600-0=84740
10- for RS sheet brings amount from SUM row in column K based on OUTSTANDING,PAID . if the PAID word is existed in CASE column then will put amount in column DEBIT and the calculation in BALANCE will be the first balance in row11 + next row in DEBIT column - CREDIT column like this 84740+2950-0=87690
11- for RECEIPT brings amount from BALANCE column and match PART of item "VCH" in CASE column then will put in CREDIT column like this
87690+0-15000=72690
moreover should insert SUM roe to sum column DEBIT,CREDIT and subtract column DEBIT from CREDIT and show BALANCE column .
without forgetting the data could be 9000 rows for each sheet.
here is picture to show and calculation for selected customer from combobox2
last thing I would show formatting number like"#,##0.00"
also should show - for empty digits in column DEBIT,CREDIT and if the BALANCE column is zero for any row should also show hyphen instead of zero.
thanks