+ Reply to Thread
Results 1 to 4 of 4

Thread: Count cells with a specific fill colour

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Cornwall
    MS-Off Ver
    Excel 2003
    Posts
    2

    Count cells with a specific fill colour

    Excel 2003.
    Can I use a worksheet function to count the number of cells in a range that have a specific fill colour?

    Brianjc

  2. #2
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,639

    Re: Count cells with a specific fill colour

    You can't use an inbuilt Excel Function for this. I have written a User Defined Function that you can use, but it involves VBA code
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  3. #3
    Registered User
    Join Date
    05-15-2011
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2007, Excel MAC 2008
    Posts
    29

    Re: Count cells with a specific fill colour

    Try this link
    I used this in Excel 2003 before I upgraded to Excel 2007
    It worked fine

    http://www.ozgrid.com/forum/showthread.php?t=27182
    Barbara Excel

  4. #4
    Forum Contributor
    Join Date
    02-22-2011
    Location
    Rhône Alpes, France
    MS-Off Ver
    Excel 2007
    Posts
    154

    Re: Count cells with a specific fill colour

    Hi,
    Another solution without any code by using macro function of excel 4
    Because Excel 2007 do not recognize macro excel 4, define a name with reference =GET.CELL(no_type,reference)
    - no_type code 63 returns the color of the background of the cell
    - reference is cell reference
    See attached example
    Hope this helps
    Best regards
    Attached Files Attached Files

+ 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.2.0