Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering 1

Status
Not open for further replies.

max1565

Technical User
Dec 16, 2002
57
US
I have a flat table of data in excel 2000. The range is made up of 35 columns and and may go up tp 65000 rows. I need to be able to filter the range by three separate columns. Say column A (filter for values > 0), column d (filter for 1), and column w (filter for 2003). The resulting data must meet all of the criteria indicated. Then some of the data in certain columns will be copied to another location. Say that the resulting data in column e will be copied to the next empty row on worksheet("database") column c.

Does anyone have any suggestions?

I hope I explained this.

Thanks
 
max1565,

Why not use AutoFilter?

You can set the filter values programatically. Macro record the process, observe the code and modify accordingly.

Post back if you have any specific problems :)

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884

Skip,
 
You can play with the AdvancedFilter or AutoFilter methods of the Range object.

Hope This Help
PH.
 
Thanks guys. I think I can use the autofilter method, but one of my filter criteria is the value found at worksheets("work").range("b12"). I do not know how to do that part.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top