.
.
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.
.
.
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.
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
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.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks