match and copy data

  • Thread starter Thread starter new_to_vba
  • Start date Start date
N

new_to_vba

i have 2 files, Information.xls & 822.xls,
below are the sample data of the following 2 files,

-----------------------822.xls----------------------------
Mod--------Descrip------------------------------Facility----Time-----Day

IT1122-----Object Oriented Programming----------LTQ-9-----9.00am--Wed

IT2233-----Excel Programming--------------------LTQ-6-----1.00pm--Tues



----------------------Information.xls----------------------
Mod--------Descrip------------------------------Facility----Time-----Day

IT1122

IT2233


the program will look for all the Mod that contains the text "IT" and
then it will copy all the data under the Column "Facility", "Time",
"Day" which are "LTQ-9", "9.00am", "Wed" and paste into Information.xls
under the same "IT1122" under the Column "Facility", "Time", "Day"

any idea how to get it done?
 
Hi,
You could use Data==>Filter ==>Autofilter from Excel toolbar.

Select the columns, and for "Mod" column, click on the arrow, select
"Custom" and in the next message box, in "Show rows where" box value is
"Begins with" and value in the ajoining box is "IT" (no quotes required).
Click OK.

Then copy and paste these selected rows to your new worksheet.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top