+ Reply to Thread
Results 1 to 4 of 4

Macro for filters with exceptions?

Hybrid View

  1. #1
    Registered User
    Join Date
    01-20-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Macro for filters with exceptions?

    I am using Excel 2007. I have a list of 100 names all ranked from 1-100. Is there a way to create a macro that can filter out the top 20, a specific name and also any names with the cell colours blue and yellow?

    At the moment using an advanced filter based on criteria I can filter out the top 20 and the specific name I want but can't work out how to leave the coloured rows in as well.

    Thanks
    Last edited by hiphopopotamus; 01-20-2010 at 07:35 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,008

    Re: Macro for filters with exceptions?

    I would recommend using an additional column that has a code for the coloured rows (or you can use a UDF or defined name to get the cell colour) and then include that in the filter criteria.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    01-20-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Macro for filters with exceptions?

    Thanks a lot. Don't know why I didn't think of that.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Macro for filters with exceptions?

    big thumbs up to your handle by the way... was rhymenocerous the other alternative by any chance ?

+ 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