+ Reply to Thread
Results 1 to 2 of 2

Filtering based on existing background colour

  1. #1
    Registered User
    Join Date
    07-13-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Filtering based on existing background colour

    Hi everyone,

    I've inherited a job for a local organisation. I have received a spreadsheet that has been created in parts by several other sources. This means it has a load of different styles. I've got most of them sorted but one chap filtered everything by putting a background colour on the row so it was visual inspection.

    The problem is that my new sheet has thousands and thousands of rows.

    I need to be able to filter (see exclusively) certain records in one continuous column (like the filter function) (the records are in that column already but unsorted/filtered) but the only thing that is unique and common to the records that I want is that they all have the same background colour. All the other records have no background colour in the row. There are thousands of rows in the sheet so going through it manually would be a nightmare. What would also help hugely is if there was some way to then filter further based on the coloured records that have a date within 7 days of another coloured record. So, from the filtered records with a colour, can I filter further and get it to show me those records that occur within 7 days of another record from the filtered list (there's a date column).

    Many thanks for your help for a newbie.
    Last edited by orga; 07-13-2009 at 06:50 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Filtering based on existing background colour

    To filter on the cell interior color you would need to know the index number of the color.

    You can find out the colorindex number using the UDF found here:
    Return Color Index Number
    http://www.ozgrid.com/VBA/ReturnCellColor.htm

    Use this UDF in a separate column and filter on the results returned for the color. from there you can refine your filter on date values as desired.

+ 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