+ Reply to Thread
Results 1 to 3 of 3

Counting cells that are colored in

  1. #1
    Registered User
    Join Date
    01-05-2008
    Posts
    12

    Counting cells that are colored in

    Hi all...second try here...
    I have numberous cells that are colored in to reflect whether the number in the cell is negative (red) or positive (green). Some of these cells are conditionally formatted to automatically color themselves in, while others I color in manually.
    Question: is there a way excel can count the number of cells colored in with a certain color so I can get a percentage/ratio of red cells to green cells? Thanks!
    - John

    CROSSPOST NOTE: this post also appears at the link below:
    http://www.ozgrid.com/forum/showthread.php?t=82528

  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
    You have answers on OZgrid. Do these not help. Worth replying there also.

    You need a macro to count by color. Conditional format is different so you may need to look at a few sections

    http://www.cpearson.com/excel/colors.htm

    http://www.cpearson.com/excel/CFColors.htm

    http://www.xldynamic.com/source/xld.....html#counting

    http://www.ozgrid.com/VBA/Sum.htm

    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 !!!

  3. #3
    Registered User
    Join Date
    01-05-2008
    Posts
    12
    OZgrids solutions will provide a workable solution for the moment, but I will check out the links you posted. Thanks!
    - John

+ 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