silvanus3805
New Member
- Joined
- Feb 21, 2022
- Messages
- 17
- Office Version
- 2016
- Platform
- Windows
Good Day,Please help Im trying to Create a Receipt That references from a table and Dynamically adjust rows, Technically i'm trying to avoid the blank cells being referenced , I need the receipt to dynamically adjust rows to only show the cells that have items,and of coarse decrease cells when items in the selection list decrease, can i please have a solution??
VBA2.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | ||||||||||||||
2 | ||||||||||||||
3 | ||||||||||||||
4 | Selections Table 1 | |||||||||||||
5 | Item | Quantity | Price | Total | Receipt no1 | |||||||||
6 | Apples | 1 | N$ 3.00 | N$ 3.00 | ||||||||||
7 | Grapes | 2 | N$ 5.00 | N$ 10.00 | ||||||||||
8 | Item | Quantity | Price | Total | ||||||||||
9 | Apples | 1 | N$ 3.00 | N$ 3.00 | ||||||||||
10 | Grapes | 2 | N$ 5.00 | N$ 10.00 | ||||||||||
11 | ||||||||||||||
12 | Total Items | 2 | ||||||||||||
13 | Total | N$ 13.00 | ||||||||||||
14 | ||||||||||||||
15 | ||||||||||||||
16 | ||||||||||||||
17 | ||||||||||||||
18 | Selections Table 2 | |||||||||||||
19 | Item | Quantity | Price | Total | Receipt no2 | |||||||||
20 | Apples | 1 | N$ 3.00 | N$ 3.00 | ||||||||||
21 | Grapes | 2 | N$ 5.00 | N$ 10.00 | ||||||||||
22 | Cheese | 1 | N$ 8.00 | N$ 8.00 | Item | Quantity | Price | Total | ||||||
23 | Meat | 1 | N$ 20.00 | N$ 20.00 | Apples | 1 | N$ 3.00 | N$ 3.00 | ||||||
24 | Soda | 1 | N$ 13.00 | N$ 13.00 | Grapes | 2 | N$ 5.00 | N$ 10.00 | ||||||
25 | Cheese | 1 | N$ 8.00 | N$ 8.00 | ||||||||||
26 | Meat | 1 | N$ 20.00 | N$ 20.00 | ||||||||||
27 | Soda | 1 | N$ 13.00 | N$ 13.00 | ||||||||||
28 | ||||||||||||||
29 | Total Items | 5 | ||||||||||||
30 | Total | N$ 33.00 | ||||||||||||
31 | ||||||||||||||
32 | ||||||||||||||
33 | ||||||||||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E6,E20 | E6 | =D6*C6 |
E7,E21:E24 | E7 | =C7*D7 |
K30 | K30 | =SUM(K26:K27) |