Macro to consolidate data and filter based on a cell value and copy paste the entire row.

Nethaji2509

New Member
Joined
Sep 27, 2016
Messages
1
Hi friends.. am looking for assistance on a macro. I have three workbooks in the name of Data1,Data2 and Data3 which has details in 12 columns and saved in desktop. Also will have an excel workbook in the name of Template. I would want the macro to run from a template.xlsx. This will have two sheets first tab as Raw Data and second tab named as Required Data.


Now I need macro code that do the following in order.

1. Open Data1 and pull the details to Template Raw data tab and close the Data1.xlsx without saving and repeat the same with Data2 and Data3. This is basically consolidation of all the raw data.


2. In Required data tab there should be box in cell A2 where the user will key in a data say for example James and then they should run a macro which should go to Raw data and filter col.j and find for James and should copy the entire rows that contains James and paste to b1 of Required data.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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