+ Reply to Thread
Results 1 to 3 of 3

=CountCcolor() not counting from 'fill' bucket

  1. #1
    Registered User
    Join Date
    10-19-2016
    Location
    Colorado, USA
    MS-Off Ver
    2013
    Posts
    1

    Question =CountCcolor() not counting from 'fill' bucket

    I have a spreadsheet with a VBA add on for the formula =CountCcolor. It works perfectly, except that it doesn't count the cell if you fill it from the 'font' menu in the toolbar. To count a color, you need to either copy+paste, or select Format Painter.

    This is the VBA.

    Function CountCcolor(range_data As range, criteria As range) As Long
    Dim datax As range
    Dim xcolor As Long
    xcolor = criteria.Interior.ColorIndex
    For Each datax In range_data
    If datax.Interior.ColorIndex = xcolor Then
    CountCcolor = CountCcolor + 1
    End If
    Next datax
    End Function

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: =CountCcolor() not counting from 'fill' bucket

    it does work

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: =CountCcolor() not counting from 'fill' bucket

    Hi hello and welcome to the forum,

    I think there is another product that claims to do what you want. See:
    https://www.extendoffice.com/product...-function.html

    I have no idea if it works but see they have this function.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. CountCcolor and COUNTIF(S)
    By BarryGoddard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2015, 09:29 AM
  2. Use multipliers from 4 bucket options
    By huger99 in forum Excel General
    Replies: 4
    Last Post: 08-25-2014, 05:19 PM
  3. How to use Percentile based on a bucket list?
    By Beacon28 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2014, 06:32 PM
  4. [SOLVED] Creating a Bucket List
    By jemmers in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-19-2014, 02:22 PM
  5. Plot XY points in spreadsheet using paint bucket fill based on cell Coordinates
    By stretchballs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2012, 12:15 AM
  6. [SOLVED] Count unique cases in a weekly bucket
    By melnemac32 in forum Excel General
    Replies: 2
    Last Post: 10-25-2012, 01:21 PM
  7. counting the number of dates in an aging bucket
    By englerbd in forum Excel General
    Replies: 1
    Last Post: 10-14-2008, 10:39 PM

Tags for this Thread

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