To make a dynamic named range for the transactions, I'd use:
Transaction: ='Transaction Listing'!$A1048571:INDEX('Transaction Listing'!$N:$N,COUNTA('Transaction Listing'!$B:$B))
Normally, I'd use the key column (Column A, in this case) but your data is offset for one of the entries (row 8) so I've used column B. It actually generates a larger range than I had anticipated due to the formula in column B.
You'd be better defining the transaction data as a Table because formatting and formulae will automatically be copied to new rows.
You need a Worksheet Change event monitoring the Invoice Number:
That runs an Advanced Filter when the WSC event is fired. To make this work, you need to match the headings in the transaction list to those in the Invoice, or vice versa.
And you really need to provide an invoice list that can be used in Data Validation in cell C4.
See your example workbook updated.
Regards, TMS
Bookmarks