+ Reply to Thread
Results 1 to 11 of 11

Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    I am attaching a worksheet where columns B and C contain conditionally formatted rows. Basically, both columns have data that try to match each other. Column B tries to match itself with Column C. If a match is found, the font color remain black. However, if no match is found, the font color of the cell turns red (based on a conditional format formula).

    What I have been trying to do for the past 3 days is trying extract only the red cells. I know Excel 2007+ has a conditional sort / filter feature.........but I only have 2003 to work with. I found some VBA code but that only worked if I manually colored the cell (not conditionally).

    If I could get only the red cells to appear in columns E & F (respectively)....that would work great, since then I could just set the print area and print these red cells (instead of manually trying to write down each red cell value on paper).

    Thank you in advance. I only signed up after searching for days to this solution.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    Hi and welcome to the forum

    Try this little trick. Copy your CF rules for each column into new columns and copy down. They will give you the same TRUE/FALSE results, and you can then filter on that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    Thanks for responding. I tried your suggestion but it gave me a "True" value in the helper columns (E & F). I actually need the actual values to be visible (the formatted bold red cells).

    I was kind of looking for VBA code that would make a bit more automatic. That way if the data changes in columns B & C.........the conditionally formatted bold red cells would automatically appear in columns E & F.

    Hope this helps. Thanks again.
    Last edited by superdesi; 06-05-2013 at 10:56 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    yes, thats what I said it would do, and my understanding was that you wanted to filter on the color, not the value. the TRUE would be the same as if the color showed.
    They will give you the same TRUE/FALSE results, and you can then filter on that
    If you want the result shown, change the formula slightly...
    =IF(ISERROR(MATCH(B4,$C$4:$C$6002,0)),B4,"")
    =IF(ISERROR(MATCH(C4,$B$4:$B$6002,0)),C4,"")

  5. #5
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    Okay.....I made some headway. I tried your modified formula and I have partial success. Now in columns E & F, only the conditional colored values show up (which is exactly what I was looking for). However, the values appear in their respective rows (meaning that if i have data in B4:B200 ....... the values in E4:E200 are scattered throughout the range).

    Is there a way to make them appear consecutively from E4 down (without any blank cells in between). I tried filtering.....but that affects my rows in columns A, B, C, ).

    Thanks very much for your help.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    Off the top of my head...add 2 more helpers and add this, copied down...
    =SMALL($D$4:$D$65,ROW(A2))
    repeat for the 2nd column

  7. #7
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    Hi,

    I added the extra 2 helper columns but I found an issue when I added the formula to cell E4.
    If I make the range down to G635, it picks up cell G36 (52). But if make the range to G634, it skips G36 and goes to the next big value. (sheet attached)

    Another problem is that data in columns A, B, C, will always be changing (filling up 100 rows to sometimes 1200 rows) and the SMALL function has to be edited each time.

    Columns G & H are perfect.....because now they change automatically with what I insert into columns A, B, C.

    Thanks again.
    Attached Files Attached Files

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    change it from row(A2) to row(A1). what that does is use the row number to dynamically change the "nth" number in the small() function...A1=1, A2=2 etc. I used A2 to avoid having zero show

  9. #9
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    Okay I tried that and Yes that works. I am 99% there. My issue is that I edited the "SMALL" code to start from row 4 (my first row that will have data) all they way down to row 1500 (the maximum rows I will ever have).

    But now if I only have data in 100 rows, the SMALL function returns "0" in E4 thru E800, and then starts listing the cell values in order.

    However, if I modify the SMALL function and limit it to the number of rows I actually have data in (column A B & C), it works fine. But to keep doing that defeats my purpose.

    Thanks again. Especially for the quick replies. Are you in front of a PC all day long?

  10. #10
    Registered User
    Join Date
    06-05-2013
    Location
    Dallas, TX
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    26

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    Update: I just wanted to FDibbins for all your help. I have my sheet just the way I wanted it I will now mark this thread solved.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Consolidating / Extracting Conditionally Formatted (Colored) Cells - Excel 2003

    Happy to 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