Okay so I am linking to a screenshot of what I am attempting to do.
The problem:
Listbox1 shows the headers of data inside one excel sheet. This data includes all of the “jobs” for a specific time period.
So for example:
Project ID JOB ASM ASM Part Number
11111 1 0 1256
11111 1 0 1257
11111 1 1 1258
11111 2 0 1256
11111 2 0 1259
11111 2 1 1270
11111 2 2 1258
Listbox2 shows the data inside another excel sheet. This data includes SPECIFIC jobs (1, 2,3 etc).
EACH job has its OWN corresponding asm and asm part number. So in listbox2 the headers that are shown there is what the headers is for that job. I put together all of the jobs in one sheet since they were technically different sheets.
So for example JOB 1: (this is not necessarily the same as the data from the other worksheet)
ASM PN (same numbers that go under ASM part numbers for this list go here)
0 1256
0 1267
0 1269
I basically need to find discrepancies between these 2 lists. Specifically, if a number is not in list 2, but it is in list and vice versa.
So not only do I need to compare each specific job in list 2 with list 1, I need to compare each of their specific columns and rows.
How was I approaching this?
Although I am including all of the headers in each listbox, I only want to compare rows with specific column headers (ASM description vs Assembly description, etc) since not every column header is the same from Listbox 1 and 2.
How do I want to compare them?
I want to filter the data after I populate each listbox with 3 criteria and only have what meets that criteria in each listbox. Once they are side by side, I want to be able to:
1. Transfer what is not in list 1 but in list 2 to an excel sheet.
2. Transfer what is not in list 2 but in list 1 to another excel sheet.
3. Transfer a combined list of ONLY the unique rows from each list.