+ Reply to Thread
Results 1 to 10 of 10

Excel 2007 : Sorting/Extracting by cell color

Hybrid View

  1. #1
    Registered User
    Join Date
    01-12-2011
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2003
    Posts
    30

    Sorting/Extracting by cell color

    Is it possible to have excel take data from a colored cell (or cells) and display it somewhere else? I've been trying this for some time and I've had no success.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Sorting/Extracting by cell color

    This can be done by macro. Can you provide an example?
    Martin

  3. #3
    Registered User
    Join Date
    01-12-2011
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Sorting/Extracting by cell color

    A super-simplified version of my sheet is attached. All I need it to do is to take the values highlighted in each color and display them on another sheet.
    Attached Files Attached Files

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Sorting/Extracting by cell color

    Do you need the values to be brought into adjacent cells in the new sheet or just copied in their same relative positions?

    If its the latter then the following macro will delete the contents of all cells which do not have a background colour.

    Sub DeleteIfNotColoured()
    Dim Cell As Range
    For Each Cell In Selection
        If Cell.Interior.Color = 16777215 Then
            Cell.ClearContents
        End If
    Next Cell
    End Sub
    You could use this on a copy of your sheet.

  5. #5
    Registered User
    Join Date
    01-12-2011
    Location
    Buffalo, NY
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Sorting/Extracting by cell color

    Ideally I need it to take the values in each cell and deposit them onto another sheet in order according to their color, making one row of 'green' and one row of 'blue' values.

  6. #6
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Sorting/Extracting by cell color

    Can you supply a before and after example as an attachment for complete clarity?

+ 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