abdo meghari
Well-known Member
- Joined
- Aug 3, 2021
- Messages
- 612
- Office Version
- 2019
Hi
in INVOICE sheet I will write invoice number into G6 and should match with column D in SALES or PURCHASE sheet then should populate details in INVOICE sheet and when I try to change data then should update for the target sheet and invoice no .
example : invoice no BSJ_23444 for SALES sheet when I write in G6 then will be
step1
RESULT
step 2
will populate data
step3 when I change data(I highlighted by yellow color changed data)
should change in SALES sheet for highlighted yellow cells.
as you see when change data in invoice sheet I add new item then should insert row for new item before sum row .
another example
when write BSJ_23447 in G6 then should populate data
when I change data as highlighted cells with delete item then will be
and when change data in SALES invoice will be
as you see will delete the item from sales sheet based on change INVOICE sheet
and when change date, invoice number and client then will repeat until sum row
after that I will delete clearcontents cells except cells contains formulas
thanks
in INVOICE sheet I will write invoice number into G6 and should match with column D in SALES or PURCHASE sheet then should populate details in INVOICE sheet and when I try to change data then should update for the target sheet and invoice no .
INV.xlsb | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | ITEM | DATE | CLIENT | INV.NO | BRAND | TYPE | ORIGIN | QTY | PRICE | TOTAL | ||
2 | 1 | 10/06/2023 | CFGT100 | BSJ_23444 | BS 215/60R16 | ER30 | JAP | 4.00 | 430.00 | 1,720.00 | ||
3 | SUM | 10/06/2023 | CFGT100 | BSJ_23444 | 1,720.00 | |||||||
4 | 1 | 10/06/2023 | CFGT101 | BSJ_23445 | GO 1200R20 | AZ0026 | CHI | 2.00 | 955.00 | 1,910.00 | ||
5 | SUM | 10/06/2023 | CFGT101 | BSJ_23445 | 1,910.00 | |||||||
6 | 1 | 15/09/2023 | CFGT102 | BSJ_23446 | GO 1200R20 | AZ0026 | CHI | 2.00 | 950.00 | 1,900.00 | ||
7 | 2 | 15/09/2023 | CFGT102 | BSJ_23446 | GO 1200R21 | AZ0027 | CHI | 3.00 | 1,000.00 | 3,000.00 | ||
8 | SUM | 15/09/2023 | CFGT102 | BSJ_23446 | 4,900.00 | |||||||
9 | 1 | 15/09/2023 | CFGT103 | BSJ_23447 | BS 1200R20 | G580 | JAP | 1.00 | 2,000.00 | 2,000.00 | ||
10 | 2 | 15/09/2023 | CFGT103 | BSJ_23447 | BS 1200R20 | G580 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
11 | 3 | 15/09/2023 | CFGT103 | BSJ_23447 | BS 1200R20 | R187 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
12 | SUM | 15/09/2023 | CFGT103 | BSJ_23447 | 6,000.00 | |||||||
SALES |
INV.xlsb | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | ITEM | DATE | CLIENT | INV.NO | BRAND | TYPE | ORIGIN | QTY | PRICE | TOTAL | ||
2 | 1 | 15/06/2023 | PTTY-001 | BSTR_23448 | BS 750R16 | R230 | JAP | 4.00 | 500.00 | 2,000.00 | ||
3 | 2 | 15/06/2023 | PTTY-001 | BSTR_23448 | BS 700R16 | R230 | JAP | 2.00 | 400.00 | 800.00 | ||
4 | SUM | 15/06/2023 | PTTY-001 | BSTR_23448 | 2,800.00 | |||||||
5 | 1 | 15/09/2023 | PTTY-002 | BSTR_23449 | GO 1200R20 | AZ0026 | CHI | 1.00 | 920.00 | 920.00 | ||
6 | 2 | 15/09/2023 | PTTY-002 | BSTR_23449 | GO 1200R20 | AZ0083 | CHI | 2.00 | 1,000.00 | 2,000.00 | ||
7 | SUM | 15/09/2023 | PTTY-002 | BSTR_23449 | 2,920.00 | |||||||
8 | 1 | 15/09/2023 | PTTY-003 | BSTR_23450 | BS 1200R20 | G580 | JAP | 1.00 | 1,800.00 | 1,800.00 | ||
9 | 2 | 15/09/2023 | PTTY-003 | BSTR_23450 | BS 1200R20 | G580 | THI | 1.00 | 1,800.00 | 1,800.00 | ||
10 | 3 | 15/09/2023 | PTTY-003 | BSTR_23450 | BS 1200R20 | R187 | THI | 1.00 | 1,800.00 | 1,800.00 | ||
11 | SUM | 15/09/2023 | PTTY-003 | BSTR_23450 | 5,400.00 | |||||||
PURCHASE |
example : invoice no BSJ_23444 for SALES sheet when I write in G6 then will be
step1
INV.xlsb | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
3 | PR_00001 | DATE | |||||||
4 | PR_00001 | ||||||||
5 | INVOICE NO | ||||||||
6 | BSJ_23444 | ||||||||
7 | CLIENT | ||||||||
8 | |||||||||
9 | DEBTS | ||||||||
10 | |||||||||
11 | |||||||||
12 | TO : | ||||||||
13 | ADDRESS : | ||||||||
14 | PHONE : | ||||||||
15 | |||||||||
16 | |||||||||
17 | |||||||||
18 | |||||||||
19 | |||||||||
20 | ITEM | BRAND | TYPE | ORIGIN | QTY | UNIT PRICE | TOTAL | ||
21 | 0.00 | ||||||||
22 | 0.00 | ||||||||
23 | 0.00 | ||||||||
24 | 0.00 | ||||||||
25 | 0.00 | ||||||||
26 | 0.00 | ||||||||
27 | 0.00 | ||||||||
28 | sum | 0.00 | |||||||
INVOICE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G21:G27 | G21 | =E21*F21 |
G28 | G28 | =SUM(G21:G27) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
F8:G8 | List | #N/A |
B21:B26 | List | #N/A |
C21:C22 | List | AZ0026;AZ0183 |
D21 | List | KOR |
D22:D25 | List | CHI |
C23:C24 | List | ATZ161;AZ126;AZ188 |
C25 | List | AZ166 |
C26 | List | H005;D687 |
D26 | List | JAP |
RESULT
step 2
will populate data
INV.xlsb | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
3 | PR_00001 | DATE | |||||||
4 | PR_00001 | 2023/06/10 | |||||||
5 | INVOICE NO | ||||||||
6 | BSJ_23444 | ||||||||
7 | RECEIVED NAME | ||||||||
8 | CFGT100 | ||||||||
9 | DEBTS | ||||||||
10 | |||||||||
11 | |||||||||
12 | TO : | ||||||||
13 | ADDRESS : | ||||||||
14 | PHONE : | ||||||||
15 | |||||||||
16 | |||||||||
17 | |||||||||
18 | |||||||||
19 | |||||||||
20 | ITEM | BRAND | TYPE | ORIGIN | QTY | UNIT PRICE | TOTAL | ||
21 | 1 | BS 215/60R16 | ER30 | JAP | 4.00 | 430.00 | 1,720.00 | ||
22 | 0.00 | ||||||||
23 | 0.00 | ||||||||
24 | 0.00 | ||||||||
25 | 0.00 | ||||||||
26 | 0.00 | ||||||||
27 | 0.00 | ||||||||
28 | 0.00 | ||||||||
29 | 0.00 | ||||||||
30 | 0.00 | ||||||||
31 | 0.00 | ||||||||
32 | 0.00 | ||||||||
33 | 0.00 | ||||||||
34 | 0.00 | ||||||||
35 | 0.00 | ||||||||
36 | 0.00 | ||||||||
37 | 0.00 | ||||||||
38 | 0.00 | ||||||||
39 | 0.00 | ||||||||
40 | 0.00 | ||||||||
41 | 0.00 | ||||||||
42 | 0.00 | ||||||||
43 | 0.00 | ||||||||
44 | 0.00 | ||||||||
45 | 0.00 | ||||||||
46 | 0.00 | ||||||||
47 | 0.00 | ||||||||
48 | 0.00 | ||||||||
49 | 0.00 | ||||||||
50 | 0.00 | ||||||||
51 | sum | 1,720.00 | |||||||
INVOICE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G21:G50 | G21 | =E21*F21 |
G51 | G51 | =SUM(G21:G50) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B33 | List | #N/A |
B22:B29 | List | #N/A |
D22:D25 | List | CHI |
D26 | List | JAP |
D27 | List | JAP;THI |
D28 | List | CHI |
C23:C24 | List | ATZ161;AZ126;AZ188 |
C25 | List | AZ166 |
C26 | List | H005;D687 |
C27 | List | G580;R187 |
C28 | List | ATZ161;AZ126;AZ188 |
F8 | List | #N/A |
G8 | List | CFGT100;VBGTY;NBHYT;VFGH;GHYT;GFRT;GHT5;ERWQ; |
B21 | List | BS 1200R20;GO 1200R20;BS 1200R24;GO 1200R24;GD 13R22.5;BS 13R22.5;BS 1400R20 ;OZKA 16.0/70-20;OS 23.5R25;TR 23.5R25;23.5-25;28x9-15 ;MS 31-10.5R15;GD 31x10.5R15;BS 315/80R22.5;DT 315/80RR.5;NP 315/80RR.5;GO 315/80R22.5;TY35×12.5R17;BS 385/65R22.5;405/70-20;TQ 175/65R14;KM 185/65R14;MS 185/70R14;WL 185/70R14;TQ 195R14C;CF 195/65R15;TQ 195/65R15;KM 195/65R15;WL 195/65R15;BS 195/60R15;BS 225/55R16;LS 205R14;BS 205/70R15C;KM 205/70R15C;BS 205R16C;TQ 205/60R16 ;KM 205/60R15;OV 205/65R16;TQ 215/50R17;BS 215/55R17;WL 215/55R17;KM 215/55R17;KM 215/60R16;BS 215/60R16;KM 215/60R17;BS 215/70R15C;BS 215/70R16;KM 225/50R17;BS 225/60R18;BS 225/60R16;HL 225/60R16;YH 225/60R16;KM 225/65R17;BS 225/70R16;BS 225/70R17;KM 225/70R15C;KM 215/65R16;WL 215/65R15;FR 215/75R15;WL 215/75R15;KM 215/75R15;KM 225/55R17;ALFA 225/60R16 ;TY 225/45ZR19;BS 225/95R16C;KM 235/55R17 ;KM 235/55R18 ;KM 235/55R19 ;MS 235/55R19;KM 235/60R16 ;DK 235/60ZR16;KM 235/60R17 ;KM 235/60R18 ;KM 235/65R17 ;MS 235/55R17;MS 235/75R16;KM 235/75R15;BS 235/55R17 ;KM 245/45R18 ;KM 245/70R17 ;KM 245/60R18;KM 245/75R16 ;TY 245/75R16;PF 245/75R16;TY 255/40ZR19;BS 255/70R15C ;KM 265/75R16;MS 265/75R16;TQ 265/75R16C;SF 265/60R18;BS 265/60R18;DL 265/65R17;MS 265/65R17;KM 265/65R17;HL 265/70R16 ;DL 265/70R17;BS 265/70R18;CN 275/45R21;BS 275/55R20;BS 285/50R20;BS 285/60R18;DL 285/60R18;YH 285/60R18;CO 295/40R22.5;KB 215/70R15C;WS 285/70R19.5;TQ 265/70R16;CN 315/40R21;BS 650R16;BS 700R16;BS 750R16;DL 750R16;FU 265/75R16;DL285/50R20;DONG 14.9-24 ;VAR 60A;VAR 70A;VAR 100A;VAR 90A;AUTO 68A;AUTO 55A;AUTO 70A;AUTO 90A;AUTO 180A;AUTO 60A LOW;AUTO 60A;AUTO 91A;AUTO 155A;AUTO 100A;AS 70A;XPRO 70A;XPRO 45A;XPRO 60A;XPRO 100A;XPRO 150A;QS 150A;QS 70A;QS 35A;Q8 10W-40;LIQ 10W-40;AS 40A;MASTER 55A;CRYSTAL 45A;VEGA 55AH ;VEGA 70AH ;VEGA 150AH ;VEGA 66AH ;VEGA 74AH ;PROLITE 55A;PROLITE 180A |
C21 | List | ER30 |
D21 | List | JAP |
step3 when I change data(I highlighted by yellow color changed data)
INV.xlsb | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
3 | PR_00001 | DATE | |||||||
4 | PR_00001 | 2023/06/11 | |||||||
5 | INVOICE NO | ||||||||
6 | BSJ_23444 | ||||||||
7 | RECEIVED NAME | ||||||||
8 | CFGT1001 | ||||||||
9 | DEBTS | ||||||||
10 | |||||||||
11 | |||||||||
12 | TO : | ||||||||
13 | ADDRESS : | ||||||||
14 | PHONE : | ||||||||
15 | |||||||||
16 | |||||||||
17 | |||||||||
18 | |||||||||
19 | |||||||||
20 | ITEM | BRAND | TYPE | ORIGIN | QTY | UNIT PRICE | TOTAL | ||
21 | 1 | KM 215/60R17 | PS71 | KOR | 2.00 | 330.00 | 660.00 | ||
22 | 2 | GO 1200R20 | AZ0026 | CHI | 1.00 | 980.00 | 980.00 | ||
23 | 0.00 | ||||||||
24 | 0.00 | ||||||||
25 | 0.00 | ||||||||
26 | 0.00 | ||||||||
27 | 0.00 | ||||||||
28 | 0.00 | ||||||||
29 | 0.00 | ||||||||
30 | 0.00 | ||||||||
31 | 0.00 | ||||||||
32 | 0.00 | ||||||||
33 | 0.00 | ||||||||
34 | 0.00 | ||||||||
35 | 0.00 | ||||||||
36 | 0.00 | ||||||||
37 | 0.00 | ||||||||
38 | 0.00 | ||||||||
39 | 0.00 | ||||||||
40 | 0.00 | ||||||||
41 | 0.00 | ||||||||
42 | 0.00 | ||||||||
43 | 0.00 | ||||||||
44 | 0.00 | ||||||||
45 | 0.00 | ||||||||
46 | 0.00 | ||||||||
47 | 0.00 | ||||||||
48 | 0.00 | ||||||||
49 | 0.00 | ||||||||
50 | 0.00 | ||||||||
51 | sum | 1,640.00 | |||||||
INVOICE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G21:G50 | G21 | =E21*F21 |
G51 | G51 | =SUM(G21:G50) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B33 | List | #N/A |
B23:B29 | List | #N/A |
C28 | List | ATZ161;AZ126;AZ188 |
D26 | List | JAP |
D27 | List | JAP;THI |
D28 | List | CHI |
C23:C24 | List | ATZ161;AZ126;AZ188 |
C25 | List | AZ166 |
B21:B22 | List | BS 1200R20;GO 1200R20;BS 1200R24;GO 1200R24;GD 13R22.5;BS 13R22.5;BS 1400R20 ;OZKA 16.0/70-20;OS 23.5R25;TR 23.5R25;23.5-25;28x9-15 ;MS 31-10.5R15;GD 31x10.5R15;BS 315/80R22.5;DT 315/80RR.5;NP 315/80RR.5;GO 315/80R22.5;TY35×12.5R17;BS 385/65R22.5;405/70-20;TQ 175/65R14;KM 185/65R14;MS 185/70R14;WL 185/70R14;TQ 195R14C;CF 195/65R15;TQ 195/65R15;KM 195/65R15;WL 195/65R15;BS 195/60R15;BS 225/55R16;LS 205R14;BS 205/70R15C;KM 205/70R15C;BS 205R16C;TQ 205/60R16 ;KM 205/60R15;OV 205/65R16;TQ 215/50R17;BS 215/55R17;WL 215/55R17;KM 215/55R17;KM 215/60R16;BS 215/60R16;KM 215/60R17;BS 215/70R15C;BS 215/70R16;KM 225/50R17;BS 225/60R18;BS 225/60R16;HL 225/60R16;YH 225/60R16;KM 225/65R17;BS 225/70R16;BS 225/70R17;KM 225/70R15C;KM 215/65R16;WL 215/65R15;FR 215/75R15;WL 215/75R15;KM 215/75R15;KM 225/55R17;ALFA 225/60R16 ;TY 225/45ZR19;BS 225/95R16C;KM 235/55R17 ;KM 235/55R18 ;KM 235/55R19 ;MS 235/55R19;KM 235/60R16 ;DK 235/60ZR16;KM 235/60R17 ;KM 235/60R18 ;KM 235/65R17 ;MS 235/55R17;MS 235/75R16;KM 235/75R15;BS 235/55R17 ;KM 245/45R18 ;KM 245/70R17 ;KM 245/60R18;KM 245/75R16 ;TY 245/75R16;PF 245/75R16;TY 255/40ZR19;BS 255/70R15C ;KM 265/75R16;MS 265/75R16;TQ 265/75R16C;SF 265/60R18;BS 265/60R18;DL 265/65R17;MS 265/65R17;KM 265/65R17;HL 265/70R16 ;DL 265/70R17;BS 265/70R18;CN 275/45R21;BS 275/55R20;BS 285/50R20;BS 285/60R18;DL 285/60R18;YH 285/60R18;CO 295/40R22.5;KB 215/70R15C;WS 285/70R19.5;TQ 265/70R16;CN 315/40R21;BS 650R16;BS 700R16;BS 750R16;DL 750R16;FU 265/75R16;DL285/50R20;DONG 14.9-24 ;VAR 60A;VAR 70A;VAR 100A;VAR 90A;AUTO 68A;AUTO 55A;AUTO 70A;AUTO 90A;AUTO 180A;AUTO 60A LOW;AUTO 60A;AUTO 91A;AUTO 155A;AUTO 100A;AS 70A;XPRO 70A;XPRO 45A;XPRO 60A;XPRO 100A;XPRO 150A;QS 150A;QS 70A;QS 35A;Q8 10W-40;LIQ 10W-40;AS 40A;MASTER 55A;CRYSTAL 45A;VEGA 55AH ;VEGA 70AH ;VEGA 150AH ;VEGA 66AH ;VEGA 74AH ;PROLITE 55A;PROLITE 180A |
C21 | List | PS71 |
D21 | List | KOR |
C22 | List | AZ0026;AZ0183 |
D22:D25 | List | CHI |
F8 | List | #N/A |
G8 | List | CFGT1001;VBGTY;NBHYT;VFGH;GHYT;GFRT;GHT5;ERWQ; |
should change in SALES sheet for highlighted yellow cells.
INV.xlsb | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | ITEM | DATE | CLIENT | INV.NO | BRAND | TYPE | ORIGIN | QTY | PRICE | TOTAL | ||
2 | 1 | 11/06/2023 | CFGT1001 | BSJ_23444 | KM 215/60R17 | PS71 | KOR | 2.00 | 330.00 | 660.00 | ||
3 | 2 | 11/06/2023 | CFGT1001 | BSJ_23444 | GO 1200R20 | AZ0026 | CHI | 1.00 | 980.00 | 980.00 | ||
4 | SUM | 11/06/2023 | CFGT1001 | BSJ_23444 | 1,640.00 | |||||||
SALES |
as you see when change data in invoice sheet I add new item then should insert row for new item before sum row .
another example
when write BSJ_23447 in G6 then should populate data
INV.xlsb | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
3 | PR_00001 | DATE | |||||||
4 | PR_00001 | 2023/09/15 | |||||||
5 | INVOICE NO | ||||||||
6 | BSJ_23447 | ||||||||
7 | RECEIVED NAME | ||||||||
8 | CFGT103 | ||||||||
9 | DEBTS | ||||||||
10 | |||||||||
11 | |||||||||
12 | TO : | ||||||||
13 | ADDRESS : | ||||||||
14 | PHONE : | ||||||||
15 | |||||||||
16 | |||||||||
17 | |||||||||
18 | |||||||||
19 | |||||||||
20 | ITEM | BRAND | TYPE | ORIGIN | QTY | UNIT PRICE | TOTAL | ||
21 | 1 | BS 1200R20 | G580 | JAP | 1.00 | 2,000.00 | 2,000.00 | ||
22 | 2 | BS 1200R20 | G580 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
23 | 3 | BS 1200R20 | R187 | JAP | 1.00 | 2,000.00 | 2,000.00 | ||
24 | 0.00 | ||||||||
25 | 0.00 | ||||||||
26 | 0.00 | ||||||||
27 | 0.00 | ||||||||
28 | 0.00 | ||||||||
29 | 0.00 | ||||||||
30 | 0.00 | ||||||||
31 | 0.00 | ||||||||
32 | 0.00 | ||||||||
33 | 0.00 | ||||||||
34 | sum | 6,000.00 | |||||||
INVOICE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G21:G33 | G21 | =E21*F21 |
G34 | G34 | =SUM(G21:G33) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B33 | List | #N/A |
B24:B29 | List | #N/A |
D28 | List | CHI |
D24:D25 | List | CHI |
B21:B23 | List | BS 1200R20;GO 1200R20;BS 1200R24;GO 1200R24;GD 13R22.5;BS 13R22.5;BS 1400R20 ;OZKA 16.0/70-20;OS 23.5R25;TR 23.5R25;23.5-25;28x9-15 ;MS 31-10.5R15;GD 31x10.5R15;BS 315/80R22.5;DT 315/80RR.5;NP 315/80RR.5;GO 315/80R22.5;TY35×12.5R17;BS 385/65R22.5;405/70-20;TQ 175/65R14;KM 185/65R14;MS 185/70R14;WL 185/70R14;TQ 195R14C;CF 195/65R15;TQ 195/65R15;KM 195/65R15;WL 195/65R15;BS 195/60R15;BS 225/55R16;LS 205R14;BS 205/70R15C;KM 205/70R15C;BS 205R16C;TQ 205/60R16 ;KM 205/60R15;OV 205/65R16;TQ 215/50R17;BS 215/55R17;WL 215/55R17;KM 215/55R17;KM 215/60R16;BS 215/60R16;KM 215/60R17;BS 215/70R15C;BS 215/70R16;KM 225/50R17;BS 225/60R18;BS 225/60R16;HL 225/60R16;YH 225/60R16;KM 225/65R17;BS 225/70R16;BS 225/70R17;KM 225/70R15C;KM 215/65R16;WL 215/65R15;FR 215/75R15;WL 215/75R15;KM 215/75R15;KM 225/55R17;ALFA 225/60R16 ;TY 225/45ZR19;BS 225/95R16C;KM 235/55R17 ;KM 235/55R18 ;KM 235/55R19 ;MS 235/55R19;KM 235/60R16 ;DK 235/60ZR16;KM 235/60R17 ;KM 235/60R18 ;KM 235/65R17 ;MS 235/55R17;MS 235/75R16;KM 235/75R15;BS 235/55R17 ;KM 245/45R18 ;KM 245/70R17 ;KM 245/60R18;KM 245/75R16 ;TY 245/75R16;PF 245/75R16;TY 255/40ZR19;BS 255/70R15C ;KM 265/75R16;MS 265/75R16;TQ 265/75R16C;SF 265/60R18;BS 265/60R18;DL 265/65R17;MS 265/65R17;KM 265/65R17;HL 265/70R16 ;DL 265/70R17;BS 265/70R18;CN 275/45R21;BS 275/55R20;BS 285/50R20;BS 285/60R18;DL 285/60R18;YH 285/60R18;CO 295/40R22.5;KB 215/70R15C;WS 285/70R19.5;TQ 265/70R16;CN 315/40R21;BS 650R16;BS 700R16;BS 750R16;DL 750R16;FU 265/75R16;DL285/50R20;DONG 14.9-24 ;VAR 60A;VAR 70A;VAR 100A;VAR 90A;AUTO 68A;AUTO 55A;AUTO 70A;AUTO 90A;AUTO 180A;AUTO 60A LOW;AUTO 60A;AUTO 91A;AUTO 155A;AUTO 100A;AS 70A;XPRO 70A;XPRO 45A;XPRO 60A;XPRO 100A;XPRO 150A;QS 150A;QS 70A;QS 35A;Q8 10W-40;LIQ 10W-40;AS 40A;MASTER 55A;CRYSTAL 45A;VEGA 55AH ;VEGA 70AH ;VEGA 150AH ;VEGA 66AH ;VEGA 74AH ;PROLITE 55A;PROLITE 180A |
C21:C23 | List | G580;R187 |
D21:D22 | List | JAP;THI |
D23 | List | JAP |
C25 | List | AZ166 |
F8 | List | #N/A |
G8 | List | CFGT1001;CFGT103;NBHYT;VFGH;GHYT;GFRT;GHT5;ERWQ; |
when I change data as highlighted cells with delete item then will be
INV.xlsb | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
3 | PR_00001 | DATE | |||||||
4 | PR_00001 | 2023/09/16 | |||||||
5 | INVOICE NO | ||||||||
6 | BSJ_234471 | ||||||||
7 | RECEIVED NAME | ||||||||
8 | CFGT1031 | ||||||||
9 | DEBTS | ||||||||
10 | |||||||||
11 | |||||||||
12 | TO : | ||||||||
13 | ADDRESS : | ||||||||
14 | PHONE : | ||||||||
15 | |||||||||
16 | |||||||||
17 | |||||||||
18 | |||||||||
19 | |||||||||
20 | ITEM | BRAND | TYPE | ORIGIN | QTY | UNIT PRICE | TOTAL | ||
21 | 1 | BS 1200R20 | G580 | JAP | 10.00 | 2,000.00 | 20,000.00 | ||
22 | 2 | BS 1200R20 | G580 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
23 | 0.00 | ||||||||
24 | 0.00 | ||||||||
25 | 0.00 | ||||||||
26 | 0.00 | ||||||||
27 | 0.00 | ||||||||
28 | 0.00 | ||||||||
29 | 0.00 | ||||||||
30 | 0.00 | ||||||||
31 | 0.00 | ||||||||
32 | 0.00 | ||||||||
33 | sum | 22,000.00 | |||||||
INVOICE |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G21:G32 | G21 | =E21*F21 |
G33 | G33 | =SUM(G21:G32) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B32 | List | #N/A |
B23:B28 | List | #N/A |
D27 | List | CHI |
D23:D24 | List | CHI |
B21:B22 | List | BS 1200R20;GO 1200R20;BS 1200R24;GO 1200R24;GD 13R22.5;BS 13R22.5;BS 1400R20 ;OZKA 16.0/70-20;OS 23.5R25;TR 23.5R25;23.5-25;28x9-15 ;MS 31-10.5R15;GD 31x10.5R15;BS 315/80R22.5;DT 315/80RR.5;NP 315/80RR.5;GO 315/80R22.5;TY35×12.5R17;BS 385/65R22.5;405/70-20;TQ 175/65R14;KM 185/65R14;MS 185/70R14;WL 185/70R14;TQ 195R14C;CF 195/65R15;TQ 195/65R15;KM 195/65R15;WL 195/65R15;BS 195/60R15;BS 225/55R16;LS 205R14;BS 205/70R15C;KM 205/70R15C;BS 205R16C;TQ 205/60R16 ;KM 205/60R15;OV 205/65R16;TQ 215/50R17;BS 215/55R17;WL 215/55R17;KM 215/55R17;KM 215/60R16;BS 215/60R16;KM 215/60R17;BS 215/70R15C;BS 215/70R16;KM 225/50R17;BS 225/60R18;BS 225/60R16;HL 225/60R16;YH 225/60R16;KM 225/65R17;BS 225/70R16;BS 225/70R17;KM 225/70R15C;KM 215/65R16;WL 215/65R15;FR 215/75R15;WL 215/75R15;KM 215/75R15;KM 225/55R17;ALFA 225/60R16 ;TY 225/45ZR19;BS 225/95R16C;KM 235/55R17 ;KM 235/55R18 ;KM 235/55R19 ;MS 235/55R19;KM 235/60R16 ;DK 235/60ZR16;KM 235/60R17 ;KM 235/60R18 ;KM 235/65R17 ;MS 235/55R17;MS 235/75R16;KM 235/75R15;BS 235/55R17 ;KM 245/45R18 ;KM 245/70R17 ;KM 245/60R18;KM 245/75R16 ;TY 245/75R16;PF 245/75R16;TY 255/40ZR19;BS 255/70R15C ;KM 265/75R16;MS 265/75R16;TQ 265/75R16C;SF 265/60R18;BS 265/60R18;DL 265/65R17;MS 265/65R17;KM 265/65R17;HL 265/70R16 ;DL 265/70R17;BS 265/70R18;CN 275/45R21;BS 275/55R20;BS 285/50R20;BS 285/60R18;DL 285/60R18;YH 285/60R18;CO 295/40R22.5;KB 215/70R15C;WS 285/70R19.5;TQ 265/70R16;CN 315/40R21;BS 650R16;BS 700R16;BS 750R16;DL 750R16;FU 265/75R16;DL285/50R20;DONG 14.9-24 ;VAR 60A;VAR 70A;VAR 100A;VAR 90A;AUTO 68A;AUTO 55A;AUTO 70A;AUTO 90A;AUTO 180A;AUTO 60A LOW;AUTO 60A;AUTO 91A;AUTO 155A;AUTO 100A;AS 70A;XPRO 70A;XPRO 45A;XPRO 60A;XPRO 100A;XPRO 150A;QS 150A;QS 70A;QS 35A;Q8 10W-40;LIQ 10W-40;AS 40A;MASTER 55A;CRYSTAL 45A;VEGA 55AH ;VEGA 70AH ;VEGA 150AH ;VEGA 66AH ;VEGA 74AH ;PROLITE 55A;PROLITE 180A |
C21:C22 | List | G580;R187 |
D21:D22 | List | JAP;THI |
C24 | List | AZ166 |
F8 | List | #N/A |
G8 | List | CFGT1001;CFGT1031;NBHYT;VFGH;GHYT;GFRT;GHT5;ERWQ; |
and when change data in SALES invoice will be
INV.xlsb | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
10 | 1 | 16/09/2023 | CFGT1031 | BSJ_234471 | BS 1200R20 | G580 | JAP | 10.00 | 2,000.00 | 20,000.00 | ||
11 | 2 | 16/09/2023 | CFGT1031 | BSJ_234471 | BS 1200R20 | G580 | THI | 1.00 | 2,000.00 | 2,000.00 | ||
12 | SUM | 16/09/2023 | CFGT1031 | BSJ_234471 | 22,000.00 | |||||||
SALES |
as you see will delete the item from sales sheet based on change INVOICE sheet
and when change date, invoice number and client then will repeat until sum row
after that I will delete clearcontents cells except cells contains formulas
thanks