+ Reply to Thread
Results 1 to 4 of 4

How many cells filled with color?

  1. #1
    Registered User
    Join Date
    08-30-2007
    Posts
    52

    How many cells filled with color?

    I want to calculate how many cells are filled with color, how can

    I do this?

    Thanks
    Last edited by codyaaron2; 04-17-2009 at 10:50 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How many cells filled with color?

    You will need VBA user defined function for that:

    See here:

    http://exceltip.com/st/Count_by_colo...Excel/518.html

    or here:

    http://www.cpearson.com/excel/colors.aspx
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-30-2007
    Posts
    52

    Re: How many cells filled with color?

    I cant seem to figure out what number for the color red I am using in a cell.

    I am trying to use the countcolor and I need to know what number to put

    in the formula. Can anyone help me with this?

    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: How many cells filled with color?

    red is usually ColorIndex = 3 but to make sure start recording a macro then colour in a few cells with colours you want then stop recording view the code and see what was used
    "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

+ 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