Excel Table Reference dynamically adjust rows

silvanus3805

New Member
Joined
Feb 21, 2022
Messages
17
Office Version
  1. 2016
Platform
  1. 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
ABCDEFGHIJKL
1
2
3
4Selections Table 1
5ItemQuantityPriceTotalReceipt no1
6Apples1N$ 3.00N$ 3.00
7Grapes2N$ 5.00N$ 10.00
8ItemQuantityPriceTotal
9Apples1N$ 3.00N$ 3.00
10Grapes2N$ 5.00N$ 10.00
11
12Total Items2
13TotalN$ 13.00
14
15
16
17
18Selections Table 2
19ItemQuantityPriceTotalReceipt no2
20Apples1N$ 3.00N$ 3.00
21Grapes2N$ 5.00N$ 10.00
22Cheese1N$ 8.00N$ 8.00ItemQuantityPriceTotal
23Meat1N$ 20.00N$ 20.00Apples1N$ 3.00N$ 3.00
24Soda1N$ 13.00N$ 13.00Grapes2N$ 5.00N$ 10.00
25Cheese1N$ 8.00N$ 8.00
26Meat1N$ 20.00N$ 20.00
27Soda1N$ 13.00N$ 13.00
28
29Total Items5
30TotalN$ 33.00
31
32
33
Sheet2
Cell Formulas
RangeFormula
E6,E20E6=D6*C6
E7,E21:E24E7=C7*D7
K30K30=SUM(K26:K27)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,214,535
Messages
6,120,090
Members
448,944
Latest member
sharmarick

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top