+ Reply to Thread
Results 1 to 4 of 4

Counting cells containing a certain background Colour

  1. #1
    Registered User
    Join Date
    03-22-2007
    Posts
    21

    Counting cells containing a certain background Colour

    Hi all,

    Is it possible to count the total number of cells in a range that countain a certain background colour?

    Sounds like a tricky one.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    How were those cells coloured.....manually or via conditional format....?
    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
    03-22-2007
    Posts
    21
    Thats a good question,

    I am currently trying to do this on cells with a manual background colour.

    In the future I want to do it for conditional formatted cells. I gues this is easier?


    Are both posisble?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    To count manually coloured cells you will need a VBA user-defined function...

    here's one: http://www.ozgrid.com/VBA/sum-count-cells-by-color.htm and you'll find another within this page: http://www.cpearson.com/excel/colors.aspx

    To count conditionally formatted cells, you can apply similar logic to a countif/sumproduct formula to count the cells with that logic....

+ 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