+ Reply to Thread
Results 1 to 5 of 5

Filtering cells, then using fill/color??

  1. #1
    Registered User
    Join Date
    06-08-2007
    Posts
    7

    Filtering cells, then using fill/color??

    I’ve noticed this happens about 50% of the time I use the Filter option within Excel (I’m using Vista)...

    I need to filter thousands of rows of text by the "contains" option for three cities (London, Rome, Madrid). I need to do this 3x because each city needs to be highlighted/filled in a different color.

    I come across problems after I have completed the first filter, eg London and filled the cells with Yellow. I then go on to the next Filter for "Rome" and try to fill them in Orange, but Excel will not let me use the fill option again.

    I do just want to make it clear that I am not filtering by color - I am adding color AFTER I have filtered by city.

    I am quite a savvy Excel user, so if you have any advanced help here, I would be gratefully appreciative. As I say, this happens about 50% of the time I use Excel, sometimes it works, sometimes it doesn't...

    Many thanks in advance

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Why don't you just use conditional format which would avoid using filters

    http://www.contextures.com/xlCondFormat01.html


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Can you use conditional formatting on all of your cells to automatically format the cells depending on what city is located in it? That would seem to be the easiest solution if Vista and/or Excel is giving you trouble.

    ChemistB

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Why not just use conditional formatting to automatically add the colors?
    To answer your question, though, I think hitting Alt+; after highlighting the cells (but before trying to add the color) will solve your problem. What that does is select only visible cells.

  5. #5
    Registered User
    Join Date
    06-08-2007
    Posts
    7
    For various reasons the conditional formatting will take longer than necessary because I have various other filters on other columns too.

    However, DarkYam, I played around with some controls, and found that hitting "select visible cells" before filling with color seems to work just fine. I guess Excel wasn't sure if I wanted the hidden or the visible cells colored in.

    Thanks!

+ 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