+ Reply to Thread
Results 1 to 4 of 4

Count Cells colored by conditional formatting

  1. #1
    Registered User
    Join Date
    07-03-2012
    Location
    md
    MS-Off Ver
    Excel 2010
    Posts
    37

    Count Cells colored by conditional formatting

    Hello all,
    I am trying to count range of cells based on conditional formatted color;
    I am loading a part of the data as shown in the attached spreadsheet. I found a VBA code online that I used which works with colored cells but does not give accurate result when the cells are conditionally formatted. for example, in the attached spreadsheet, Cell D2 is formatted using condional formatting, so the value in Cell B2 should be 1 and NOT 4. Please advise on how to tweak the code such that it works with conditional format.

    Code used:
    Please Login or Register  to view this content.
    Thanks
    Attached Files Attached Files
    Last edited by sam99; 10-18-2013 at 05:01 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count Cells colored by conditional formatting

    im confused as to why you need a udf to count what is missing
    which cells are you counting? not all have conditional formatting applied only d and h have cf
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-03-2012
    Location
    md
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Count Cells colored by conditional formatting

    The spreadsheet posted is part of a original ss which has 100s of columns and 1000s of rows, every third column has conditional format (True if Value in c1 is blank and e1 is not); i need to count how many data points are missing per row. the code shown above works iff the cells are manually color coded which again is a tedious task consideing the amount of data. unfortunately i do not know vba and hence was looking for some help. Thanks

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Count Cells colored by conditional formatting

    deleted wrong idea!
    Last edited by martindwilson; 10-19-2013 at 03:03 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Conditional Formatting with Colored Arrows
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-21-2013, 09:24 PM
  2. How to count colored cells with conditional formats
    By lowrey72 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2009, 02:51 AM
  3. conditional formatting and colored cells
    By henro8 in forum Excel General
    Replies: 9
    Last Post: 07-10-2008, 03:12 PM
  4. How to Count only Colored cells
    By WM_1956 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2005, 09:35 AM
  5. Count non-colored cells
    By Ken G in forum Excel General
    Replies: 3
    Last Post: 01-02-2005, 09:07 AM

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