Hello, have a problem I'm wracking my brains for here that I've searched high and low and haven't found a viable solution for. I've tried advanced filters and some VBA code snippets and nothing seems to be working.
I have a workbook that has a list of IDs in one worksheet that occupies column A, we'll call this sheet "ID List".
In another sheet, I have a refreshable web query (auto refreshes in the background and upon opening the file) showing the last 1000 results from an intranet site that outputs data from another application in html table form. We'll call this sheet "Monitor", and the column of interest here is Column K. What I need to do is this:
- Using the list of IDs in Column A in sheet "ID List" (there could be 500+ IDs here) I want to filter out unique rows of data, based on data in Column K of the “Monitor” sheet that contain any one of those IDs. The “contain” logical function here is important, as the ID will be in the middle of the data in the cells that the filter will be applied to.
- This autofilter needs to reapply to the data every time the web query is refreshed (thinking this part requires VBA for sure).
Example:
Column A on “ID List" sheet
1234
2345
3456
4567
Column K on “Monitor” sheet from refreshable web query (other columns omitted, but the data from those columns needs to come out of the filter as well)
TRANSACTION.S2345.RECORD
TRANSACTION.S2345.RECORD
TRANSACTION.S1111.RECORD
TRANSACTION.S1234.RECORD
TRANSACTION.S3456.RECORD
TRANSACTION.S4567.RECORD
TRANSACTION.S2345.RECORD
TRANSACTION.S9999.RECORD
When the filter is applied on the rows of data that contain the above samples using the ID criteria from “ID List”, it should only show the rows that have this data in column K in "Monitor":
TRANSACTION.S2345.RECORD
TRANSACTION.S1234.RECORD
TRANSACTION.S3456.RECORD
TRANSACTION.S4567.RECORD
So the duplicates of "2345" got filtered out, along with the data that didn't have IDs that matched the other sheet, namely "1111" and "9999".
Thanks in advance for any help that can be provided, it is greatly appreciated!
Bookmarks