Dynamic Filter using Last Column added

caraines

New Member
Joined
Jan 28, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm attempting to create a random cycle count generator and I have the foundation of it working correctly (taken from this thread Random Cycle Count Generator). However, I'm wanting to take it one step further and create a count sheet that pulls in all the items that are currently warehoused in the randomly selected locations.

The random location generator adds 1 column each time the macro is run. In theory this would let me track all the locations counted over a period of time to ensure we capture everything.
(CC QUERY)
1643407531168.png


The next step is a dynamic filter using the selected to Locations to pull On Hand Inventory from a report into this table.

1643407609337.png


How do I make this filter use the last column added to the first image. I would like it to pull in the last column with data.

=FILTER('OH Inventory'!B:H,ISNUMBER(MATCH('OH Inventory'!B:B,'CC Query'!B:B,0)),"No Results Found"). I think I just need the 'CC Query'!B:B to grab the last column instead. Any help or suggestions are apprectiated.

Thanks.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,375
Messages
6,119,164
Members
448,870
Latest member
max_pedreira

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