+ Reply to Thread
Results 1 to 2 of 2

Don't Count Cells Colored Red

  1. #1
    Forum Contributor
    Join Date
    03-30-2008
    Posts
    121

    Don't Count Cells Colored Red

    Is it possible to count all cells in a range --- except those where
    the cell fill background is colored red?

    For example.....if I count A1:A10 and all cells are normal, then
    the count would be 10. However if cell A3 and A5 are colored in
    red the answer would be 8.

    Any suggestions would be appreciated.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.
    Place code in a module and in a cell use
    =CountNonRed(A1:A10)
    or see links

    http://www.ozgrid.com/VBA/sum-count-cells-by-color.htm
    http://www.xldynamic.com/source/xld.....html#counting
    http://www.cpearson.com/excel/colors.aspx


    HTH


    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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