Running Windows 10 and Office 2019 Pro.
I have a spreadsheet from a distributor that has about 500K+ rows in it and about 2000 different manufacturers with part numbers, pricing, descriptions, etc.
I am only interested in some of the manufacturers but the supplier can only send me their entire list.
I would like to have a macro that pulls out all the rows from just the manufacturers I'm interested in and put the result in a new separate sheet in the same workbook
or into a new workbook/sheet would be fine.
I can explain it in words but have no idea how to compose a macro to do what I want
Let's say I have a workbook with just Sheet1 that has all the 500K+ rows and let's say column C is the name of the manufacturer.
A manufacturer could have many rows of data that belong to them and I'm only interested in some of the manufacturers and need to isolate and keep all their rows separately.
Then say the manufacturers names of interest are:
Manufacturer1
Manufacturer2
Manufacturer3
Manufacturer4
Manufacturer5
The macro would go through all the rows in Sheet 1 and put into a separate sheet (Sheet2) all the rows that match Manufacturer1-Manufacturer5 (Column C).
The original Sheet 1 would remain intact (no deletes).
The new Sheet2 would be the result and contain all the rows belonging to Manufactuer1-Manufacturer5.
For the future I need to be able to add more manufacturers to the list of interested manufacturers (might need to add Manufactuer6, 7, 8, etc.).
I would appreciate some help with composing such a macro.
I have a spreadsheet from a distributor that has about 500K+ rows in it and about 2000 different manufacturers with part numbers, pricing, descriptions, etc.
I am only interested in some of the manufacturers but the supplier can only send me their entire list.
I would like to have a macro that pulls out all the rows from just the manufacturers I'm interested in and put the result in a new separate sheet in the same workbook
or into a new workbook/sheet would be fine.
I can explain it in words but have no idea how to compose a macro to do what I want
Let's say I have a workbook with just Sheet1 that has all the 500K+ rows and let's say column C is the name of the manufacturer.
A manufacturer could have many rows of data that belong to them and I'm only interested in some of the manufacturers and need to isolate and keep all their rows separately.
Then say the manufacturers names of interest are:
Manufacturer1
Manufacturer2
Manufacturer3
Manufacturer4
Manufacturer5
The macro would go through all the rows in Sheet 1 and put into a separate sheet (Sheet2) all the rows that match Manufacturer1-Manufacturer5 (Column C).
The original Sheet 1 would remain intact (no deletes).
The new Sheet2 would be the result and contain all the rows belonging to Manufactuer1-Manufacturer5.
For the future I need to be able to add more manufacturers to the list of interested manufacturers (might need to add Manufactuer6, 7, 8, etc.).
I would appreciate some help with composing such a macro.