abdo meghari
Well-known Member
- Joined
- Aug 3, 2021
- Messages
- 573
- Office Version
- 2019
Hello
I search for way to hide & unhide rows within range at once based on double click cell in A20 if range B;F is empty
so if I double click cell in A20 then will hide rows after row 20 except TOTAL row and empty range(B:F)
example:
when double click in cell A20 then should be
and if I want to return showing rows when double click in A20 again
then should be
thanks
I search for way to hide & unhide rows within range at once based on double click cell in A20 if range B;F is empty
so if I double click cell in A20 then will hide rows after row 20 except TOTAL row and empty range(B:F)
example:
فاتورة.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
20 | ITEM | BRAND | TYPE | ORIGIN | QTY | PRICE | TOTAL | ||
21 | 1 | BS 1200R20 | G580 | JAP | 11.00 | 12.00 | 132.00 | ||
22 | 2 | 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 | TOTAL | 132.00 | |||||||
فاتورة |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G21:G46 | G21 | =E21*F21 |
G47 | G47 | =SUM(G21:G46) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B26 | List | BS 1200R20;BS 700R16;BS 315/80R22.5;BS 315/80RR.5;BS 225/55R16;BS 205/70R15C;BS 215/70R15C;FR 215/75R15;BS 255/70R15C ;GO 315/80R22.5;TQ 195/65R15;KB 215/70R15C;WS 285/70R19.5;GO 1200R20;FU 265/75R16;VAR 70A;AUTO 68A;XPRO 70A;XPRO 60A;Q8 10W-40;LIQ 10W-40 |
B21:B22 | List | BS 1200R20;BS 700R16;BS 315/80R22.5;BS 315/80RR.5;BS 225/55R16;BS 205/70R15C;BS 215/70R15C;FR 215/75R15;BS 255/70R15C ;GO 315/80R22.5;TQ 195/65R15;KB 215/70R15C;WS 285/70R19.5;GO 1200R20;FU 265/75R16;VAR 70A;AUTO 68A;XPRO 70A;XPRO 60A;Q8 10W-40;LIQ 10W-40 |
C21 | List | G580;R187 |
D21 | List | JAP |
when double click in cell A20 then should be
Cell Formulas | ||
---|---|---|
Range | Formula | |
G21 | G21 | =E21*F21 |
G47 | G47 | =SUM(G21:G46) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B21:B22 | List | BS 1200R20;BS 700R16;BS 315/80R22.5;BS 315/80RR.5;BS 225/55R16;BS 205/70R15C;BS 215/70R15C;FR 215/75R15;BS 255/70R15C ;GO 315/80R22.5;TQ 195/65R15;KB 215/70R15C;WS 285/70R19.5;GO 1200R20;FU 265/75R16;VAR 70A;AUTO 68A;XPRO 70A;XPRO 60A;Q8 10W-40;LIQ 10W-40 |
C21 | List | G580;R187 |
D21 | List | JAP |
and if I want to return showing rows when double click in A20 again
then should be
in.xlsm | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
20 | ITEM | BRAND | TYPE | ORIGIN | QTY | PRICE | TOTAL | ||
21 | 1 | BS 1200R20 | G580 | JAP | 11.00 | 12.00 | 132.00 | ||
22 | 2 | 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 | TOTAL | 132.00 | |||||||
v |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G21:G46 | G21 | =E21*F21 |
G47 | G47 | =SUM(G21:G46) |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
B26 | List | BS 1200R20;BS 700R16;BS 315/80R22.5;BS 315/80RR.5;BS 225/55R16;BS 205/70R15C;BS 215/70R15C;FR 215/75R15;BS 255/70R15C ;GO 315/80R22.5;TQ 195/65R15;KB 215/70R15C;WS 285/70R19.5;GO 1200R20;FU 265/75R16;VAR 70A;AUTO 68A;XPRO 70A;XPRO 60A;Q8 10W-40;LIQ 10W-40 |
B21:B22 | List | BS 1200R20;BS 700R16;BS 315/80R22.5;BS 315/80RR.5;BS 225/55R16;BS 205/70R15C;BS 215/70R15C;FR 215/75R15;BS 255/70R15C ;GO 315/80R22.5;TQ 195/65R15;KB 215/70R15C;WS 285/70R19.5;GO 1200R20;FU 265/75R16;VAR 70A;AUTO 68A;XPRO 70A;XPRO 60A;Q8 10W-40;LIQ 10W-40 |
C21 | List | G580;R187 |
D21 | List | JAP |
thanks