+ Reply to Thread
Results 1 to 3 of 3

Count Consecutive Colored Cell Ranges

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    6,986

    Count Consecutive Colored Cell Ranges

    .
    .


    Looking for a formula that will return the number (total) of consecutively colored ranges. Please refer to below :


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,912

    Re: Count Consecutive Colored Cell Ranges

    You could use a VBA UDF - copy the code below into a standard codemodule, save your workbook as a .xlsm file, and use the UDF like this

    =CCBlocks($A2:$N2,O$1)

    and copy it to match your color ranges. Note that it will not auto-recalc since format color changes do not force a re-calc automatically.

    Also, this is written to work with standard formatting, not conditional formatting.


    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    6,986

    Re: Count Consecutive Colored Cell Ranges

    Bernie Deitrick

    Thank you for that !

    I was 'close but no cigar'. Had a very similar function but the formula for the cells were off.

    Mark this one SOLVED !

    Thanks again friend.

+ 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. How to count only colored cell and extract details of colored cell's row
    By bala04msw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-23-2016, 07:03 AM
  2. Formula or VBA to count the colored Cell
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-02-2014, 09:40 AM
  3. How to count colored cells per each cell range?
    By gabrielemucho in forum Excel General
    Replies: 4
    Last Post: 10-21-2014, 07:31 AM
  4. Replies: 1
    Last Post: 11-09-2013, 02:43 AM
  5. Use count if cell is colored
    By Moongoddess in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2012, 01:18 PM
  6. Count colored cell?
    By elfiky in forum Excel General
    Replies: 1
    Last Post: 08-24-2008, 08:27 PM
  7. [SOLVED] Count depth of Colored Cell
    By smandula in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2005, 03:05 PM

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