+ Reply to Thread
Results 1 to 9 of 9

Advanced Filter

  1. #1
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Advanced Filter

    Hi guys,

    I need your help with selecting only the visible cells when defining the criteria range of an advanced filter.
    In the attached file I have some data in sheet2. I need first to filter this range to show Criteria 1 only and then use the visible cells as a range for the advanced filter in sheet1.
    For the advanced filter in sheet1: List range - A1:A11, Criteria Range - Visible cells in sheet2.

    As a result visible cells in sheet1 must be Name1, Name2, Name8, and Name10.

    Thanks for the help!
    Attached Files Attached Files
    Last edited by Bob@Sun; 04-18-2010 at 05:47 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Advanced Filter

    What is Criteria 1?
    Last edited by JBeaucaire; 04-15-2010 at 04:56 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Advanced Filter

    Also, the Advanced Filter may not be necessary unless there are duplicates in column A, which i don't see in your sample. If you're filtering the data prior to get a sub listing, are you just wanting to copy all the visible cells in column A to sheet2? If so, a regular copy command will do that because it usually only copies visible cells when an AutoFilter is active.

  4. #4
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Advanced Filter

    No, I do not need to copy. I need to filter. It is hard to explain why I need it, but that is what I need.

    Filter Info in sheet1 based on the criteria in sheet2, Criteria 1 is just for testing purposes to show you that the range in sheet2 has some hidden cells between.I hope that is clear enough.
    Last edited by Bob@Sun; 04-17-2010 at 06:09 AM.

  5. #5
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Advanced Filter

    Any ideas?

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Advanced Filter

    Assumes criteria1 on sheet2 has already been applied.

    Uses column I on sheet1 to store advance filter criteria

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Advanced Filter

    Hi Andy,

    This code is working great for me.

    One question though. If I have one name list in the range A1:A11 and the same list starting again from A15 true A25 is it possible to filter both ranges at the same time?

    I tried with this but is not filtering both ranges at the same time.

    Any ideas?

    Please Login or Register  to view this content.

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Advanced Filter

    You can not filter 2 areas on a sheet.

    You can extend the range covered by the filter
    Please Login or Register  to view this content.
    But this may not give you the result you want.

  9. #9
    Forum Contributor Bob@Sun's Avatar
    Join Date
    09-03-2009
    Location
    Montuak, Usa
    MS-Off Ver
    Excel 2007
    Posts
    438

    Re: Advanced Filter

    Ok, thanks Andy

    Appriciate your help!

+ Reply to 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