Retrieving Full Rows

Gamermatt

Board Regular
Joined
May 14, 2009
Messages
186
Hi guys,

In Sheet2 column A, I have a list of product numbers. Then in Sheet1 column A, I have a larger list of product numbers (along with text filling up cells B to HD for each product number). I need a macro to get all the rows in Sheet1 that have the product numbers from Sheet2, and paste those entire rows into Sheet3. How could I go about doing this?

Thanks

Matt
 
Matt,

Do the following:

Important: make a copy of the workbook first.

1. (For Excel 2007) Make Active Sheet3. After that, make active the Data tab and select Advanced in the Sort & Filter group.

1. (For Excel 2003) Make Active Sheet3. After that, open the Data menu, point to Filter, and choose Advanced Filter.

2. In the Advanced Filter dialog box, choose the option Copy to another location and make the following changes in the text box of the dialog box:

List Range: select the data from Sheet1.

Criteria Range: select the data of the first column of the Sheet2.

Copy to: Select the cell A1 on Sheet3.

3. Finally, click OK.

Markmzz
 
Upvote 0

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