Advanced Filter Query

chriscarr

New Member
Joined
Aug 22, 2010
Messages
29
Hi guys

I am hoping you can help on this one. I'm building a report which has 2 sheets "Summary" and "Data".

"Summary" contains a graph, summary table and an advanced filter. "Data" contains a variable number of rows in colums A to Q.

My problem is I want to run the advanced filters on the categories chosen on "Summary", the data to be filtered on "Data" and then the filtered results to show on the summary table.

I've got the last part sorted, the issue is getting the data to filter and remain on the "Data" sheet. To make it easier for non-Excel profecient people to use I've also created to VB buttons. 1 to run the filter and the other to reset the data.

The second button works fine however I ideally need the first button to advanced filter a varying number of rows of critera. Is there any way I can do this?

Thanks for your help in advance.

Chris
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If your Filter Criteria Headers start in cell A1 of the Summary worksheet and your Data Headers start in cell A1 of the Data worksheet, then this should work:

Code:
    Sheets("Data").Range("A1").CurrentRegion.AdvancedFilter Action:=xlFilterInPlace, _
        CriteriaRange:=Sheets("Summary").Range("A1").CurrentRegion, Unique:=False
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,136
Members
452,890
Latest member
Nikhil Ramesh

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