Filter the excel files with a specific condition

boolok2011

New Member
Joined
Mar 31, 2011
Messages
13
Hi, I have couple hundred .xls files in a folder and in each excel file, at column AW5 has value 1, 3, 4, 5.

What I need to do is the following:

1. Go to each .xls file
2. Go to column AW5
3. At the active current blank sheet, make a list of files at Column A that has value 1 at the 5th row and value 3 at the last row of the column
4. Make a list of files at Column B that has value 1 at the 5th row and value 4 at the last row of the column
5. Make a list of files at Column C that has value 1 at the 5th row and value 5 at the last row of the column

Can anyone help to suggest how to use macro to do the steps above? Thx ahead.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Is there only 1 worksheet in each of the many files? If not, does more than 1 worksheet contain data?
I believe you want all your results in a single worksheet in the worksheet that contains the code, is that correct?
 
Upvote 0

Forum statistics

Threads
1,215,149
Messages
6,123,311
Members
449,095
Latest member
Chestertim

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