Closed Thread
Results 1 to 4 of 4

Having a cell control an autofilter on another sheet

  1. #1
    Registered User
    Join Date
    08-24-2005
    Posts
    1

    Having a cell control an autofilter on another sheet

    Hello:

    I have a spreadsheet with a large data field that is sorted by autofilter. I want to have cells on another sheet that will control the autofilter.

    Here is my data source:

    A B C
    Year Name Time
    2000 Ed 2
    2001 Steve 4
    2000 Mike 3

    So, I want to be able on another sheet, enter "2000" in a cell (or select in a drop down box) and it to autofilter the above data for all entries with 2000 in the year column.

    Thanks for the help!!!

    Phil

  2. #2
    Registered User
    Join Date
    08-18-2005
    Posts
    59

    RE: Having a cell control an autofilter on another sheet

    You could write a simple macro.

    Sub Filter_By_Year()

    Selection.AutoFilter Field:=1, Criteria1:=Range("YEAR").Value

    End Sub

    Then name the cell you wish to use to control the filter "YEAR". You can initiate the filter using a button or any other form, for that matter.

    Let me know if you'd like a sample spreadsheet.
    Excel_Geek
    http://blog.excelgeek.com/

    "...I'll do that in Excel for $50..."

  3. #3
    Registered User
    Join Date
    05-26-2010
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Having a cell control an autofilter on another sheet

    Quote Originally Posted by Excel_Geek View Post
    You could write a simple macro.

    Sub Filter_By_Year()

    Selection.AutoFilter Field:=1, Criteria1:=Range("YEAR").Value

    End Sub

    Then name the cell you wish to use to control the filter "YEAR". You can initiate the filter using a button or any other form, for that matter.

    Let me know if you'd like a sample spreadsheet.
    Hi
    Please be so kind and post the sample

    Thank you

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Having a cell control an autofilter on another sheet

    Oleg, this thread is five years old. Nobody will return and post a sample file here.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1